-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'temp-metric' of https://github.com/dpadhiar/argo-workflows
into temp-metric Signed-off-by: Dillen Padhiar <[email protected]>
- Loading branch information
Showing
10 changed files
with
246 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Argo Server Auth Mode | ||
|
||
You can choose which kube config the Argo Server uses: | ||
You can configure how the Argo Server authenticates to Kubernetes: | ||
|
||
* `server` - in hosted mode, use the kube config of service account, in local mode, use your local kube config. | ||
* `client` - requires clients to provide their Kubernetes bearer token and use that. | ||
* [`sso`](./argo-server-sso.md) - since v2.9, use single sign-on, this will use the same service account as per "server" for RBAC. We expect to change this in the future so that the OAuth claims are mapped to service accounts. | ||
* `server`: In [hosted mode](argo-server.md#hosted-mode), use the Server's Service Account. In [local mode](argo-server.md#local-mode), use your local kube config. | ||
* `client`: Use the Kubernetes [bearer token of clients](access-token.md). | ||
* `sso`: Use [single sign-on](argo-server-sso.md). This will use the same SA as `server` for RBAC, unless you have enabled [SSO RBAC](argo-server-sso.md#sso-rbac) | ||
|
||
The server used to start with auth mode of "server" by default, but since v3.0 it defaults to the "client". | ||
For v3.0 and after, the default is `client`. Prior to v3.0, it was `server`. | ||
|
||
To change the server auth mode specify the list as multiple auth-mode flags: | ||
To configure the Server's auth modes, use one or multiple `--auth-mode` flags. For example: | ||
|
||
```bash | ||
argo server --auth-mode=sso --auth-mode=... | ||
argo server --auth-mode=sso --auth-mode=client | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: expression-destructure-json-complex- | ||
spec: | ||
arguments: | ||
parameters: | ||
- name: config | ||
value: '{"employees": [{"name": "Baris", "age":43},{"name": "Mo", "age": 42}, {"name": "Jai", "age" :44}]}' | ||
entrypoint: main | ||
templates: | ||
- name: main | ||
inputs: | ||
parameters: | ||
- name: a | ||
value: "{{=jsonpath(workflow.parameters.config, '$.employees[?(@.name==\"Baris\")].age')}}" | ||
- name: b | ||
value: "{{=jsonpath(workflow.parameters.config, '$.employees[?(@.age>42 && @.age<44)].age')}}" | ||
- name: c | ||
value: "{{=jsonpath(workflow.parameters.config, '$.employees[0:1]')}}" | ||
- name: d | ||
value: "{{=jsonpath(workflow.parameters.config, '$.employees[*].name')}}" | ||
script: | ||
env: | ||
- name: A | ||
value: "{{inputs.parameters.a}}" | ||
- name: B | ||
value: "{{inputs.parameters.b}}" | ||
- name: C | ||
value: "{{inputs.parameters.c}}" | ||
- name: D | ||
value: "{{inputs.parameters.d}}" | ||
image: debian:9.4 | ||
command: [bash] | ||
source: | | ||
echo "$A$B$C$D" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.