Merge branch 'master' into feat/monitoring-labels
This commit is contained in:
commit
004041de8d
121 changed files with 1612 additions and 1195 deletions
|
@ -1,21 +0,0 @@
|
||||||
---
|
|
||||||
type: container
|
|
||||||
version: 1
|
|
||||||
name: argo-checkout
|
|
||||||
description: Checks out a source repository to /src
|
|
||||||
resources:
|
|
||||||
mem_mib: 500
|
|
||||||
cpu_cores: 0.1
|
|
||||||
image: argoproj/argoscm:v2.0
|
|
||||||
command: ["axscm"]
|
|
||||||
args: ["clone", "%%inputs.parameters.REPO%%", "/src", "--commit", "%%inputs.parameters.COMMIT%%"]
|
|
||||||
inputs:
|
|
||||||
parameters:
|
|
||||||
COMMIT:
|
|
||||||
default: "%%session.commit%%"
|
|
||||||
REPO:
|
|
||||||
default: "%%session.repo%%"
|
|
||||||
outputs:
|
|
||||||
artifacts:
|
|
||||||
CODE:
|
|
||||||
path: /src
|
|
|
@ -1,58 +0,0 @@
|
||||||
---
|
|
||||||
type: workflow
|
|
||||||
version: 1
|
|
||||||
name: Publish Charts
|
|
||||||
inputs:
|
|
||||||
parameters:
|
|
||||||
COMMIT:
|
|
||||||
default: "%%session.commit%%"
|
|
||||||
REPO:
|
|
||||||
default: "%%session.repo%%"
|
|
||||||
steps:
|
|
||||||
- CHECKOUT:
|
|
||||||
template: argo-checkout
|
|
||||||
- PREPARE:
|
|
||||||
image: hypnoglow/kubernetes-helm:v2.6.1
|
|
||||||
resources:
|
|
||||||
mem_mib: 500
|
|
||||||
cpu_cores: 0.1
|
|
||||||
command: ["sh", "-c"]
|
|
||||||
args: [cd /src && helm init --client-only && ./scripts/publish.sh]
|
|
||||||
inputs:
|
|
||||||
artifacts:
|
|
||||||
CODE:
|
|
||||||
from: "%%steps.CHECKOUT.outputs.artifacts.CODE%%"
|
|
||||||
path: /src
|
|
||||||
outputs:
|
|
||||||
artifacts:
|
|
||||||
CODE:
|
|
||||||
path: /src/output
|
|
||||||
- PUBLISH:
|
|
||||||
image: argoproj/argoscm:v2.0
|
|
||||||
command: ["sh", "-c"]
|
|
||||||
args: [
|
|
||||||
axscm clone %%inputs.parameters.REPO%% --commit gh-pages /src && cd /src && cp -r /output/* . &&
|
|
||||||
git add . && git commit -m "Build on `date`" &&
|
|
||||||
axscm clone %%inputs.parameters.REPO%% /src --commit gh-pages --merge=gh-pages --push]
|
|
||||||
resources:
|
|
||||||
mem_mib: 500
|
|
||||||
cpu_cores: 0.1
|
|
||||||
inputs:
|
|
||||||
artifacts:
|
|
||||||
CODE:
|
|
||||||
from: "%%steps.PREPARE.outputs.artifacts.CODE%%"
|
|
||||||
path: /output
|
|
||||||
|
|
||||||
---
|
|
||||||
type: policy
|
|
||||||
version: 1
|
|
||||||
name: Publish Charts Policy
|
|
||||||
template: Publish Charts
|
|
||||||
notifications:
|
|
||||||
- when:
|
|
||||||
- on_failure
|
|
||||||
whom:
|
|
||||||
- committer
|
|
||||||
- author
|
|
||||||
when:
|
|
||||||
- event: on_push
|
|
|
@ -1,4 +0,0 @@
|
||||||
chart-repos:
|
|
||||||
- argo=https://argoproj.github.io/argo-helm
|
|
||||||
- minio=https://helm.min.io/
|
|
||||||
- dandydeveloper=https://dandydeveloper.github.io/charts/
|
|
|
@ -5,32 +5,13 @@ jobs:
|
||||||
- image: quay.io/helmpack/chart-testing:v3.3.1
|
- image: quay.io/helmpack/chart-testing:v3.3.1
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: helm repo add stable https://charts.helm.sh/stable
|
- run: ct lint --config .github/configs/ct-lint.yaml --lint-conf .github/configs/lintconf.yaml
|
||||||
- run: ct lint --config .circleci/chart-testing.yaml --lint-conf .circleci/lintconf.yaml
|
|
||||||
# Technically this only needs to be run on master, but it's good to have it run on every PR
|
|
||||||
# so that it is regularly tested.
|
|
||||||
publish:
|
publish:
|
||||||
docker:
|
docker:
|
||||||
# We just need an image with `helm` on it. Handily we know of one already.
|
- image: bash
|
||||||
- image: quay.io/helmpack/chart-testing:v3.3.1
|
|
||||||
steps:
|
steps:
|
||||||
# install the additional keys needed to push to GitHub. Alex Collins owns these keys.
|
- run: echo "Replaced by Github Workflow - https://github.com/argoproj/argo-helm/actions/workflows/publish.yml"
|
||||||
- add_ssh_keys
|
|
||||||
- run: git config --global user.email "nobody@circleci.com"
|
|
||||||
- run: git config --global user.name "Circle CI Build"
|
|
||||||
- checkout
|
|
||||||
- run: helm repo add stable https://charts.helm.sh/stable
|
|
||||||
- run: helm repo add minio https://helm.min.io/
|
|
||||||
- run: helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
|
|
||||||
# Only actually publish charts on master.
|
|
||||||
- run: |
|
|
||||||
set -x
|
|
||||||
if [ "$CIRCLE_BRANCH" = "master" ]; then
|
|
||||||
export GIT_PUSH=true
|
|
||||||
else
|
|
||||||
export GIT_PUSH=false
|
|
||||||
fi
|
|
||||||
sh ./scripts/publish.sh
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
workflow:
|
workflow:
|
||||||
|
@ -38,4 +19,4 @@ workflows:
|
||||||
- lint
|
- lint
|
||||||
- publish:
|
- publish:
|
||||||
requires:
|
requires:
|
||||||
- lint
|
- lint
|
2
.github/configs/cr.yaml
vendored
Normal file
2
.github/configs/cr.yaml
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
## Reference: https://github.com/helm/chart-releaser
|
||||||
|
index-path: "./index.yaml"
|
19
.github/configs/ct-install.yaml
vendored
Normal file
19
.github/configs/ct-install.yaml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md
|
||||||
|
# Don't add the 'debug' attribute, otherwise the workflow won't work anymore
|
||||||
|
# Only Used for the CT Install Stage
|
||||||
|
remote: origin
|
||||||
|
chart-dirs:
|
||||||
|
- charts
|
||||||
|
chart-repos:
|
||||||
|
- argo=https://argoproj.github.io/argo-helm
|
||||||
|
- minio=https://helm.min.io/
|
||||||
|
- dandydeveloper=https://dandydeveloper.github.io/charts/
|
||||||
|
- stable=https://charts.helm.sh/stable
|
||||||
|
- incubator=https://charts.helm.sh/incubator
|
||||||
|
helm-extra-args: "--timeout 600s"
|
||||||
|
validate-chart-schema: false
|
||||||
|
validate-maintainers: true
|
||||||
|
validate-yaml: true
|
||||||
|
exclude-deprecated: true
|
||||||
|
excluded-charts:
|
||||||
|
- "argocd-applicationset"
|
18
.github/configs/ct-lint.yaml
vendored
Normal file
18
.github/configs/ct-lint.yaml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md
|
||||||
|
# Don't add the 'debug' attribute, otherwise the workflow won't work anymore
|
||||||
|
# Only Used for the CT Lint Stage
|
||||||
|
remote: origin
|
||||||
|
chart-dirs:
|
||||||
|
- charts
|
||||||
|
chart-repos:
|
||||||
|
- argo=https://argoproj.github.io/argo-helm
|
||||||
|
- minio=https://helm.min.io/
|
||||||
|
- dandydeveloper=https://dandydeveloper.github.io/charts/
|
||||||
|
- stable=https://charts.helm.sh/stable
|
||||||
|
- incubator=https://charts.helm.sh/incubator
|
||||||
|
helm-extra-args: "--timeout 600s"
|
||||||
|
validate-chart-schema: false
|
||||||
|
validate-maintainers: true
|
||||||
|
validate-yaml: true
|
||||||
|
exclude-deprecated: true
|
||||||
|
excluded-charts: []
|
1
.github/stale.yml
vendored
1
.github/stale.yml
vendored
|
@ -1 +0,0 @@
|
||||||
# See https://github.com/probot/stale
|
|
45
.github/workflows/lint-and-test.yml
vendored
Normal file
45
.github/workflows/lint-and-test.yml
vendored
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
## Reference: https://github.com/helm/chart-testing-action
|
||||||
|
---
|
||||||
|
name: Linting and Testing
|
||||||
|
on: pull_request
|
||||||
|
jobs:
|
||||||
|
chart-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up Helm
|
||||||
|
uses: azure/setup-helm@v1
|
||||||
|
|
||||||
|
- name: Set up python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
|
||||||
|
- name: Setup Chart Linting
|
||||||
|
id: lint
|
||||||
|
uses: helm/chart-testing-action@v2.0.1
|
||||||
|
|
||||||
|
- name: List changed charts
|
||||||
|
id: list-changed
|
||||||
|
run: |
|
||||||
|
## If executed with debug this won't work anymore.
|
||||||
|
changed=$(ct --config ./.github/configs/ct-lint.yaml list-changed)
|
||||||
|
charts=$(echo "$changed" | tr '\n' ' ' | xargs)
|
||||||
|
if [[ -n "$changed" ]]; then
|
||||||
|
echo "::set-output name=changed::true"
|
||||||
|
echo "::set-output name=changed_charts::$charts"
|
||||||
|
fi
|
||||||
|
- name: Run chart-testing (lint)
|
||||||
|
run: ct lint --debug --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml
|
||||||
|
|
||||||
|
- name: Create kind cluster
|
||||||
|
uses: helm/kind-action@v1.1.0
|
||||||
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
|
||||||
|
- name: Run chart-testing (install)
|
||||||
|
run: ct install --config ./.github/configs/ct-install.yaml
|
||||||
|
if: steps.list-changed.outputs.changed == 'true'
|
14
.github/workflows/pr-sizing.yml
vendored
Normal file
14
.github/workflows/pr-sizing.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
## Reference: https://github.com/pascalgn/size-label-action
|
||||||
|
---
|
||||||
|
name: 'PR Size'
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
jobs:
|
||||||
|
size-label:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: size-label
|
||||||
|
uses: "pascalgn/size-label-action@v0.4.2"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
42
.github/workflows/publish.yml
vendored
Normal file
42
.github/workflows/publish.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
---
|
||||||
|
name: Chart Publish
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- rewrite-build
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Install Helm
|
||||||
|
uses: azure/setup-helm@v1
|
||||||
|
|
||||||
|
- name: Add dependency chart repos
|
||||||
|
run: |
|
||||||
|
helm repo add argo https://argoproj.github.io/argo-helm
|
||||||
|
helm repo add minio https://helm.min.io/
|
||||||
|
helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
|
||||||
|
helm repo add stable https://charts.helm.sh/stable
|
||||||
|
helm repo add incubator https://charts.helm.sh/incubator
|
||||||
|
- name: Configure Git
|
||||||
|
run: |
|
||||||
|
git config user.name "$GITHUB_ACTOR"
|
||||||
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||||
|
|
||||||
|
## This is required to consider the old Circle-CI Index and to stay compatible with all the old releases.
|
||||||
|
- name: Fetch current Chart Index
|
||||||
|
run: |
|
||||||
|
git checkout origin/gh-pages index.yaml
|
||||||
|
|
||||||
|
- name: Run chart-releaser
|
||||||
|
uses: helm/chart-releaser-action@v1.2.0
|
||||||
|
with:
|
||||||
|
config: "./.github/configs/cr.yaml"
|
||||||
|
env:
|
||||||
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
4
.github/workflows/stale.yml
vendored
4
.github/workflows/stale.yml
vendored
|
@ -1,14 +1,10 @@
|
||||||
name: Mark stale issues and pull requests
|
name: Mark stale issues and pull requests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 1 * * *"
|
- cron: "30 1 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
|
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
|
||||||
|
|
||||||
# All charts
|
# All charts
|
||||||
/charts/* @mkilchhofer
|
/charts/ @mkilchhofer
|
||||||
|
|
||||||
# Argo Workflows
|
# Argo Workflows
|
||||||
/charts/argo @stefansedich @paguos @vladlosev @yann-soubeyrand @oliverbaehler
|
/charts/argo-workflows/ @stefansedich @paguos @vladlosev @yann-soubeyrand @oliverbaehler
|
||||||
|
|
||||||
# Argo CD
|
# Argo CD
|
||||||
/charts/argo-cd @seanson @davidkarlsen @mr-sour @yann-soubeyrand @oliverbaehler
|
/charts/argo-cd @seanson @davidkarlsen @mr-sour @yann-soubeyrand @oliverbaehler
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
/charts/argo-events @jbehling @VaibhavPage @oliverbaehler
|
/charts/argo-events @jbehling @VaibhavPage @oliverbaehler
|
||||||
|
|
||||||
# Argo Rollouts
|
# Argo Rollouts
|
||||||
/charts/argo-rollouts @cabrinha @oliverbaehler
|
/charts/argo-rollouts @oliverbaehler
|
||||||
|
|
||||||
# Argo CD Notifications
|
# Argo CD Notifications
|
||||||
/charts/argocd-notifications @alexmt @andyfeller @oliverbaehler
|
/charts/argocd-notifications @alexmt @andyfeller @oliverbaehler
|
||||||
|
|
|
@ -86,7 +86,7 @@ As part of the Continuous Integration system we run Helm's [Chart Testing](https
|
||||||
|
|
||||||
The checks for this tool are stricter than the standard Helm requirements, where fields normally considered optional like `maintainer` are required in the standard spec and must be valid GitHub usernames.
|
The checks for this tool are stricter than the standard Helm requirements, where fields normally considered optional like `maintainer` are required in the standard spec and must be valid GitHub usernames.
|
||||||
|
|
||||||
Linting configuration can be found in [lintconf.yaml](.circleci/lintconf.yaml)
|
Linting configuration can be found in [ct-lint.yaml](./.github/configs/ct-lint.yaml)
|
||||||
|
|
||||||
The linting can be invoked manually with the following command:
|
The linting can be invoked manually with the following command:
|
||||||
|
|
||||||
|
@ -96,11 +96,4 @@ The linting can be invoked manually with the following command:
|
||||||
|
|
||||||
## Publishing Changes
|
## Publishing Changes
|
||||||
|
|
||||||
Changes are automatically publish whenever a commit is merged to master. The CI job (see `.circleci/config.yaml`) runs this:
|
Changes are automatically publish whenever a commit is merged to master. The CI job (see `./.github/workflows/publish.yml`).
|
||||||
|
|
||||||
```
|
|
||||||
GIT_PUSH=true ./scripts/publish.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
Script generates tar file for each chart in `charts` directory and push changes to `gh-pages` branch.
|
|
||||||
Write access to https://github.com/argoproj/argo-helm.git is required to publish changes.
|
|
|
@ -1,5 +1,7 @@
|
||||||
# Argo Helm Charts
|
# Argo Helm Charts
|
||||||
|
|
||||||
|
[](https://github.com/argoproj/argo-helm/actions/workflows/publish.yml)
|
||||||
|
|
||||||
Argo Helm is a collection of **community maintained** charts for http://argoproj.io/ projects. The charts can be added using following command:
|
Argo Helm is a collection of **community maintained** charts for http://argoproj.io/ projects. The charts can be added using following command:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: 2.0.1
|
appVersion: 2.0.3
|
||||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 3.3.4
|
version: 3.6.6
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
|
|
@ -34,6 +34,21 @@ Changes in the `CustomResourceDefinition` resources shall be fixed easily by cop
|
||||||
|
|
||||||
## Upgrading
|
## Upgrading
|
||||||
|
|
||||||
|
### 3.2.*
|
||||||
|
|
||||||
|
With this minor version we introduced the evaluation for the ingress manifest (depending on the capabilities version), See [Pull Request](https://github.com/argoproj/argo-helm/pull/637).
|
||||||
|
[Issue 703](https://github.com/argoproj/argo-helm/issues/703) reported that the capabilities evaluation is **not handled correctly when deploying the chart via an ArgoCD instance**,
|
||||||
|
especially deploying on clusters running a cluster version prior to `1.19` (which misses `Ingress` on apiVersion `networking.k8s.io/v1`).
|
||||||
|
|
||||||
|
If you are running a cluster version prior to `1.19` you can avoid this issue by directly installing chart version `3.6.0` and setting `kubeVersionOverride` like:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
kubeVersionOverride: "1.18.0"
|
||||||
|
```
|
||||||
|
|
||||||
|
Then you should no longer encounter this issue.
|
||||||
|
|
||||||
|
|
||||||
### 3.0.0 and above
|
### 3.0.0 and above
|
||||||
|
|
||||||
Helm apiVersion switched to `v2`. Requires Helm `3.0.0` or above to install. [Read More](https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3/) on how to migrate your release from Helm 2 to Helm 3.
|
Helm apiVersion switched to `v2`. Requires Helm `3.0.0` or above to install. [Read More](https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3/) on how to migrate your release from Helm 2 to Helm 3.
|
||||||
|
@ -98,7 +113,9 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i
|
||||||
| global.securityContext | Toggle and define securityContext | See [values.yaml](values.yaml) |
|
| global.securityContext | Toggle and define securityContext | See [values.yaml](values.yaml) |
|
||||||
| global.imagePullSecrets | If defined, uses a Secret to pull an image from a private Docker registry or repository. | `[]` |
|
| global.imagePullSecrets | If defined, uses a Secret to pull an image from a private Docker registry or repository. | `[]` |
|
||||||
| global.hostAliases | Mapping between IP and hostnames that will be injected as entries in the pod's hosts files | `[]` |
|
| global.hostAliases | Mapping between IP and hostnames that will be injected as entries in the pod's hosts files | `[]` |
|
||||||
|
| kubeVersionOverride | Override the Kubernetes version, which is used to evaluate certain manifests | `""` |
|
||||||
| nameOverride | Provide a name in place of `argocd` | `"argocd"` |
|
| nameOverride | Provide a name in place of `argocd` | `"argocd"` |
|
||||||
|
| fullnameOverride | String to fully override `"argo-cd.fullname"` | `""` |
|
||||||
| installCRDs | Install CRDs if you are using Helm2. | `true` |
|
| installCRDs | Install CRDs if you are using Helm2. | `true` |
|
||||||
| configs.clusterCredentials | Provide one or multiple [external cluster credentials](https://argoproj.github.io/argo-cd/operator-manual/declarative-setup/#clusters) | `[]` (See [values.yaml](values.yaml)) |
|
| configs.clusterCredentials | Provide one or multiple [external cluster credentials](https://argoproj.github.io/argo-cd/operator-manual/declarative-setup/#clusters) | `[]` (See [values.yaml](values.yaml)) |
|
||||||
| configs.knownHostsAnnotations | Known Hosts configmap annotations | `{}` |
|
| configs.knownHostsAnnotations | Known Hosts configmap annotations | `{}` |
|
||||||
|
@ -130,6 +147,7 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i
|
||||||
| controller.extraArgs | Additional arguments for the controller. A list of flags | `[]` |
|
| controller.extraArgs | Additional arguments for the controller. A list of flags | `[]` |
|
||||||
| controller.enableStatefulSet | Enable deploying the controller as a StatefulSet instead of a Deployment. Used for HA installations. | `false` |
|
| controller.enableStatefulSet | Enable deploying the controller as a StatefulSet instead of a Deployment. Used for HA installations. | `false` |
|
||||||
| controller.env | Environment variables for the controller. | `[]` |
|
| controller.env | Environment variables for the controller. | `[]` |
|
||||||
|
| controller.envFrom | `envFrom` to pass to the controller. | `[]` (See [values.yaml](values.yaml)) |
|
||||||
| controller.image.repository | Repository to use for the controller | `global.image.repository` |
|
| controller.image.repository | Repository to use for the controller | `global.image.repository` |
|
||||||
| controller.image.imagePullPolicy | Image pull policy for the controller | `global.image.imagePullPolicy` |
|
| controller.image.imagePullPolicy | Image pull policy for the controller | `global.image.imagePullPolicy` |
|
||||||
| controller.image.tag | Tag to use for the controller | `global.image.tag` |
|
| controller.image.tag | Tag to use for the controller | `global.image.tag` |
|
||||||
|
@ -181,6 +199,7 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i
|
||||||
| repoServer.containerPort | Repo server port | `8081` |
|
| repoServer.containerPort | Repo server port | `8081` |
|
||||||
| repoServer.extraArgs | Additional arguments for the repo server. A list of flags. | `[]` |
|
| repoServer.extraArgs | Additional arguments for the repo server. A list of flags. | `[]` |
|
||||||
| repoServer.env | Environment variables for the repo server. | `[]` |
|
| repoServer.env | Environment variables for the repo server. | `[]` |
|
||||||
|
| repoServer.envFrom | `envFrom` to pass to the repo server. | `[]` (See [values.yaml](values.yaml)) |
|
||||||
| repoServer.image.repository | Repository to use for the repo server | `global.image.repository` |
|
| repoServer.image.repository | Repository to use for the repo server | `global.image.repository` |
|
||||||
| repoServer.image.imagePullPolicy | Image pull policy for the repo server | `global.image.imagePullPolicy` |
|
| repoServer.image.imagePullPolicy | Image pull policy for the repo server | `global.image.imagePullPolicy` |
|
||||||
| repoServer.image.tag | Tag to use for the repo server | `global.image.tag` |
|
| repoServer.image.tag | Tag to use for the repo server | `global.image.tag` |
|
||||||
|
@ -241,6 +260,7 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i
|
||||||
| server.containerPort | Server container port. | `8080` |
|
| server.containerPort | Server container port. | `8080` |
|
||||||
| server.extraArgs | Additional arguments for the server. A list of flags. | `[]` |
|
| server.extraArgs | Additional arguments for the server. A list of flags. | `[]` |
|
||||||
| server.env | Environment variables for the server. | `[]` |
|
| server.env | Environment variables for the server. | `[]` |
|
||||||
|
| server.envFrom | `envFrom` to pass to the server. | `[]` (See [values.yaml](values.yaml)) |
|
||||||
| server.image.repository | Repository to use for the server | `global.image.repository` |
|
| server.image.repository | Repository to use for the server | `global.image.repository` |
|
||||||
| server.image.imagePullPolicy | Image pull policy for the server | `global.image.imagePullPolicy` |
|
| server.image.imagePullPolicy | Image pull policy for the server | `global.image.imagePullPolicy` |
|
||||||
| server.image.tag | Tag to use for the server | `global.image.tag` |
|
| server.image.tag | Tag to use for the server | `global.image.tag` |
|
||||||
|
@ -326,6 +346,7 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i
|
||||||
| dex.metrics.serviceMonitor.selector | Prometheus ServiceMonitor selector. | `{}` |
|
| dex.metrics.serviceMonitor.selector | Prometheus ServiceMonitor selector. | `{}` |
|
||||||
| dex.name | Dex name | `"dex-server"` |
|
| dex.name | Dex name | `"dex-server"` |
|
||||||
| dex.env | Environment variables for the Dex server. | `[]` |
|
| dex.env | Environment variables for the Dex server. | `[]` |
|
||||||
|
| dex.envFrom | `envFrom` to pass to the Dex server. | `[]` (See [values.yaml](values.yaml)) |
|
||||||
| dex.nodeSelector | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) | `{}` |
|
| dex.nodeSelector | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) | `{}` |
|
||||||
| dex.podAnnotations | Annotations for the Dex server pods | `{}` |
|
| dex.podAnnotations | Annotations for the Dex server pods | `{}` |
|
||||||
| dex.podLabels | Labels for the Dex server pods | `{}` |
|
| dex.podLabels | Labels for the Dex server pods | `{}` |
|
||||||
|
@ -359,6 +380,7 @@ through `xxx.extraArgs`
|
||||||
| redis.extraArgs | Additional arguments for the `redis-server`. A list of flags. | `[]` |
|
| redis.extraArgs | Additional arguments for the `redis-server`. A list of flags. | `[]` |
|
||||||
| redis.name | Redis name | `"redis"` |
|
| redis.name | Redis name | `"redis"` |
|
||||||
| redis.env | Environment variables for the Redis server. | `[]` |
|
| redis.env | Environment variables for the Redis server. | `[]` |
|
||||||
|
| redis.envFrom | `envFrom` to pass to the Redis server. | `[]` (See [values.yaml](values.yaml)) |
|
||||||
| redis.nodeSelector | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) | `{}` |
|
| redis.nodeSelector | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) | `{}` |
|
||||||
| redis.podAnnotations | Annotations for the Redis server pods | `{}` |
|
| redis.podAnnotations | Annotations for the Redis server pods | `{}` |
|
||||||
| redis.podLabels | Labels for the Redis server pods | `{}` |
|
| redis.podLabels | Labels for the Redis server pods | `{}` |
|
||||||
|
|
|
@ -9,7 +9,8 @@ In order to access the server UI you have the following options:
|
||||||
- Add the `--insecure` flag to `server.extraArgs` in the values file and terminate SSL at your ingress: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/ingress.md#option-2-multiple-ingress-objects-and-hosts
|
- Add the `--insecure` flag to `server.extraArgs` in the values file and terminate SSL at your ingress: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/ingress.md#option-2-multiple-ingress-objects-and-hosts
|
||||||
|
|
||||||
|
|
||||||
After reaching the UI the first time you can login with username: admin and the password will be the
|
After reaching the UI the first time you can login with username: admin and the random password generated during the installation. You can find the password by running:
|
||||||
name of the server pod. You can get the pod name by running:
|
|
||||||
|
|
||||||
kubectl get pods -n {{ .Release.Namespace }} -l app.kubernetes.io/name={{ include "argo-cd.name" . }}-server -o name | cut -d'/' -f 2
|
kubectl -n {{ .Release.Namespace }} get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
|
||||||
|
|
||||||
|
(You should delete the initial secret afterwards as suggested by the Getting Started Guide: https://github.com/argoproj/argo-cd/blob/master/docs/getting_started.md#4-login-using-the-cli)
|
||||||
|
|
|
@ -144,15 +144,22 @@ app.kubernetes.io/component: {{ .component }}
|
||||||
Return the appropriate apiVersion for ingress
|
Return the appropriate apiVersion for ingress
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "argo-cd.ingress.apiVersion" -}}
|
{{- define "argo-cd.ingress.apiVersion" -}}
|
||||||
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare "<1.14-0" (include "argo-cd.kubeVersion" $) -}}
|
||||||
{{- print "extensions/v1beta1" -}}
|
{{- print "extensions/v1beta1" -}}
|
||||||
{{- else if semverCompare "<1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- else if semverCompare "<1.19-0" (include "argo-cd.kubeVersion" $) -}}
|
||||||
{{- print "networking.k8s.io/v1beta1" -}}
|
{{- print "networking.k8s.io/v1beta1" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- print "networking.k8s.io/v1" -}}
|
{{- print "networking.k8s.io/v1" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Return the target Kubernetes version
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-cd.kubeVersion" -}}
|
||||||
|
{{- default .Capabilities.KubeVersion.Version .Values.kubeVersionOverride }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Argo Configuration Preset Values (Incluenced by Values configuration)
|
Argo Configuration Preset Values (Incluenced by Values configuration)
|
||||||
*/}}
|
*/}}
|
||||||
|
|
|
@ -70,6 +70,9 @@ spec:
|
||||||
{{- if .Values.controller.env }}
|
{{- if .Values.controller.env }}
|
||||||
env:
|
env:
|
||||||
{{- toYaml .Values.controller.env | nindent 8 }}
|
{{- toYaml .Values.controller.env | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.envFrom }}
|
||||||
|
envFrom: {{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: controller
|
- name: controller
|
||||||
|
|
|
@ -17,7 +17,9 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: metrics
|
||||||
interval: 30s
|
{{- with .Values.controller.metrics.serviceMonitor.interval }}
|
||||||
|
interval: {{ . }}
|
||||||
|
{{- end }}
|
||||||
path: /metrics
|
path: /metrics
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
|
|
|
@ -67,6 +67,9 @@ spec:
|
||||||
value: argocd
|
value: argocd
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.repoServer.envFrom }}
|
||||||
|
envFrom: {{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if .Values.repoServer.volumeMounts }}
|
{{- if .Values.repoServer.volumeMounts }}
|
||||||
{{- toYaml .Values.repoServer.volumeMounts | nindent 8}}
|
{{- toYaml .Values.repoServer.volumeMounts | nindent 8}}
|
||||||
|
|
|
@ -17,7 +17,9 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: metrics
|
||||||
interval: 30s
|
{{- with .Values.controller.metrics.serviceMonitor.interval }}
|
||||||
|
interval: {{ . }}
|
||||||
|
{{- end }}
|
||||||
path: /metrics
|
path: /metrics
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
|
|
|
@ -23,5 +23,5 @@ spec:
|
||||||
issuerRef:
|
issuerRef:
|
||||||
kind: {{ .Values.server.certificate.issuer.kind | quote }}
|
kind: {{ .Values.server.certificate.issuer.kind | quote }}
|
||||||
name: {{ .Values.server.certificate.issuer.name | quote }}
|
name: {{ .Values.server.certificate.issuer.name | quote }}
|
||||||
secretName: argocd-secret
|
secretName: argocd-tls-certificate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -67,6 +67,9 @@ spec:
|
||||||
{{- if .Values.server.env }}
|
{{- if .Values.server.env }}
|
||||||
env:
|
env:
|
||||||
{{- toYaml .Values.server.env | nindent 8 }}
|
{{- toYaml .Values.server.env | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.server.envFrom }}
|
||||||
|
envFrom: {{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if .Values.server.volumeMounts }}
|
{{- if .Values.server.volumeMounts }}
|
||||||
|
|
|
@ -44,3 +44,6 @@ spec:
|
||||||
{{ toYaml .Values.server.service.loadBalancerSourceRanges | indent 4 }}
|
{{ toYaml .Values.server.service.loadBalancerSourceRanges | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- with .Values.server.service.externalTrafficPolicy }}
|
||||||
|
externalTrafficPolicy: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -17,7 +17,9 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: metrics
|
||||||
interval: 30s
|
{{- with .Values.controller.metrics.serviceMonitor.interval }}
|
||||||
|
interval: {{ . }}
|
||||||
|
{{- end }}
|
||||||
path: /metrics
|
path: /metrics
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
|
|
|
@ -62,6 +62,9 @@ spec:
|
||||||
{{- if .Values.dex.env }}
|
{{- if .Values.dex.env }}
|
||||||
env:
|
env:
|
||||||
{{- toYaml .Values.dex.env | nindent 8 }}
|
{{- toYaml .Values.dex.env | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.dex.envFrom }}
|
||||||
|
envFrom: {{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|
|
@ -17,7 +17,9 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: metrics
|
||||||
interval: 30s
|
{{- with .Values.controller.metrics.serviceMonitor.interval }}
|
||||||
|
interval: {{ . }}
|
||||||
|
{{- end }}
|
||||||
path: /metrics
|
path: /metrics
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
|
|
|
@ -52,6 +52,9 @@ spec:
|
||||||
{{- if .Values.redis.env }}
|
{{- if .Values.redis.env }}
|
||||||
env:
|
env:
|
||||||
{{- toYaml .Values.redis.env | nindent 8 }}
|
{{- toYaml .Values.redis.env | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.redis.envFrom }}
|
||||||
|
envFrom: {{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.redis.containerPort }}
|
- containerPort: {{ .Values.redis.containerPort }}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
##
|
##
|
||||||
nameOverride: argocd
|
nameOverride: argocd
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
kubeVersionOverride: ""
|
||||||
|
|
||||||
# Optional CRD installation for those without Helm hooks
|
# Optional CRD installation for those without Helm hooks
|
||||||
installCRDs: true
|
installCRDs: true
|
||||||
|
@ -10,7 +11,7 @@ installCRDs: true
|
||||||
global:
|
global:
|
||||||
image:
|
image:
|
||||||
repository: quay.io/argoproj/argocd
|
repository: quay.io/argoproj/argocd
|
||||||
tag: v2.0.1
|
tag: v2.0.3
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext: {}
|
securityContext: {}
|
||||||
# runAsUser: 999
|
# runAsUser: 999
|
||||||
|
@ -61,6 +62,14 @@ controller:
|
||||||
# - name: "ARGOCD_CONTROLLER_REPLICAS"
|
# - name: "ARGOCD_CONTROLLER_REPLICAS"
|
||||||
# value: ""
|
# value: ""
|
||||||
|
|
||||||
|
## envFrom to pass to argocd-controller
|
||||||
|
##
|
||||||
|
envFrom: []
|
||||||
|
# - configMapRef:
|
||||||
|
# name: config-map-name
|
||||||
|
# - secretRef:
|
||||||
|
# name: secret-name
|
||||||
|
|
||||||
## Annotations to be added to controller pods
|
## Annotations to be added to controller pods
|
||||||
##
|
##
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
@ -143,6 +152,7 @@ controller:
|
||||||
servicePort: 8082
|
servicePort: 8082
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
interval: 30s
|
||||||
# selector:
|
# selector:
|
||||||
# prometheus: kube-prometheus
|
# prometheus: kube-prometheus
|
||||||
# namespace: monitoring
|
# namespace: monitoring
|
||||||
|
@ -206,10 +216,11 @@ dex:
|
||||||
# selector:
|
# selector:
|
||||||
# prometheus: kube-prometheus
|
# prometheus: kube-prometheus
|
||||||
# additionalLabels: {}
|
# additionalLabels: {}
|
||||||
|
interval: 30s
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: quay.io/dexidp/dex
|
repository: ghcr.io/dexidp/dex
|
||||||
tag: v2.26.0
|
tag: v2.27.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
initImage:
|
initImage:
|
||||||
repository:
|
repository:
|
||||||
|
@ -220,6 +231,13 @@ dex:
|
||||||
##
|
##
|
||||||
env: []
|
env: []
|
||||||
|
|
||||||
|
## envFrom to pass to the Dex server
|
||||||
|
envFrom: []
|
||||||
|
# - configMapRef:
|
||||||
|
# name: config-map-name
|
||||||
|
# - secretRef:
|
||||||
|
# name: secret-name
|
||||||
|
|
||||||
## Annotations to be added to the Dex server pods
|
## Annotations to be added to the Dex server pods
|
||||||
##
|
##
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
@ -302,6 +320,14 @@ redis:
|
||||||
##
|
##
|
||||||
env: []
|
env: []
|
||||||
|
|
||||||
|
## envFrom to pass to the Redis server
|
||||||
|
##
|
||||||
|
envFrom: []
|
||||||
|
# - configMapRef:
|
||||||
|
# name: config-map-name
|
||||||
|
# - secretRef:
|
||||||
|
# name: secret-name
|
||||||
|
|
||||||
## Annotations to be added to the Redis server pods
|
## Annotations to be added to the Redis server pods
|
||||||
##
|
##
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
@ -392,6 +418,14 @@ server:
|
||||||
##
|
##
|
||||||
env: []
|
env: []
|
||||||
|
|
||||||
|
## envFrom to pass to argocd-server
|
||||||
|
##
|
||||||
|
envFrom: []
|
||||||
|
# - configMapRef:
|
||||||
|
# name: config-map-name
|
||||||
|
# - secretRef:
|
||||||
|
# name: secret-name
|
||||||
|
|
||||||
## Specify postStart and preStop lifecycle hooks for your argo-cd-server container
|
## Specify postStart and preStop lifecycle hooks for your argo-cd-server container
|
||||||
##
|
##
|
||||||
lifecycle: {}
|
lifecycle: {}
|
||||||
|
@ -482,6 +516,7 @@ server:
|
||||||
loadBalancerIP: ""
|
loadBalancerIP: ""
|
||||||
loadBalancerSourceRanges: []
|
loadBalancerSourceRanges: []
|
||||||
externalIPs: []
|
externalIPs: []
|
||||||
|
externalTrafficPolicy: ""
|
||||||
|
|
||||||
## Server metrics service configuration
|
## Server metrics service configuration
|
||||||
metrics:
|
metrics:
|
||||||
|
@ -492,6 +527,7 @@ server:
|
||||||
servicePort: 8083
|
servicePort: 8083
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
interval: 30s
|
||||||
# selector:
|
# selector:
|
||||||
# prometheus: kube-prometheus
|
# prometheus: kube-prometheus
|
||||||
# namespace: monitoring
|
# namespace: monitoring
|
||||||
|
@ -526,13 +562,21 @@ server:
|
||||||
# backend:
|
# backend:
|
||||||
# serviceName: ssl-redirect
|
# serviceName: ssl-redirect
|
||||||
# servicePort: use-annotation
|
# servicePort: use-annotation
|
||||||
|
## for Kubernetes >=1.19 (when "networking.k8s.io/v1" is used)
|
||||||
|
# - path: /*
|
||||||
|
# pathType: Prefix
|
||||||
|
# backend:
|
||||||
|
# service
|
||||||
|
# name: ssl-redirect
|
||||||
|
# port:
|
||||||
|
# name: use-annotation
|
||||||
tls:
|
tls:
|
||||||
[]
|
[]
|
||||||
# - secretName: argocd-example-tls
|
# - secretName: argocd-tls-certificate
|
||||||
# hosts:
|
# hosts:
|
||||||
# - argocd.example.com
|
# - argocd.example.com
|
||||||
https: false
|
https: false
|
||||||
# dedicated ingess for gRPC as documented at
|
# dedicated ingress for gRPC as documented at
|
||||||
# https://argoproj.github.io/argo-cd/operator-manual/ingress/
|
# https://argoproj.github.io/argo-cd/operator-manual/ingress/
|
||||||
ingressGrpc:
|
ingressGrpc:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@ -555,9 +599,17 @@ server:
|
||||||
# backend:
|
# backend:
|
||||||
# serviceName: ssl-redirect
|
# serviceName: ssl-redirect
|
||||||
# servicePort: use-annotation
|
# servicePort: use-annotation
|
||||||
|
## for Kubernetes >=1.19 (when "networking.k8s.io/v1" is used)
|
||||||
|
# - path: /*
|
||||||
|
# pathType: Prefix
|
||||||
|
# backend:
|
||||||
|
# service
|
||||||
|
# name: ssl-redirect
|
||||||
|
# port:
|
||||||
|
# name: use-annotation
|
||||||
tls:
|
tls:
|
||||||
[]
|
[]
|
||||||
# - secretName: argocd-example-tls
|
# - secretName: argocd-tls-certificate
|
||||||
# hosts:
|
# hosts:
|
||||||
# - argocd.example.com
|
# - argocd.example.com
|
||||||
https: false
|
https: false
|
||||||
|
@ -631,7 +683,7 @@ server:
|
||||||
## Annotations to be added to ArgoCD rbac ConfigMap
|
## Annotations to be added to ArgoCD rbac ConfigMap
|
||||||
rbacConfigAnnotations: {}
|
rbacConfigAnnotations: {}
|
||||||
|
|
||||||
# Boolean determining whether or not to create the configmap. If false, it is expected tthe configmap will be created
|
# Boolean determining whether or not to create the configmap. If false, it is expected the configmap will be created
|
||||||
# by something else. ArgoCD will not work if there is no configMap created with the name above.
|
# by something else. ArgoCD will not work if there is no configMap created with the name above.
|
||||||
rbacConfigCreate: true
|
rbacConfigCreate: true
|
||||||
|
|
||||||
|
@ -761,6 +813,14 @@ repoServer:
|
||||||
##
|
##
|
||||||
env: []
|
env: []
|
||||||
|
|
||||||
|
## envFrom to pass to argocd-repo-server
|
||||||
|
##
|
||||||
|
envFrom: []
|
||||||
|
# - configMapRef:
|
||||||
|
# name: config-map-name
|
||||||
|
# - secretRef:
|
||||||
|
# name: secret-name
|
||||||
|
|
||||||
## Argo repoServer log format: text|json
|
## Argo repoServer log format: text|json
|
||||||
logFormat: text
|
logFormat: text
|
||||||
## Argo repoServer log level
|
## Argo repoServer log level
|
||||||
|
@ -840,6 +900,7 @@ repoServer:
|
||||||
servicePort: 8084
|
servicePort: 8084
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
interval: 30s
|
||||||
# selector:
|
# selector:
|
||||||
# prometheus: kube-prometheus
|
# prometheus: kube-prometheus
|
||||||
# namespace: monitoring
|
# namespace: monitoring
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
description: A Helm chart to install Argo-Events in k8s Cluster
|
description: A Helm chart to install Argo-Events in k8s Cluster
|
||||||
name: argo-events
|
name: argo-events
|
||||||
version: 1.4.0
|
version: 1.6.1
|
||||||
keywords:
|
keywords:
|
||||||
- argo-events
|
- argo-events
|
||||||
- sensor-controller
|
- sensor-controller
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
serviceAccount: argo-events-sa-test
|
serviceAccount: argo-events-sa-test
|
||||||
additionalSaNamespaces:
|
|
||||||
- nsone
|
|
||||||
- nstwo
|
|
||||||
instanceID: test-argo-events
|
instanceID: test-argo-events
|
||||||
singleNamespace: false
|
singleNamespace: false
|
||||||
|
|
|
@ -5,7 +5,11 @@ kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccount }}
|
name: {{ .Values.serviceAccount }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
|
{{- with .Values.serviceAccountAnnotations }}
|
||||||
|
annotations: {{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.additionalSaNamespaces }}
|
{{- if .Values.additionalSaNamespaces }}
|
||||||
|
{{ $annotations := .Values.serviceAccountAnnotations }}
|
||||||
{{ $sa := .Values.serviceAccount }}
|
{{ $sa := .Values.serviceAccount }}
|
||||||
{{- range $namespace := .Values.additionalSaNamespaces }}
|
{{- range $namespace := .Values.additionalSaNamespaces }}
|
||||||
---
|
---
|
||||||
|
@ -14,5 +18,8 @@ kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $sa }}
|
name: {{ $sa }}
|
||||||
namespace: {{ $namespace }}
|
namespace: {{ $namespace }}
|
||||||
|
{{- with $annotations }}
|
||||||
|
annotations: {{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -2,6 +2,7 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.eventbusController.name }}
|
name: {{ .Release.Name }}-{{ .Values.eventbusController.name }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-{{ .Values.eventbusController.name }}
|
app: {{ .Release.Name }}-{{ .Values.eventbusController.name }}
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
@ -55,6 +56,7 @@ spec:
|
||||||
port: 8081
|
port: 8081
|
||||||
initialDelaySeconds: 3
|
initialDelaySeconds: 3
|
||||||
periodSeconds: 3
|
periodSeconds: 3
|
||||||
|
resources: {{- toYaml .Values.eventbusController.resources | nindent 12 }}
|
||||||
{{- with .Values.eventbusController.priorityClassName }}
|
{{- with .Values.eventbusController.priorityClassName }}
|
||||||
priorityClassName: {{ . | quote }}
|
priorityClassName: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -2,6 +2,7 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.eventsourceController.name }}
|
name: {{ .Release.Name }}-{{ .Values.eventsourceController.name }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-{{ .Values.eventsourceController.name }}
|
app: {{ .Release.Name }}-{{ .Values.eventsourceController.name }}
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
@ -53,6 +54,7 @@ spec:
|
||||||
port: 8081
|
port: 8081
|
||||||
initialDelaySeconds: 3
|
initialDelaySeconds: 3
|
||||||
periodSeconds: 3
|
periodSeconds: 3
|
||||||
|
resources: {{- toYaml .Values.eventsourceController.resources | nindent 12 }}
|
||||||
{{- with .Values.eventsourceController.priorityClassName }}
|
{{- with .Values.eventsourceController.priorityClassName }}
|
||||||
priorityClassName: {{ . | quote }}
|
priorityClassName: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -2,6 +2,7 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.sensorController.name }}
|
name: {{ .Release.Name }}-{{ .Values.sensorController.name }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-{{ .Values.sensorController.name }}
|
app: {{ .Release.Name }}-{{ .Values.sensorController.name }}
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
@ -53,6 +54,7 @@ spec:
|
||||||
port: 8081
|
port: 8081
|
||||||
initialDelaySeconds: 3
|
initialDelaySeconds: 3
|
||||||
periodSeconds: 3
|
periodSeconds: 3
|
||||||
|
resources: {{- toYaml .Values.sensorController.resources | nindent 12 }}
|
||||||
{{- with .Values.sensorController.priorityClassName }}
|
{{- with .Values.sensorController.priorityClassName }}
|
||||||
priorityClassName: {{ . | quote }}
|
priorityClassName: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# docker registry
|
# docker registry
|
||||||
registry: argoproj
|
registry: quay.io
|
||||||
|
|
||||||
# The image pull policy
|
# The image pull policy
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
@ -14,6 +14,9 @@ installCRD: true
|
||||||
# ServiceAccount to use for running controller.
|
# ServiceAccount to use for running controller.
|
||||||
serviceAccount: argo-events-sa
|
serviceAccount: argo-events-sa
|
||||||
|
|
||||||
|
# serviceAccountAnnotations can be used to enable GKE workload identity, or other use-cases
|
||||||
|
serviceAccountAnnotations: {}
|
||||||
|
|
||||||
# Create service accounts in additional namespaces specified
|
# Create service accounts in additional namespaces specified
|
||||||
# The SA will always be created in the release namespaces
|
# The SA will always be created in the release namespaces
|
||||||
additionalSaNamespaces: []
|
additionalSaNamespaces: []
|
||||||
|
@ -44,33 +47,35 @@ singleNamespace: true
|
||||||
# sensor controller
|
# sensor controller
|
||||||
sensorController:
|
sensorController:
|
||||||
name: sensor-controller
|
name: sensor-controller
|
||||||
image: sensor-controller
|
image: argoproj/sensor-controller
|
||||||
tag: v1.3.1
|
tag: v1.3.1
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
sensorImage: sensor
|
sensorImage: argoproj/sensor
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
podLabels: {}
|
podLabels: {}
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
resources: {}
|
||||||
|
|
||||||
eventsourceController:
|
eventsourceController:
|
||||||
name: eventsource-controller
|
name: eventsource-controller
|
||||||
image: eventsource-controller
|
image: argoproj/eventsource-controller
|
||||||
tag: v1.3.1
|
tag: v1.3.1
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
eventsourceImage: eventsource
|
eventsourceImage: argoproj/eventsource
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
podLabels: {}
|
podLabels: {}
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
resources: {}
|
||||||
|
|
||||||
eventbusController:
|
eventbusController:
|
||||||
name: eventbus-controller
|
name: eventbus-controller
|
||||||
image: eventbus-controller
|
image: argoproj/eventbus-controller
|
||||||
tag: v1.3.1
|
tag: v1.3.1
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
@ -79,6 +84,7 @@ eventbusController:
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
resources: {}
|
||||||
natsStreamingImage: nats-streaming:0.17.0
|
natsStreamingImage: nats-streaming:0.17.0
|
||||||
natsMetricsExporterImage: synadia/prometheus-nats-exporter:0.6.2
|
natsMetricsExporterImage: synadia/prometheus-nats-exporter:0.6.2
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
apiVersion: v1
|
apiVersion: v2
|
||||||
appVersion: "0.10.2"
|
appVersion: "v1.0.1"
|
||||||
description: A Helm chart for Argo Rollouts
|
description: A Helm chart for Argo Rollouts
|
||||||
name: argo-rollouts
|
name: argo-rollouts
|
||||||
version: 0.5.2
|
version: 1.0.1
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
Argo Rollouts Chart
|
# Argo Rollouts Chart
|
||||||
=============
|
|
||||||
A Helm chart for Argo Rollouts, progressive delivery for Kubernetes.
|
|
||||||
|
|
||||||
Current chart version is `0.5.0`
|
A Helm chart for Argo Rollouts, progressive delivery for Kubernetes.
|
||||||
|
|
||||||
Source code can be found [here](https://github.com/argoproj/argo-rollouts)
|
Source code can be found [here](https://github.com/argoproj/argo-rollouts)
|
||||||
|
|
||||||
## Additional Information
|
## Additional Information
|
||||||
|
|
||||||
This is a **community maintained** chart. This chart installs [argo-rollouts](https://argoproj.github.io/argo-rollouts/), progressive delivery for Kubernetes.
|
This is a **community maintained** chart. This chart installs [argo-rollouts](https://argoproj.github.io/argo-rollouts/), progressive delivery for Kubernetes.
|
||||||
|
|
||||||
The default installation is intended to be similar to the provided Argo Rollouts [releases](https://github.com/argoproj/argo-rollouts/releases).
|
The default installation is intended to be similar to the provided Argo Rollouts [releases](https://github.com/argoproj/argo-rollouts/releases).
|
||||||
|
@ -14,6 +13,7 @@ The default installation is intended to be similar to the provided Argo Rollouts
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Kubernetes 1.7+
|
- Kubernetes 1.7+
|
||||||
|
- Helm v3.0.0+
|
||||||
|
|
||||||
|
|
||||||
## Installing the Chart
|
## Installing the Chart
|
||||||
|
@ -22,27 +22,49 @@ To install the chart with the release name `my-release`:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ helm repo add argo https://argoproj.github.io/argo-helm
|
$ helm repo add argo https://argoproj.github.io/argo-helm
|
||||||
$ helm install --name my-release argo/argo-rollouts
|
$ helm install my-release argo/argo-rollouts
|
||||||
```
|
```
|
||||||
|
|
||||||
## Chart Values
|
## Chart Values
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| clusterInstall | bool | `true` | |
|
| clusterInstall | bool | `true` | `false` runs controller in namespaced mode (does not require cluster RBAC) |
|
||||||
| controller.component | string | `"rollouts-controller"` | |
|
| controller.component | string | `"rollouts-controller"` | Value of label `app.kubernetes.io/component` |
|
||||||
| controller.image.pullPolicy | string | `"IfNotPresent"` | |
|
| controller.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
|
||||||
| controller.image.repository | string | `"argoproj/argo-rollouts"` | |
|
| controller.image.registry | string | `quay.io` | Registry to use |
|
||||||
| controller.image.tag | string | `"v0.10.2"` | |
|
| controller.image.repository | string | `"argoproj/argo-rollouts"` | Repository to use |
|
||||||
| controller.name | string | `"argo-rollouts"` | |
|
| controller.image.tag | string | `""` | Overrides the image tag (default is the chart appVersion) |
|
||||||
| controller.resources | Resource limits and requests for the controller pods. | `{}` |
|
| controller.resources | object | `{}` | Resource limits and requests for the controller pods. |
|
||||||
| controller.tolerations | [Tolerations for use with node taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) | `[]` |
|
| controller.tolerations | list | `[]` | [Tolerations for use with node taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) |
|
||||||
| controller.affinity | [Assign custom affinity rules to the deployment](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/) | `{}` |
|
| controller.affinity | object | `{}` | [Assign custom affinity rules to the deployment](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/) |
|
||||||
| controller.nodeSelector | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) | `{}` |
|
| controller.nodeSelector | object | `{}` | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) |
|
||||||
| controller.metrics.serviceMonitor.enabled | bool | `false` | |
|
| controller.metrics.enabled | bool | `false` | Deploy metrics service |
|
||||||
| imagePullSecrets | list | `[]` | |
|
| controller.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
|
||||||
| installCRDs | bool | `true` | |
|
| controller.metrics.serviceMonitor.additionalAnnotations | object | `{}` | Annotations to be added to the ServiceMonitor |
|
||||||
| crdAnnotations | object | `{}` | |
|
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | Labels to be added to the ServiceMonitor |
|
||||||
| podAnnotations | object | `{}` | |
|
| imagePullSecrets | list | `[]` | Registry secret names as an array |
|
||||||
| podLabels | object | `{}` | |
|
| installCRDs | bool | `true` | Install and upgrade CRDs |
|
||||||
| serviceAccount.name | string | `"argo-rollouts"` | |
|
| crdAnnotations | object | `{}` | Annotations to be added to all CRDs |
|
||||||
|
| podAnnotations | object | `{}` | Annotations to be added to the Rollout pods |
|
||||||
|
| podLabels | object | `{}` | Labels to be added to the Rollout pods |
|
||||||
|
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
|
||||||
|
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
|
||||||
|
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
|
||||||
|
| podSecurityContext | object | `{"runAsNonRoot": true}` | Security Context to set on pod level |
|
||||||
|
| containerSecurityContext | object | `{}` | Security Context to set on container level |
|
||||||
|
|
||||||
|
## Upgrading
|
||||||
|
|
||||||
|
### To 1.0.0
|
||||||
|
|
||||||
|
* This is a breaking change which only supports Helm v3.0.0+ now. If you still use Helm v2, please consider upgrading because v2 is EOL since November 2020.
|
||||||
|
To migrate to Helm v3 please have a look at the [Helm 2to3 Plugin](https://github.com/helm/helm-2to3). This tool will convert the existing ConfigMap used for Tiller to a Secret of type `helm.sh/release.v1`.
|
||||||
|
* `quay.io` is the default registry now
|
||||||
|
* We introduce a template function for the labels here to reduce code duplication. This also affects the Deployment `matchLabels` selector.
|
||||||
|
To upgrade an existing installation, please **add the `--force` parameter** to the `helm upgrade` command or **delete the Deployment resource** before you upgrade. This is necessary because Deployment's label selector is immutable.
|
||||||
|
* All resources are now prefixed with the template `"argo-rollouts.fullname"`.
|
||||||
|
This enables the users to override resource names via the `nameOverride` and `fullnameOverride` parameters.
|
||||||
|
* Breaking parameters update
|
||||||
|
* `securityContext` was renamed to `containerSecurityContext`
|
||||||
|
* Added `controller.image.registry`. Prior to this chart version you had to override the registry via `controller.image.repository`
|
||||||
|
|
|
@ -30,3 +30,35 @@ Create chart name and version as used by the chart label.
|
||||||
{{- define "argo-rollouts.chart" -}}
|
{{- define "argo-rollouts.chart" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-rollouts.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "argo-rollouts.chart" . }}
|
||||||
|
{{ include "argo-rollouts.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/part-of: argo-rollouts
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-rollouts.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "argo-rollouts.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-rollouts.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "argo-rollouts.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -2,12 +2,11 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-aggregate-to-view
|
name: {{ include "argo-rollouts.fullname" . }}-aggregate-to-view
|
||||||
labels:
|
labels:
|
||||||
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
||||||
app.kubernetes.io/component: aggregate-cluster-role
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-aggregate-to-view
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
|
@ -27,12 +26,11 @@ rules:
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-aggregate-to-edit
|
name: {{ include "argo-rollouts.fullname" . }}-aggregate-to-edit
|
||||||
labels:
|
labels:
|
||||||
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
||||||
app.kubernetes.io/component: aggregate-cluster-role
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-aggregate-to-edit
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
|
@ -58,12 +56,11 @@ rules:
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-aggregate-to-admin
|
name: {{ include "argo-rollouts.fullname" . }}-aggregate-to-admin
|
||||||
labels:
|
labels:
|
||||||
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
||||||
app.kubernetes.io/component: aggregate-cluster-role
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-aggregate-to-admin
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
|
|
|
@ -2,11 +2,10 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-clusterrole
|
name: {{ include "argo-rollouts.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-clusterrole
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
|
@ -57,6 +56,16 @@ rules:
|
||||||
- update
|
- update
|
||||||
- patch
|
- patch
|
||||||
- delete
|
- delete
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
- apps
|
||||||
|
resources:
|
||||||
|
- deployments
|
||||||
|
- podtemplates
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
# services patch needed to update selector of canary/stable/active/preview services
|
# services patch needed to update selector of canary/stable/active/preview services
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
|
@ -135,6 +144,7 @@ rules:
|
||||||
- watch
|
- watch
|
||||||
- get
|
- get
|
||||||
- update
|
- update
|
||||||
|
- patch
|
||||||
- list
|
- list
|
||||||
# trafficsplit access needed for using the SMI provider
|
# trafficsplit access needed for using the SMI provider
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
|
@ -147,4 +157,15 @@ rules:
|
||||||
- get
|
- get
|
||||||
- update
|
- update
|
||||||
- patch
|
- patch
|
||||||
|
- apiGroups:
|
||||||
|
- getambassador.io
|
||||||
|
resources:
|
||||||
|
- mappings
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- watch
|
||||||
|
- get
|
||||||
|
- update
|
||||||
|
- list
|
||||||
|
- delete
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -2,17 +2,16 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-clusterrolebinding
|
name: {{ include "argo-rollouts.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-clusterrolebinding
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: {{ .Release.Name }}-clusterrole
|
name: {{ include "argo-rollouts.fullname" . }}
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ .Values.serviceAccount.name }}
|
name: {{ include "argo-rollouts.serviceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -1,52 +1,54 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}
|
name: {{ include "argo-rollouts.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
{{- if .Values.podLabels }}
|
|
||||||
{{- toYaml .Values.podLabels | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- if .Values.podAnnotations }}
|
{{- with .Values.podAnnotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- range $key, $value := .Values.podAnnotations }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
||||||
|
{{- range $key, $value := .Values.podLabels }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
serviceAccountName: {{ .Values.serviceAccount.name }}
|
serviceAccountName: {{ include "argo-rollouts.serviceAccountName" . }}
|
||||||
containers:
|
containers:
|
||||||
- image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
|
- image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ default .Chart.AppVersion .Values.controller.image.tag }}"
|
||||||
{{- if not .Values.clusterInstall }}
|
{{- if not .Values.clusterInstall }}
|
||||||
args:
|
args:
|
||||||
- --namespaced
|
- --namespaced
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
||||||
name: {{ .Values.controller.name }}
|
name: argo-rollouts
|
||||||
resources:
|
ports:
|
||||||
{{- toYaml .Values.controller.resources | nindent 10 }}
|
- containerPort: 8090
|
||||||
|
name: metrics
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.containerSecurityContext | nindent 10 }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.controller.resources | nindent 10 }}
|
{{- toYaml .Values.controller.resources | nindent 10 }}
|
||||||
{{- if .Values.controller.nodeSelector }}
|
{{- if .Values.controller.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml .Values.controller.nodeSelector | nindent 8 }}
|
{{- toYaml .Values.controller.nodeSelector | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
{{- if .Values.controller.tolerations }}
|
{{- if .Values.controller.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml .Values.controller.tolerations | nindent 8 }}
|
{{- toYaml .Values.controller.tolerations | nindent 8 }}
|
||||||
|
@ -55,5 +57,3 @@ spec:
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml .Values.controller.affinity | nindent 8 }}
|
{{- toYaml .Values.controller.affinity | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
|
{{- if .Values.controller.metrics.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-metrics
|
name: {{ include "argo-rollouts.fullname" . }}-metrics
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: server
|
app.kubernetes.io/component: server
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-metrics
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
{{- with .Values.serviceAnnotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- range $key, $value := .Values.serviceAnnotations }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
|
@ -17,4 +17,5 @@ spec:
|
||||||
port: 8090
|
port: 8090
|
||||||
targetPort: 8090
|
targetPort: 8090
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
{{- if not .Values.clusterInstall }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-role
|
name: {{ include "argo-rollouts.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-role
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
|
@ -145,3 +145,4 @@ rules:
|
||||||
- get
|
- get
|
||||||
- update
|
- update
|
||||||
- patch
|
- patch
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
|
{{- if not .Values.clusterInstall }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-role-binding
|
name: {{ include "argo-rollouts.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-role-binding
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: Role
|
||||||
name: {{ .Release.Name }}-role
|
name: {{ include "argo-rollouts.fullname" . }}
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ .Values.serviceAccount.name }}
|
name: {{ include "argo-rollouts.serviceAccountName" . }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
|
{{- if .Values.serviceAccount.create -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccount.name }}
|
name: {{ include "argo-rollouts.serviceAccountName" . }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
{{- with .Values.serviceAccount.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,18 +1,17 @@
|
||||||
{{- if .Values.controller.metrics.serviceMonitor.enabled }}
|
{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.serviceMonitor.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}
|
name: {{ include "argo-rollouts.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: server
|
app.kubernetes.io/component: server
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-metrics
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
{{- range $key, $value := .Values.controller.metrics.serviceMonitor.additionalLabels }}
|
||||||
{{- if .Values.controller.metrics.serviceMonitor.additionalLabels }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{ toYaml .Values.controller.metrics.serviceMonitor.additionalLabels | indent 4 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.metrics.serviceMonitor.additionalAnnotations }}
|
{{- with .Values.controller.metrics.serviceMonitor.additionalAnnotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ toYaml .Values.controller.metrics.serviceMonitor.additionalAnnotations | indent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
|
@ -23,6 +22,5 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/component: server
|
app.kubernetes.io/component: server
|
||||||
app.kubernetes.io/name: {{ .Release.Name }}-metrics
|
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -3,10 +3,13 @@ apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.4.1
|
controller-gen.kubebuilder.io/version: v0.5.0
|
||||||
{{- if .Values.crdAnnotations }}
|
{{- if .Values.crdAnnotations }}
|
||||||
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: argo-rollouts
|
||||||
|
app.kubernetes.io/part-of: argo-rollouts
|
||||||
name: analysisruns.argoproj.io
|
name: analysisruns.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
|
@ -2305,6 +2308,7 @@ spec:
|
||||||
start:
|
start:
|
||||||
type: string
|
type: string
|
||||||
step:
|
step:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- end
|
- end
|
||||||
|
@ -2324,6 +2328,7 @@ spec:
|
||||||
start:
|
start:
|
||||||
type: string
|
type: string
|
||||||
step:
|
step:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- end
|
- end
|
||||||
|
@ -2345,8 +2350,10 @@ spec:
|
||||||
threshold:
|
threshold:
|
||||||
properties:
|
properties:
|
||||||
marginal:
|
marginal:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
pass:
|
pass:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- marginal
|
- marginal
|
||||||
|
@ -2404,6 +2411,7 @@ spec:
|
||||||
jsonPath:
|
jsonPath:
|
||||||
type: string
|
type: string
|
||||||
timeoutSeconds:
|
timeoutSeconds:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
@ -3,10 +3,13 @@ apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.4.1
|
controller-gen.kubebuilder.io/version: v0.5.0
|
||||||
{{- if .Values.crdAnnotations }}
|
{{- if .Values.crdAnnotations }}
|
||||||
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: argo-rollouts
|
||||||
|
app.kubernetes.io/part-of: argo-rollouts
|
||||||
name: analysistemplates.argoproj.io
|
name: analysistemplates.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
|
@ -2300,6 +2303,7 @@ spec:
|
||||||
start:
|
start:
|
||||||
type: string
|
type: string
|
||||||
step:
|
step:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- end
|
- end
|
||||||
|
@ -2319,6 +2323,7 @@ spec:
|
||||||
start:
|
start:
|
||||||
type: string
|
type: string
|
||||||
step:
|
step:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- end
|
- end
|
||||||
|
@ -2340,8 +2345,10 @@ spec:
|
||||||
threshold:
|
threshold:
|
||||||
properties:
|
properties:
|
||||||
marginal:
|
marginal:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
pass:
|
pass:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- marginal
|
- marginal
|
||||||
|
@ -2399,6 +2406,7 @@ spec:
|
||||||
jsonPath:
|
jsonPath:
|
||||||
type: string
|
type: string
|
||||||
timeoutSeconds:
|
timeoutSeconds:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
@ -3,10 +3,13 @@ apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.4.1
|
controller-gen.kubebuilder.io/version: v0.5.0
|
||||||
{{- if .Values.crdAnnotations }}
|
{{- if .Values.crdAnnotations }}
|
||||||
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: argo-rollouts
|
||||||
|
app.kubernetes.io/part-of: argo-rollouts
|
||||||
name: clusteranalysistemplates.argoproj.io
|
name: clusteranalysistemplates.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
|
@ -2300,6 +2303,7 @@ spec:
|
||||||
start:
|
start:
|
||||||
type: string
|
type: string
|
||||||
step:
|
step:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- end
|
- end
|
||||||
|
@ -2319,6 +2323,7 @@ spec:
|
||||||
start:
|
start:
|
||||||
type: string
|
type: string
|
||||||
step:
|
step:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- end
|
- end
|
||||||
|
@ -2340,8 +2345,10 @@ spec:
|
||||||
threshold:
|
threshold:
|
||||||
properties:
|
properties:
|
||||||
marginal:
|
marginal:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
pass:
|
pass:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
- marginal
|
- marginal
|
||||||
|
@ -2399,6 +2406,7 @@ spec:
|
||||||
jsonPath:
|
jsonPath:
|
||||||
type: string
|
type: string
|
||||||
timeoutSeconds:
|
timeoutSeconds:
|
||||||
|
format: int64
|
||||||
type: integer
|
type: integer
|
||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
@ -3,10 +3,13 @@ apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.4.1
|
controller-gen.kubebuilder.io/version: v0.5.0
|
||||||
{{- if .Values.crdAnnotations }}
|
{{- if .Values.crdAnnotations }}
|
||||||
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: argo-rollouts
|
||||||
|
app.kubernetes.io/part-of: argo-rollouts
|
||||||
name: experiments.argoproj.io
|
name: experiments.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
|
|
|
@ -3,10 +3,13 @@ apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.4.1
|
controller-gen.kubebuilder.io/version: v0.5.0
|
||||||
{{- if .Values.crdAnnotations }}
|
{{- if .Values.crdAnnotations }}
|
||||||
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
{{- toYaml .Values.crdAnnotations | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: argo-rollouts
|
||||||
|
app.kubernetes.io/part-of: argo-rollouts
|
||||||
name: rollouts.argoproj.io
|
name: rollouts.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
|
@ -29,11 +32,13 @@ spec:
|
||||||
jsonPath: .status.replicas
|
jsonPath: .status.replicas
|
||||||
name: Current
|
name: Current
|
||||||
type: integer
|
type: integer
|
||||||
- description: Total number of non-terminated pods targeted by this rollout that have the desired template spec
|
- description: Total number of non-terminated pods targeted by this rollout that
|
||||||
|
have the desired template spec
|
||||||
jsonPath: .status.updatedReplicas
|
jsonPath: .status.updatedReplicas
|
||||||
name: Up-to-date
|
name: Up-to-date
|
||||||
type: integer
|
type: integer
|
||||||
- description: Total number of available pods (ready for at least minReadySeconds) targeted by this rollout
|
- description: Total number of available pods (ready for at least minReadySeconds)
|
||||||
|
targeted by this rollout
|
||||||
jsonPath: .status.availableReplicas
|
jsonPath: .status.availableReplicas
|
||||||
name: Available
|
name: Available
|
||||||
type: integer
|
type: integer
|
||||||
|
@ -300,6 +305,12 @@ spec:
|
||||||
- type: integer
|
- type: integer
|
||||||
- type: string
|
- type: string
|
||||||
x-kubernetes-int-or-string: true
|
x-kubernetes-int-or-string: true
|
||||||
|
scaleDownDelayRevisionLimit:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
|
scaleDownDelaySeconds:
|
||||||
|
format: int32
|
||||||
|
type: integer
|
||||||
stableMetadata:
|
stableMetadata:
|
||||||
properties:
|
properties:
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -487,6 +498,15 @@ spec:
|
||||||
- ingress
|
- ingress
|
||||||
- servicePort
|
- servicePort
|
||||||
type: object
|
type: object
|
||||||
|
ambassador:
|
||||||
|
properties:
|
||||||
|
mappings:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- mappings
|
||||||
|
type: object
|
||||||
istio:
|
istio:
|
||||||
properties:
|
properties:
|
||||||
destinationRule:
|
destinationRule:
|
||||||
|
@ -2648,9 +2668,15 @@ spec:
|
||||||
- containers
|
- containers
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
required:
|
workloadRef:
|
||||||
- selector
|
properties:
|
||||||
- template
|
apiVersion:
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
properties:
|
properties:
|
||||||
|
@ -2765,6 +2791,8 @@ spec:
|
||||||
currentStepIndex:
|
currentStepIndex:
|
||||||
format: int32
|
format: int32
|
||||||
type: integer
|
type: integer
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
observedGeneration:
|
observedGeneration:
|
||||||
type: string
|
type: string
|
||||||
pauseConditions:
|
pauseConditions:
|
||||||
|
@ -2780,6 +2808,8 @@ spec:
|
||||||
- startTime
|
- startTime
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
|
phase:
|
||||||
|
type: string
|
||||||
promoteFull:
|
promoteFull:
|
||||||
type: boolean
|
type: boolean
|
||||||
readyReplicas:
|
readyReplicas:
|
||||||
|
|
|
@ -3,7 +3,6 @@ installCRDs: true
|
||||||
clusterInstall: true
|
clusterInstall: true
|
||||||
|
|
||||||
controller:
|
controller:
|
||||||
name: argo-rollouts
|
|
||||||
component: rollouts-controller
|
component: rollouts-controller
|
||||||
## Node selectors and tolerations for server scheduling to nodes with taints
|
## Node selectors and tolerations for server scheduling to nodes with taints
|
||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
|
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
|
||||||
|
@ -12,8 +11,9 @@ controller:
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
image:
|
image:
|
||||||
|
registry: quay.io
|
||||||
repository: argoproj/argo-rollouts
|
repository: argoproj/argo-rollouts
|
||||||
tag: v0.10.2
|
tag: ""
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
|
@ -25,13 +25,20 @@ controller:
|
||||||
# memory: 64Mi
|
# memory: 64Mi
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
|
enabled: false
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
additionalAnnotations: {}
|
additionalAnnotations: {}
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
name: argo-rollouts
|
# Specifies whether a service account should be created
|
||||||
|
create: true
|
||||||
|
# Annotations to add to the service account
|
||||||
|
annotations: {}
|
||||||
|
# The name of the service account to use.
|
||||||
|
# If not set and create is true, a name is generated using the fullname template
|
||||||
|
name: ""
|
||||||
|
|
||||||
## Annotations to be added to all CRDs
|
## Annotations to be added to all CRDs
|
||||||
##
|
##
|
||||||
|
@ -41,6 +48,21 @@ crdAnnotations: {}
|
||||||
##
|
##
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
|
## Security Context to set on pod level
|
||||||
|
##
|
||||||
|
podSecurityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
|
||||||
|
## Security Context to set on container level
|
||||||
|
##
|
||||||
|
containerSecurityContext: {}
|
||||||
|
# capabilities:
|
||||||
|
# drop:
|
||||||
|
# - ALL
|
||||||
|
# readOnlyRootFilesystem: true
|
||||||
|
# runAsNonRoot: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
|
||||||
## Annotations to be added to the Rollout service
|
## Annotations to be added to the Rollout service
|
||||||
##
|
##
|
||||||
serviceAnnotations: {}
|
serviceAnnotations: {}
|
||||||
|
|
15
charts/argo-workflows/Chart.yaml
Normal file
15
charts/argo-workflows/Chart.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: v2
|
||||||
|
name: argo-workflows
|
||||||
|
description: A Helm chart for Argo Workflows
|
||||||
|
type: application
|
||||||
|
version: 0.2.2
|
||||||
|
appVersion: "v3.0.2"
|
||||||
|
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
||||||
|
home: https://github.com/argoproj/argo-helm
|
||||||
|
sources:
|
||||||
|
- https://github.com/argoproj/argo-workflows
|
||||||
|
maintainers:
|
||||||
|
- name: alexec
|
||||||
|
- name: alexmt
|
||||||
|
- name: jessesuen
|
||||||
|
- name: benjaminws
|
48
charts/argo-workflows/README.md
Normal file
48
charts/argo-workflows/README.md
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
# Argo Workflows Chart
|
||||||
|
|
||||||
|
This is a **community maintained** chart. It is used to set up argo and it's needed dependencies through one command. This is used in conjunction with [helm](https://github.com/kubernetes/helm).
|
||||||
|
|
||||||
|
If you want your deployment of this helm chart to most closely match the [argo CLI](https://github.com/argoproj/argo-workflows), you should deploy it in the `kube-system` namespace.
|
||||||
|
|
||||||
|
## Pre-Requisites
|
||||||
|
|
||||||
|
This chart uses an install hook to configure the CRD definition. Installation of CRDs is a somewhat privileged process in itself and in RBAC enabled clusters the `default` service account for namespaces does not typically have the ability to do create these.
|
||||||
|
|
||||||
|
A few options are:
|
||||||
|
|
||||||
|
- Manually create a ServiceAccount in the Namespace which your release will be deployed w/ appropriate bindings to perform this action and set the `init.serviceAccount` attribute
|
||||||
|
- Augment the `default` ServiceAccount permissions in the Namespace in which your Release is deployed to have the appropriate permissions
|
||||||
|
|
||||||
|
## Usage Notes
|
||||||
|
|
||||||
|
This chart defaults to setting the `controller.instanceID.enabled` to `false` now, which means the deployed controller will act upon any workflow deployed to the cluster. If you would like to limit the behavior and deploy multiple workflow controllers, please use the `controller.instanceID.enabled` attribute along with one of it's configuration options to set the `instanceID` of the workflow controller to be properly scoped for your needs.
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
The `values.yaml` contains items used to tweak a deployment of this chart.
|
||||||
|
Fields to note:
|
||||||
|
|
||||||
|
- `controller.instanceID.enabled`: If set to true, the Argo Controller will **ONLY** monitor Workflow submissions with a `--instanceid` attribute
|
||||||
|
- `controller.instanceID.useReleaseName`: If set to true then chart set controller instance id to release name
|
||||||
|
- `controller.instanceID.explicitID`: Allows customization of an instance id for the workflow controller to monitor
|
||||||
|
- `controller.workflowNamespaces`: This is a list of namespaces where workflows will be ran
|
||||||
|
|
||||||
|
## Breaking changes from the deprecated `argo` chart
|
||||||
|
|
||||||
|
1. the `installCRD` value has been removed. CRDs are now only installed from the conventional crds/ directory
|
||||||
|
1. the CRDs were updated to `apiextensions.k8s.io/v1`
|
||||||
|
1. the container image registry/project/tag format was changed to be more in line with the more common
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
image:
|
||||||
|
registry: quay.io
|
||||||
|
repository: argoproj/argocli
|
||||||
|
tag: v3.0.1
|
||||||
|
```
|
||||||
|
|
||||||
|
this also makes it easier for automatic update tooling (eg. renovate bot) to detect and update images.
|
||||||
|
|
||||||
|
1. switched to quay.io as the default registry for all images
|
||||||
|
1. removed any included usage of Minio
|
||||||
|
1. aligned the configuration of serviceAccounts with the argo-cd chart, ie: what used to be `server.createServiceAccount` is now `server.serviceAccount.create`
|
||||||
|
1. moved the previously known as `telemetryServicePort` inside the `telemetryConfig` as `telemetryConfig.servicePort` - same for `metricsConfig`
|
5
charts/argo-workflows/ci/enable-ingress-values.yaml
Normal file
5
charts/argo-workflows/ci/enable-ingress-values.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
server:
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
hosts:
|
||||||
|
- argo-workflows.127.0.0.1.xip.io
|
7
charts/argo-workflows/ci/enable-metrics-values.yaml
Normal file
7
charts/argo-workflows/ci/enable-metrics-values.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
controller:
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: false
|
||||||
|
metricsConfig:
|
||||||
|
enabled: true
|
||||||
|
telemetryConfig:
|
||||||
|
enabled: true
|
5
charts/argo-workflows/ci/enable-rbac-values.yaml
Normal file
5
charts/argo-workflows/ci/enable-rbac-values.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
workflow:
|
||||||
|
serviceAccount:
|
||||||
|
create: true # Specifies whether a service account should be created
|
||||||
|
rbac:
|
||||||
|
create: true # adds Role and RoleBinding for the above specified service account to be able to run workflows
|
|
@ -1,14 +1,9 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: clusterworkflowtemplates.argoproj.io
|
name: clusterworkflowtemplates.argoproj.io
|
||||||
annotations:
|
|
||||||
helm.sh/hook: crd-install
|
|
||||||
helm.sh/hook-delete-policy: before-hook-creation
|
|
||||||
spec:
|
spec:
|
||||||
group: argoproj.io
|
group: argoproj.io
|
||||||
version: v1alpha1
|
|
||||||
scope: Cluster
|
|
||||||
names:
|
names:
|
||||||
kind: ClusterWorkflowTemplate
|
kind: ClusterWorkflowTemplate
|
||||||
listKind: ClusterWorkflowTemplateList
|
listKind: ClusterWorkflowTemplateList
|
||||||
|
@ -17,7 +12,24 @@ spec:
|
||||||
- clusterwftmpl
|
- clusterwftmpl
|
||||||
- cwft
|
- cwft
|
||||||
singular: clusterworkflowtemplate
|
singular: clusterworkflowtemplate
|
||||||
|
scope: Cluster
|
||||||
versions:
|
versions:
|
||||||
- name: v1alpha1
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
type: object
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
38
charts/argo-workflows/crds/argoproj.io_cronworkflows.yaml
Normal file
38
charts/argo-workflows/crds/argoproj.io_cronworkflows.yaml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: cronworkflows.argoproj.io
|
||||||
|
spec:
|
||||||
|
group: argoproj.io
|
||||||
|
names:
|
||||||
|
kind: CronWorkflow
|
||||||
|
listKind: CronWorkflowList
|
||||||
|
plural: cronworkflows
|
||||||
|
shortNames:
|
||||||
|
- cwf
|
||||||
|
- cronwf
|
||||||
|
singular: cronworkflow
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
type: object
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
status:
|
||||||
|
type: object
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
|
@ -0,0 +1,34 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: workfloweventbindings.argoproj.io
|
||||||
|
spec:
|
||||||
|
group: argoproj.io
|
||||||
|
names:
|
||||||
|
kind: WorkflowEventBinding
|
||||||
|
listKind: WorkflowEventBindingList
|
||||||
|
plural: workfloweventbindings
|
||||||
|
shortNames:
|
||||||
|
- wfeb
|
||||||
|
singular: workfloweventbinding
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
type: object
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
48
charts/argo-workflows/crds/argoproj.io_workflows.yaml
Normal file
48
charts/argo-workflows/crds/argoproj.io_workflows.yaml
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: workflows.argoproj.io
|
||||||
|
spec:
|
||||||
|
group: argoproj.io
|
||||||
|
names:
|
||||||
|
kind: Workflow
|
||||||
|
listKind: WorkflowList
|
||||||
|
plural: workflows
|
||||||
|
shortNames:
|
||||||
|
- wf
|
||||||
|
singular: workflow
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- additionalPrinterColumns:
|
||||||
|
- description: Status of the workflow
|
||||||
|
jsonPath: .status.phase
|
||||||
|
name: Status
|
||||||
|
type: string
|
||||||
|
- description: When the workflow was started
|
||||||
|
format: date-time
|
||||||
|
jsonPath: .status.startedAt
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
|
name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
type: object
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
status:
|
||||||
|
type: object
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
subresources: {}
|
|
@ -0,0 +1,34 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: workflowtemplates.argoproj.io
|
||||||
|
spec:
|
||||||
|
group: argoproj.io
|
||||||
|
names:
|
||||||
|
kind: WorkflowTemplate
|
||||||
|
listKind: WorkflowTemplateList
|
||||||
|
plural: workflowtemplates
|
||||||
|
shortNames:
|
||||||
|
- wftmpl
|
||||||
|
singular: workflowtemplate
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
type: object
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
7
charts/argo-workflows/templates/NOTES.txt
Normal file
7
charts/argo-workflows/templates/NOTES.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
1. Get Argo Server external IP/domain by running:
|
||||||
|
|
||||||
|
kubectl --namespace {{ .Release.Namespace }} get services -o wide | grep {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
|
||||||
|
2. Submit the hello-world workflow by running:
|
||||||
|
|
||||||
|
argo submit https://raw.githubusercontent.com/argoproj/argo-workflows/master/examples/hello-world.yaml --watch
|
104
charts/argo-workflows/templates/_helpers.tpl
Normal file
104
charts/argo-workflows/templates/_helpers.tpl
Normal file
|
@ -0,0 +1,104 @@
|
||||||
|
{{/* vim: set filetype=mustache: */}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create argo workflows server name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.server.fullname" -}}
|
||||||
|
{{- printf "%s-%s" (include "argo-workflows.fullname" .) .Values.server.name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create controller name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.controller.fullname" -}}
|
||||||
|
{{- printf "%s-%s" (include "argo-workflows.fullname" .) .Values.controller.name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride -}}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||||
|
{{- if contains $name .Release.Name -}}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "argo-workflows.chart" .context }}
|
||||||
|
{{ include "argo-workflows.selectorLabels" (dict "context" .context "component" .component "name" .name) }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .context.Release.Service }}
|
||||||
|
app.kubernetes.io/part-of: argo-workflows
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.selectorLabels" -}}
|
||||||
|
{{- if .name -}}
|
||||||
|
app.kubernetes.io/name: {{ include "argo-workflows.name" .context }}-{{ .name }}
|
||||||
|
{{ end -}}
|
||||||
|
app.kubernetes.io/instance: {{ .context.Release.Name }}
|
||||||
|
{{- if .component }}
|
||||||
|
app.kubernetes.io/component: {{ .component }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the server service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.serverServiceAccountName" -}}
|
||||||
|
{{- if .Values.server.serviceAccount.create -}}
|
||||||
|
{{ default (include "argo-workflows.server.fullname" .) .Values.server.serviceAccount.name }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ default "default" .Values.server.serviceAccount.name }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the controller service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.controllerServiceAccountName" -}}
|
||||||
|
{{- if .Values.controller.serviceAccount.create -}}
|
||||||
|
{{ default (include "argo-workflows.controller.fullname" .) .Values.controller.serviceAccount.name }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ default "default" .Values.controller.serviceAccount.name }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Return the appropriate apiVersion for ingress
|
||||||
|
*/}}
|
||||||
|
{{- define "argo-workflows.ingress.apiVersion" -}}
|
||||||
|
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.Version -}}
|
||||||
|
{{- print "extensions/v1beta1" -}}
|
||||||
|
{{- else if semverCompare "<1.19-0" .Capabilities.KubeVersion.Version -}}
|
||||||
|
{{- print "networking.k8s.io/v1beta1" -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- print "networking.k8s.io/v1" -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
|
@ -2,10 +2,7 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
name: {{ template "argo-workflows.fullname" . }}-view
|
||||||
helm.sh/hook: pre-install
|
|
||||||
helm.sh/hook-delete-policy: before-hook-creation
|
|
||||||
name: argo-aggregate-to-view
|
|
||||||
labels:
|
labels:
|
||||||
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
||||||
rules:
|
rules:
|
||||||
|
@ -14,6 +11,8 @@ rules:
|
||||||
resources:
|
resources:
|
||||||
- workflows
|
- workflows
|
||||||
- workflows/finalizers
|
- workflows/finalizers
|
||||||
|
- workfloweventbindings
|
||||||
|
- workfloweventbindings/finalizers
|
||||||
- workflowtemplates
|
- workflowtemplates
|
||||||
- workflowtemplates/finalizers
|
- workflowtemplates/finalizers
|
||||||
- cronworkflows
|
- cronworkflows
|
||||||
|
@ -28,10 +27,7 @@ rules:
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
name: {{ template "argo-workflows.fullname" . }}-edit
|
||||||
helm.sh/hook: pre-install
|
|
||||||
helm.sh/hook-delete-policy: before-hook-creation
|
|
||||||
name: argo-aggregate-to-edit
|
|
||||||
labels:
|
labels:
|
||||||
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
||||||
rules:
|
rules:
|
||||||
|
@ -40,6 +36,8 @@ rules:
|
||||||
resources:
|
resources:
|
||||||
- workflows
|
- workflows
|
||||||
- workflows/finalizers
|
- workflows/finalizers
|
||||||
|
- workfloweventbindings
|
||||||
|
- workfloweventbindings/finalizers
|
||||||
- workflowtemplates
|
- workflowtemplates
|
||||||
- workflowtemplates/finalizers
|
- workflowtemplates/finalizers
|
||||||
- cronworkflows
|
- cronworkflows
|
||||||
|
@ -59,10 +57,7 @@ rules:
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
name: {{ template "argo-workflows.fullname" . }}-admin
|
||||||
helm.sh/hook: pre-install
|
|
||||||
helm.sh/hook-delete-policy: before-hook-creation
|
|
||||||
name: argo-aggregate-to-admin
|
|
||||||
labels:
|
labels:
|
||||||
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
||||||
rules:
|
rules:
|
||||||
|
@ -71,6 +66,8 @@ rules:
|
||||||
resources:
|
resources:
|
||||||
- workflows
|
- workflows
|
||||||
- workflows/finalizers
|
- workflows/finalizers
|
||||||
|
- workfloweventbindings
|
||||||
|
- workfloweventbindings/finalizers
|
||||||
- workflowtemplates
|
- workflowtemplates
|
||||||
- workflowtemplates/finalizers
|
- workflowtemplates/finalizers
|
||||||
- cronworkflows
|
- cronworkflows
|
|
@ -5,7 +5,9 @@ kind: Role
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
{{- end }}
|
{{- end }}
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.controller.name }}
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
|
@ -53,8 +55,6 @@ rules:
|
||||||
resources:
|
resources:
|
||||||
- workflowtemplates
|
- workflowtemplates
|
||||||
- workflowtemplates/finalizers
|
- workflowtemplates/finalizers
|
||||||
- clusterworkflowtemplates
|
|
||||||
- clusterworkflowtemplates/finalizers
|
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
|
@ -129,11 +129,13 @@ rules:
|
||||||
- update
|
- update
|
||||||
- patch
|
- patch
|
||||||
- delete
|
- delete
|
||||||
|
|
||||||
|
{{- if .Values.controller.clusterWorkflowTemplates.enabled }}
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.controller.name }}-cluster-template
|
name: {{ template "argo-workflows.controller.fullname" . }}-cluster-template
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
|
@ -144,3 +146,4 @@ rules:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
|
{{- end }}
|
|
@ -1,11 +1,9 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.controller.name }}-configmap
|
name: {{ template "argo-workflows.controller.fullname" . }}-configmap
|
||||||
labels:
|
labels:
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" "cm") | nindent 4 }}
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
data:
|
data:
|
||||||
config: |
|
config: |
|
||||||
{{- if .Values.controller.instanceID.enabled }}
|
{{- if .Values.controller.instanceID.enabled }}
|
||||||
|
@ -31,7 +29,7 @@ data:
|
||||||
securityContext: {{- toYaml . | nindent 8 }}
|
securityContext: {{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.minio.install .Values.useDefaultArtifactRepo }}
|
{{- if .Values.useDefaultArtifactRepo }}
|
||||||
artifactRepository:
|
artifactRepository:
|
||||||
{{- if .Values.artifactRepository.archiveLogs }}
|
{{- if .Values.artifactRepository.archiveLogs }}
|
||||||
archiveLogs: {{ .Values.artifactRepository.archiveLogs }}
|
archiveLogs: {{ .Values.artifactRepository.archiveLogs }}
|
||||||
|
@ -44,13 +42,13 @@ data:
|
||||||
{{- if .Values.useStaticCredentials }}
|
{{- if .Values.useStaticCredentials }}
|
||||||
accessKeySecret:
|
accessKeySecret:
|
||||||
key: {{ .Values.artifactRepository.s3.accessKeySecret.key }}
|
key: {{ .Values.artifactRepository.s3.accessKeySecret.key }}
|
||||||
name: {{ .Values.artifactRepository.s3.accessKeySecret.name | default (printf "%s-%s" .Release.Name "minio") }}
|
name: {{ .Values.artifactRepository.s3.accessKeySecret.name }}
|
||||||
secretKeySecret:
|
secretKeySecret:
|
||||||
key: {{ .Values.artifactRepository.s3.secretKeySecret.key }}
|
key: {{ .Values.artifactRepository.s3.secretKeySecret.key }}
|
||||||
name: {{ .Values.artifactRepository.s3.secretKeySecret.name | default (printf "%s-%s" .Release.Name "minio") }}
|
name: {{ .Values.artifactRepository.s3.secretKeySecret.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
bucket: {{ .Values.artifactRepository.s3.bucket | default .Values.minio.defaultBucket.name }}
|
bucket: {{ .Values.artifactRepository.s3.bucket }}
|
||||||
endpoint: {{ .Values.artifactRepository.s3.endpoint | default (printf "%s-%s" .Release.Name "minio:9000") }}
|
endpoint: {{ .Values.artifactRepository.s3.endpoint }}
|
||||||
insecure: {{ .Values.artifactRepository.s3.insecure }}
|
insecure: {{ .Values.artifactRepository.s3.insecure }}
|
||||||
{{- if .Values.artifactRepository.s3.keyFormat }}
|
{{- if .Values.artifactRepository.s3.keyFormat }}
|
||||||
keyFormat: {{ .Values.artifactRepository.s3.keyFormat | quote }}
|
keyFormat: {{ .Values.artifactRepository.s3.keyFormat | quote }}
|
|
@ -5,7 +5,9 @@ kind: RoleBinding
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
{{- end }}
|
{{- end }}
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.controller.name }}
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
{{- if .Values.singleNamespace }}
|
{{- if .Values.singleNamespace }}
|
||||||
|
@ -13,13 +15,13 @@ roleRef:
|
||||||
{{ else }}
|
{{ else }}
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ .Release.Name }}-{{ .Values.controller.name }}
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ .Values.controller.serviceAccount }}
|
name: {{ template "argo-workflows.controllerServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if .Values.controller.workflowNamespaces }}
|
{{- if .Values.controller.workflowNamespaces }}
|
||||||
{{- $uiServiceAccount := .Values.controller.serviceAccount }}
|
{{- $uiServiceAccount := (include "argo-workflows.controllerServiceAccountName" .) }}
|
||||||
{{- $namespace := .Release.Namespace }}
|
{{- $namespace := .Release.Namespace }}
|
||||||
{{- range $key := .Values.controller.workflowNamespaces }}
|
{{- range $key := .Values.controller.workflowNamespaces }}
|
||||||
{{- if not (eq $key $namespace) }}
|
{{- if not (eq $key $namespace) }}
|
||||||
|
@ -29,16 +31,21 @@ subjects:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.controller.clusterWorkflowTemplates.enabled }}
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.controller.name }}-cluster-template
|
name: {{ template "argo-workflows.controller.fullname" . }}-cluster-template
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: {{ .Release.Name }}-{{ .Values.controller.name }}-cluster-template
|
name: {{ template "argo-workflows.controller.fullname" . }}-cluster-template
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ .Values.controller.serviceAccount }}
|
name: {{ template "argo-workflows.controllerServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
|
{{- end }}
|
|
@ -2,12 +2,9 @@
|
||||||
apiVersion: policy/v1beta1
|
apiVersion: policy/v1beta1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.controller.name}}
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-{{ .Values.controller.name}}
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
release: {{ .Release.Name }}
|
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.controller.pdb.minAvailable }}
|
{{- if .Values.controller.pdb.minAvailable }}
|
||||||
minAvailable: {{ .Values.controller.pdb.minAvailable }}
|
minAvailable: {{ .Values.controller.pdb.minAvailable }}
|
||||||
|
@ -18,6 +15,5 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ .Release.Name }}-{{ .Values.controller.name}}
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 6 }}
|
||||||
release: {{ .Release.Name }}
|
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -0,0 +1,104 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||||
|
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.controller.image.tag | quote }}
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.controller.replicas }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 6 }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 8 }}
|
||||||
|
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.controller.image.tag | quote }}
|
||||||
|
{{- with.Values.controller.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.podAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
serviceAccountName: {{ template "argo-workflows.controllerServiceAccountName" . }}
|
||||||
|
{{- with .Values.controller.podSecurityContext }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
containers:
|
||||||
|
- name: controller
|
||||||
|
image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag | default .Chart.AppVersion }}"
|
||||||
|
imagePullPolicy: {{ .Values.images.pullPolicy }}
|
||||||
|
command: [ "workflow-controller" ]
|
||||||
|
args:
|
||||||
|
- "--configmap"
|
||||||
|
- "{{ template "argo-workflows.controller.fullname" . }}-configmap"
|
||||||
|
- "--executor-image"
|
||||||
|
- "{{ .Values.executor.image.registry }}/{{ .Values.executor.image.repository }}:{{ .Values.executor.image.tag | default .Chart.AppVersion }}"
|
||||||
|
- "--loglevel"
|
||||||
|
- "{{ .Values.controller.logging.level }}"
|
||||||
|
- "--gloglevel"
|
||||||
|
- "{{ .Values.controller.logging.globallevel }}"
|
||||||
|
{{- if .Values.singleNamespace }}
|
||||||
|
- "--namespaced"
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.workflowWorkers }}
|
||||||
|
- "--workflow-workers"
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.podWorkers }}
|
||||||
|
- "--pod-workers"
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.extraArgs }}
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.controller.securityContext | nindent 12 }}
|
||||||
|
env:
|
||||||
|
- name: ARGO_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
apiVersion: v1
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: LEADER_ELECTION_IDENTITY
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
apiVersion: v1
|
||||||
|
fieldPath: metadata.name
|
||||||
|
{{- with .Values.controller.extraEnv }}
|
||||||
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml .Values.controller.resources | nindent 12 }}
|
||||||
|
ports:
|
||||||
|
- name: metrics
|
||||||
|
containerPort: {{ .Values.controller.metricsConfig.port }}
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
port: metrics
|
||||||
|
path: {{ .Values.controller.metricsConfig.path }}
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 30
|
||||||
|
{{- with .Values.images.pullSecrets }}
|
||||||
|
imagePullSecrets:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.nodeSelector }}
|
||||||
|
nodeSelector:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.priorityClassName }}
|
||||||
|
priorityClassName: {{ . }}
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,8 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.controllerServiceAccountName" . }}
|
||||||
|
{{ with .Values.controller.serviceAccount.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .| nindent 4 }}
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,38 @@
|
||||||
|
{{- if or .Values.controller.metricsConfig.enabled .Values.controller.telemetryConfig.enabled }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||||
|
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.controller.image.tag | quote }}
|
||||||
|
{{- with .Values.controller.serviceLabels }}
|
||||||
|
{{ toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.serviceAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4}}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
{{- if .Values.controller.metricsConfig.enabled }}
|
||||||
|
- name: {{ .Values.controller.metricsConfig.servicePortName }}
|
||||||
|
port: {{ .Values.controller.metricsConfig.servicePort }}
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: {{ .Values.controller.metricsConfig.port }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.controller.telemetryConfig.enabled }}
|
||||||
|
- name: {{ .Values.controller.telemetryConfig.servicePortName }}
|
||||||
|
port: {{ .Values.controller.telemetryConfig.servicePort }}
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: {{ .Values.controller.telemetryConfig.port }}
|
||||||
|
{{- end }}
|
||||||
|
selector:
|
||||||
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 4 }}
|
||||||
|
sessionAffinity: None
|
||||||
|
type: {{ .Values.controller.serviceType }}
|
||||||
|
{{- if and (eq .Values.controller.serviceType "LoadBalancer") .Values.controller.loadBalancerSourceRanges }}
|
||||||
|
loadBalancerSourceRanges:
|
||||||
|
{{- toYaml .Values.controller.loadBalancerSourceRanges | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
|
@ -2,14 +2,11 @@
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.controller.name }}
|
name: {{ template "argo-workflows.controller.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-{{ .Values.controller.name}}
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
{{- with .Values.controller.serviceMonitor.additionalLabels }}
|
||||||
release: {{ .Release.Name }}
|
{{- toYaml . | nindent 4 }}
|
||||||
heritage: {{ .Release.Service }}
|
|
||||||
{{- if .Values.controller.serviceMonitor.additionalLabels }}
|
|
||||||
{{ toYaml .Values.controller.serviceMonitor.additionalLabels | indent 4 }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
|
@ -28,6 +25,5 @@ spec:
|
||||||
- {{ .Release.Namespace }}
|
- {{ .Release.Namespace }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ .Release.Name }}-{{ .Values.controller.name}}
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 6 }}
|
||||||
release: {{ .Release.Name }}
|
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -2,18 +2,18 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-workflow
|
name: {{ template "argo-workflows.fullname" . }}-workflow
|
||||||
{{- if .Values.workflow.namespace }}
|
{{- with .Values.workflow.namespace }}
|
||||||
namespace: {{ .Values.workflow.namespace }}
|
namespace: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: Role
|
||||||
name: {{ .Release.Name }}-workflow
|
name: {{ template "argo-workflows.fullname" . }}-workflow
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ .Values.workflow.serviceAccount.name }}
|
name: {{ .Values.workflow.serviceAccount.name }}
|
||||||
{{- if .Values.workflow.namespace }}
|
{{- with .Values.workflow.namespace }}
|
||||||
namespace: {{ .Values.workflow.namespace }}
|
namespace: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -2,9 +2,9 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-workflow
|
name: {{ template "argo-workflows.fullname" . }}-workflow
|
||||||
{{- if .Values.workflow.namespace }}
|
{{- with .Values.workflow.namespace }}
|
||||||
namespace: {{ .Values.workflow.namespace }}
|
namespace: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
|
@ -3,8 +3,8 @@ apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.workflow.serviceAccount.name }}
|
name: {{ .Values.workflow.serviceAccount.name }}
|
||||||
{{- if .Values.workflow.namespace }}
|
{{- with .Values.workflow.namespace }}
|
||||||
namespace: {{ .Values.workflow.namespace }}
|
namespace: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.workflow.serviceAccount.annotations }}
|
{{- with .Values.workflow.serviceAccount.annotations }}
|
||||||
annotations:
|
annotations:
|
|
@ -1,12 +1,14 @@
|
||||||
{{- if .Values.server.enabled }}
|
{{- if .Values.server.enabled }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
{{- if .Values.singleNamespace }}
|
{{- if .Values.singleNamespace }}
|
||||||
kind: Role
|
kind: Role
|
||||||
{{- else }}
|
{{- else }}
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
{{- end }}
|
{{- end }}
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.server.name }}
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
|
@ -28,7 +30,7 @@ rules:
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- delete
|
- delete
|
||||||
{{- if .Values.server.sso }}
|
{{- if .Values.server.sso }}
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
|
@ -44,9 +46,7 @@ rules:
|
||||||
- secrets
|
- secrets
|
||||||
verbs:
|
verbs:
|
||||||
- create
|
- create
|
||||||
{{- end}}
|
{{- if .Values.server.sso.rbac }}
|
||||||
{{- if .Values.server.sso }}
|
|
||||||
{{- if .Values.server.sso.rbac }}
|
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
|
@ -54,8 +54,8 @@ rules:
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
|
@ -95,27 +95,31 @@ rules:
|
||||||
- get
|
- get
|
||||||
{{- end}}
|
{{- end}}
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
resources:
|
resources:
|
||||||
- workflows
|
- eventsources
|
||||||
- workfloweventbindings
|
- sensors
|
||||||
- workflowtemplates
|
- workflows
|
||||||
- cronworkflows
|
- workfloweventbindings
|
||||||
- cronworkflows/finalizers
|
- workflowtemplates
|
||||||
- clusterworkflowtemplates
|
- cronworkflows
|
||||||
verbs:
|
verbs:
|
||||||
- create
|
- create
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- update
|
- update
|
||||||
- patch
|
- patch
|
||||||
- delete
|
- delete
|
||||||
|
|
||||||
|
{{- if .Values.server.clusterWorkflowTemplates.enabled }}
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-{{ .Values.server.name }}-cluster-template
|
name: {{ template "argo-workflows.server.fullname" . }}-cluster-template
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
|
@ -132,3 +136,4 @@ rules:
|
||||||
- delete
|
- delete
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
42
charts/argo-workflows/templates/server/server-crb.yaml
Normal file
42
charts/argo-workflows/templates/server/server-crb.yaml
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{{- if and .Values.server.enabled .Values.server.serviceAccount.create -}}
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
{{- if .Values.singleNamespace }}
|
||||||
|
kind: RoleBinding
|
||||||
|
{{ else }}
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
{{- end }}
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
{{- if .Values.singleNamespace }}
|
||||||
|
kind: Role
|
||||||
|
{{ else }}
|
||||||
|
kind: ClusterRole
|
||||||
|
{{- end }}
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: {{ template "argo-workflows.serverServiceAccountName" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
|
||||||
|
{{- if .Values.server.clusterWorkflowTemplates.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}-cluster-template
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}-cluster-template
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: {{ template "argo-workflows.serverServiceAccountName" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,19 @@
|
||||||
|
{{- if and .Values.server.enabled .Values.server.pdb.enabled -}}
|
||||||
|
apiVersion: policy/v1beta1
|
||||||
|
kind: PodDisruptionBudget
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
{{- if .Values.server.pdb.minAvailable }}
|
||||||
|
minAvailable: {{ .Values.server.pdb.minAvailable }}
|
||||||
|
{{- else if .Values.server.pdb.maxUnavailable }}
|
||||||
|
maxUnavailable: {{ .Values.server.pdb.maxUnavailable }}
|
||||||
|
{{- else }}
|
||||||
|
minAvailable: 0
|
||||||
|
{{- end }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.server.name) | nindent 6 }}
|
||||||
|
{{- end -}}
|
108
charts/argo-workflows/templates/server/server-deployment.yaml
Normal file
108
charts/argo-workflows/templates/server/server-deployment.yaml
Normal file
|
@ -0,0 +1,108 @@
|
||||||
|
{{- if .Values.server.enabled -}}
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.server.image.tag | quote }}
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.server.replicas }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.server.name) | nindent 6 }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 8 }}
|
||||||
|
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.server.image.tag | quote }}
|
||||||
|
{{- with .Values.server.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.server.podAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
serviceAccountName: {{ template "argo-workflows.serverServiceAccountName" . }}
|
||||||
|
{{- with .Values.server.podSecurityContext }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
containers:
|
||||||
|
- name: argo-server
|
||||||
|
image: "{{ .Values.server.image.registry }}/{{ .Values.server.image.repository }}:{{ .Values.server.image.tag | default .Chart.AppVersion }}"
|
||||||
|
imagePullPolicy: {{ .Values.images.pullPolicy }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.server.securityContext | nindent 12 }}
|
||||||
|
args:
|
||||||
|
- server
|
||||||
|
- --configmap={{ template "argo-workflows.controller.fullname" . }}-configmap
|
||||||
|
{{- with .Values.server.extraArgs }}
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
|
- "--secure={{ .Values.server.secure }}"
|
||||||
|
{{- if .Values.singleNamespace }}
|
||||||
|
- "--namespaced"
|
||||||
|
{{- end }}
|
||||||
|
ports:
|
||||||
|
- name: web
|
||||||
|
containerPort: 2746
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 2746
|
||||||
|
{{- if .Values.server.secure }}
|
||||||
|
scheme: HTTPS
|
||||||
|
{{- else }}
|
||||||
|
scheme: HTTP
|
||||||
|
{{- end }}
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 20
|
||||||
|
env:
|
||||||
|
- name: IN_CLUSTER
|
||||||
|
value: "true"
|
||||||
|
- name: ARGO_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
apiVersion: v1
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: BASE_HREF
|
||||||
|
value: {{ .Values.server.baseHref | quote }}
|
||||||
|
{{- with .Values.server.extraEnv }}
|
||||||
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml .Values.server.resources | nindent 12 }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: tmp
|
||||||
|
mountPath: /tmp
|
||||||
|
{{- with .Values.server.volumeMounts }}
|
||||||
|
{{- toYaml . | nindent 10}}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.images.pullSecrets }}
|
||||||
|
imagePullSecrets:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
volumes:
|
||||||
|
- name: tmp
|
||||||
|
emptyDir: {}
|
||||||
|
{{- with .Values.server.volumes }}
|
||||||
|
{{- toYaml . | nindent 6}}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.server.nodeSelector }}
|
||||||
|
nodeSelector:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.server.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.server.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.server.priorityClassName }}
|
||||||
|
priorityClassName: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
88
charts/argo-workflows/templates/server/server-ingress.yaml
Normal file
88
charts/argo-workflows/templates/server/server-ingress.yaml
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
{{- if .Values.server.ingress.enabled -}}
|
||||||
|
{{- $serviceName := include "argo-workflows.server.fullname" . -}}
|
||||||
|
{{- $servicePort := .Values.server.servicePort -}}
|
||||||
|
{{- $paths := .Values.server.ingress.paths -}}
|
||||||
|
{{- $extraPaths := .Values.server.ingress.extraPaths -}}
|
||||||
|
apiVersion: {{ include "argo-workflows.ingress.apiVersion" . }}
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
{{- if .Values.server.ingress.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- range $key, $value := .Values.server.ingress.annotations }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
{{- if .Values.server.ingress.labels }}
|
||||||
|
{{- toYaml .Values.server.ingress.labels | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
|
||||||
|
{{- with .Values.server.ingress.ingressClassName }}
|
||||||
|
ingressClassName: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
rules:
|
||||||
|
{{- if .Values.server.ingress.hosts }}
|
||||||
|
{{- range $host := .Values.server.ingress.hosts }}
|
||||||
|
- host: {{ $host }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
{{- if $extraPaths }}
|
||||||
|
{{- toYaml $extraPaths | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $p := $paths }}
|
||||||
|
- path: {{ $p }}
|
||||||
|
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
|
||||||
|
pathType: Prefix
|
||||||
|
{{- end }}
|
||||||
|
backend:
|
||||||
|
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
|
||||||
|
service:
|
||||||
|
name: {{ $serviceName }}
|
||||||
|
port:
|
||||||
|
{{- if kindIs "float64" $servicePort }}
|
||||||
|
number: {{ $servicePort }}
|
||||||
|
{{- else }}
|
||||||
|
name: {{ $servicePort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
serviceName: {{ $serviceName }}
|
||||||
|
servicePort: {{ $servicePort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else }}
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
{{- if $extraPaths }}
|
||||||
|
{{- toYaml $extraPaths | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $p := $paths }}
|
||||||
|
- path: {{ $p }}
|
||||||
|
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
|
||||||
|
pathType: Prefix
|
||||||
|
{{- end }}
|
||||||
|
backend:
|
||||||
|
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
|
||||||
|
service:
|
||||||
|
name: {{ $serviceName }}
|
||||||
|
port:
|
||||||
|
{{- if kindIs "float64" $servicePort }}
|
||||||
|
number: {{ $servicePort }}
|
||||||
|
{{- else }}
|
||||||
|
name: {{ $servicePort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
serviceName: {{ $serviceName }}
|
||||||
|
servicePort: {{ $servicePort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if .Values.server.ingress.tls }}
|
||||||
|
tls:
|
||||||
|
{{- toYaml .Values.server.ingress.tls | nindent 4 }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
10
charts/argo-workflows/templates/server/server-sa.yaml
Normal file
10
charts/argo-workflows/templates/server/server-sa.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{{- if and .Values.server.enabled .Values.server.serviceAccount.create -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.serverServiceAccountName" . }}
|
||||||
|
{{- with .Values.server.serviceAccount.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
31
charts/argo-workflows/templates/server/server-service.yaml
Normal file
31
charts/argo-workflows/templates/server/server-service.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{{- if .Values.server.enabled -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.server.image.tag | quote }}
|
||||||
|
{{- with .Values.server.serviceAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.server.servicePort }}
|
||||||
|
{{- with .Values.server.servicePortName }}
|
||||||
|
name: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
targetPort: 2746
|
||||||
|
selector:
|
||||||
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.server.name) | nindent 4 }}
|
||||||
|
sessionAffinity: None
|
||||||
|
type: {{ .Values.server.serviceType }}
|
||||||
|
{{- if and (eq .Values.server.serviceType "LoadBalancer") .Values.server.loadBalancerIP }}
|
||||||
|
loadBalancerIP: {{ .Values.server.loadBalancerIP | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if and (eq .Values.server.serviceType "LoadBalancer") .Values.server.loadBalancerSourceRanges }}
|
||||||
|
loadBalancerSourceRanges:
|
||||||
|
{{- toYaml .Values.server.loadBalancerSourceRanges | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
|
@ -1,16 +1,9 @@
|
||||||
images:
|
images:
|
||||||
namespace: argoproj
|
# imagePullPolicy to apply to all containers
|
||||||
controller: workflow-controller
|
|
||||||
server: argocli
|
|
||||||
executor: argoexec
|
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
# Secrets with credentials to pull images from a private registry
|
# Secrets with credentials to pull images from a private registry
|
||||||
pullSecrets: []
|
pullSecrets: []
|
||||||
# - name: argo-pull-secret
|
# - name: argo-pull-secret
|
||||||
tag: v2.12.5
|
|
||||||
|
|
||||||
crdVersion: v1alpha1
|
|
||||||
installCRD: true
|
|
||||||
|
|
||||||
init:
|
init:
|
||||||
# By default the installation will not set an explicit one, which will mean it uses `default` for the namespace the chart is
|
# By default the installation will not set an explicit one, which will mean it uses `default` for the namespace the chart is
|
||||||
|
@ -24,17 +17,19 @@ createAggregateRoles: true
|
||||||
singleNamespace: false
|
singleNamespace: false
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
namespace: "" # Specify namespace if workflows run in another namespace than argo. This controls where the service account and RBAC resources will be created.
|
namespace: "" # Specify namespace if workflows run in another namespace than argo. This controls where the service account and RBAC resources will be created.
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
create: false # Specifies whether a service account should be created
|
create: false # Specifies whether a service account should be created
|
||||||
annotations: {}
|
annotations: {}
|
||||||
name: "argo-workflow" # Service account which is used to run workflows
|
name: "argo-workflow" # Service account which is used to run workflows
|
||||||
rbac:
|
rbac:
|
||||||
create: false # adds Role and RoleBinding for the above specified service account to be able to run workflows
|
create: false # adds Role and RoleBinding for the above specified service account to be able to run workflows
|
||||||
|
|
||||||
controller:
|
controller:
|
||||||
image:
|
image:
|
||||||
# Overrides .images.tag if defined.
|
registry: quay.io
|
||||||
|
repository: argoproj/workflow-controller
|
||||||
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: ""
|
tag: ""
|
||||||
# parallelism dictates how many workflows can be running at the same time
|
# parallelism dictates how many workflows can be running at the same time
|
||||||
parallelism:
|
parallelism:
|
||||||
|
@ -48,7 +43,17 @@ controller:
|
||||||
metricsConfig:
|
metricsConfig:
|
||||||
enabled: false
|
enabled: false
|
||||||
path: /metrics
|
path: /metrics
|
||||||
port: 8080
|
port: 9090
|
||||||
|
servicePort: 8080
|
||||||
|
servicePortName: metrics
|
||||||
|
# the controller container's securityContext
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: true
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
persistence: {}
|
persistence: {}
|
||||||
# connectionPool:
|
# connectionPool:
|
||||||
# maxIdleConns: 100
|
# maxIdleConns: 100
|
||||||
|
@ -69,24 +74,28 @@ controller:
|
||||||
# passwordSecret:
|
# passwordSecret:
|
||||||
# name: argo-postgres-config
|
# name: argo-postgres-config
|
||||||
# key: password
|
# key: password
|
||||||
workflowDefaults: {} # Only valid for 2.7+
|
workflowDefaults: {} # Only valid for 2.7+
|
||||||
# spec:
|
# spec:
|
||||||
# ttlStrategy:
|
# ttlStrategy:
|
||||||
# secondsAfterCompletion: 84600
|
# secondsAfterCompletion: 84600
|
||||||
# workflowWorkers: 32
|
# workflowWorkers: 32
|
||||||
# podWorkers: 32
|
# podWorkers: 32
|
||||||
workflowRestrictions: {} # Only valid for 2.9+
|
workflowRestrictions: {} # Only valid for 2.9+
|
||||||
# templateReferencing: Strict|Secure
|
# templateReferencing: Strict|Secure
|
||||||
telemetryConfig:
|
telemetryConfig:
|
||||||
enabled: false
|
enabled: false
|
||||||
path: /telemetry
|
path: /telemetry
|
||||||
port: 8081
|
port: 8081
|
||||||
|
servicePort: 8081
|
||||||
|
servicePortName: telemetry
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
serviceAccount: argo
|
serviceAccount:
|
||||||
# Service account annotations
|
create: true
|
||||||
serviceAccountAnnotations: {}
|
name: ""
|
||||||
|
# Annotations applied to created service account
|
||||||
|
annotations: {}
|
||||||
name: workflow-controller
|
name: workflow-controller
|
||||||
workflowNamespaces:
|
workflowNamespaces:
|
||||||
- default
|
- default
|
||||||
|
@ -103,10 +112,6 @@ controller:
|
||||||
level: info
|
level: info
|
||||||
globallevel: "0"
|
globallevel: "0"
|
||||||
serviceType: ClusterIP
|
serviceType: ClusterIP
|
||||||
metricsServicePort: 8080
|
|
||||||
metricsServicePortName: metrics
|
|
||||||
telemetryServicePort: 8081
|
|
||||||
telemetryServicePortName: telemetry
|
|
||||||
# Annotations to be applied to the controller Service
|
# Annotations to be applied to the controller Service
|
||||||
serviceAnnotations: {}
|
serviceAnnotations: {}
|
||||||
# Optional labels to add to the controller Service
|
# Optional labels to add to the controller Service
|
||||||
|
@ -115,9 +120,13 @@ controller:
|
||||||
# service type `LoadBalancer`
|
# service type `LoadBalancer`
|
||||||
loadBalancerSourceRanges: []
|
loadBalancerSourceRanges: []
|
||||||
resources: {}
|
resources: {}
|
||||||
# The list of environment variable definitions to be added to the controller
|
|
||||||
# manages container verbatim.
|
## Extra environment variables to provide to the controller container
|
||||||
|
## extraEnv:
|
||||||
|
## - name: FOO
|
||||||
|
## value: "bar"
|
||||||
extraEnv: []
|
extraEnv: []
|
||||||
|
|
||||||
# Extra arguments to be added to the controller
|
# Extra arguments to be added to the controller
|
||||||
extraArgs: []
|
extraArgs: []
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
@ -138,11 +147,16 @@ controller:
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
# https://argoproj.github.io/argo-workflows/links/
|
# https://argoproj.github.io/argo-workflows/links/
|
||||||
links: []
|
links: []
|
||||||
|
clusterWorkflowTemplates:
|
||||||
|
# Create a ClusterRole and CRB for the controller to access ClusterWorkflowTemplates.
|
||||||
|
enabled: true
|
||||||
|
|
||||||
# executor controls how the init and wait container should be customized
|
# executor controls how the init and wait container should be customized
|
||||||
executor:
|
executor:
|
||||||
image:
|
image:
|
||||||
# Overrides .images.tag if defined.
|
registry: quay.io
|
||||||
|
repository: argoproj/argoexec
|
||||||
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: ""
|
tag: ""
|
||||||
resources: {}
|
resources: {}
|
||||||
# Adds environment variables for the executor.
|
# Adds environment variables for the executor.
|
||||||
|
@ -154,10 +168,12 @@ server:
|
||||||
enabled: true
|
enabled: true
|
||||||
# only updates base url of resources on client side,
|
# only updates base url of resources on client side,
|
||||||
# it's expected that a proxy server rewrites the request URL and gets rid of this prefix
|
# it's expected that a proxy server rewrites the request URL and gets rid of this prefix
|
||||||
# https://github.com/argoproj/argo/issues/716#issuecomment-433213190
|
# https://github.com/argoproj/argo-workflows/issues/716#issuecomment-433213190
|
||||||
baseHref: /
|
baseHref: /
|
||||||
image:
|
image:
|
||||||
# Overrides .images.tag if defined.
|
registry: quay.io
|
||||||
|
repository: argoproj/argocli
|
||||||
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: ""
|
tag: ""
|
||||||
# optional map of annotations to be applied to the ui Pods
|
# optional map of annotations to be applied to the ui Pods
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
@ -165,16 +181,21 @@ server:
|
||||||
podLabels: {}
|
podLabels: {}
|
||||||
# SecurityContext to set on the server pods
|
# SecurityContext to set on the server pods
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
runAsNonRoot: true
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
name: server
|
name: server
|
||||||
serviceType: ClusterIP
|
serviceType: ClusterIP
|
||||||
servicePort: 2746
|
servicePort: 2746
|
||||||
# servicePortName: http
|
# servicePortName: http
|
||||||
serviceAccount: argo-server
|
serviceAccount:
|
||||||
# Whether to create the service account with the name specified in
|
create: true
|
||||||
# server.serviceAccount and bind it to the server role.
|
name: ""
|
||||||
createServiceAccount: true
|
annotations: {}
|
||||||
# Service account annotations
|
|
||||||
serviceAccountAnnotations: {}
|
|
||||||
# Annotations to be applied to the UI Service
|
# Annotations to be applied to the UI Service
|
||||||
serviceAnnotations: {}
|
serviceAnnotations: {}
|
||||||
# Optional labels to add to the UI Service
|
# Optional labels to add to the UI Service
|
||||||
|
@ -206,9 +227,15 @@ server:
|
||||||
# Run the argo server in "secure" mode. Configure this value instead of
|
# Run the argo server in "secure" mode. Configure this value instead of
|
||||||
# "--secure" in extraArgs. See the following documentation for more details
|
# "--secure" in extraArgs. See the following documentation for more details
|
||||||
# on secure mode:
|
# on secure mode:
|
||||||
# https://argoproj.github.io/argo-workflows/tls/#encrypted
|
# https://argoproj.github.io/argo-workflows/tls/
|
||||||
secure: false
|
secure: false
|
||||||
|
|
||||||
|
## Extra environment variables to provide to the argo-server container
|
||||||
|
## extraEnv:
|
||||||
|
## - name: FOO
|
||||||
|
## value: "bar"
|
||||||
|
extraEnv: []
|
||||||
|
|
||||||
# Extra arguments to provide to the Argo server binary.
|
# Extra arguments to provide to the Argo server binary.
|
||||||
extraArgs: []
|
extraArgs: []
|
||||||
|
|
||||||
|
@ -221,37 +248,43 @@ server:
|
||||||
##
|
##
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
annotations: {}
|
||||||
|
labels: {}
|
||||||
|
ingressClassName: ""
|
||||||
|
|
||||||
## Annotations to be added to the web ingress.
|
## Argo Workflows Server Ingress.
|
||||||
|
## Hostnames must be provided if Ingress is enabled.
|
||||||
|
## Secrets must be manually created in the namespace
|
||||||
##
|
##
|
||||||
# annotations:
|
hosts:
|
||||||
# kubernetes.io/ingress.class: nginx
|
[]
|
||||||
# kubernetes.io/tls-acme: "true"
|
# - argocd.example.com
|
||||||
|
paths:
|
||||||
|
- /
|
||||||
|
extraPaths:
|
||||||
|
[]
|
||||||
|
# - path: /*
|
||||||
|
# backend:
|
||||||
|
# serviceName: ssl-redirect
|
||||||
|
# servicePort: use-annotation
|
||||||
|
## for Kubernetes >=1.19 (when "networking.k8s.io/v1" is used)
|
||||||
|
# - path: /*
|
||||||
|
# pathType: Prefix
|
||||||
|
# backend:
|
||||||
|
# service
|
||||||
|
# name: ssl-redirect
|
||||||
|
# port:
|
||||||
|
# name: use-annotation
|
||||||
|
tls:
|
||||||
|
[]
|
||||||
|
# - secretName: argocd-example-tls
|
||||||
|
# hosts:
|
||||||
|
# - argocd.example.com
|
||||||
|
https: false
|
||||||
|
|
||||||
## Labels to be added to the web ingress.
|
|
||||||
##
|
|
||||||
# labels:
|
|
||||||
# use-cloudflare-solver: "true"
|
|
||||||
|
|
||||||
## Hostnames.
|
|
||||||
## Must be provided if Ingress is enabled.
|
|
||||||
##
|
|
||||||
# hosts:
|
|
||||||
# - argo.domain.com
|
|
||||||
|
|
||||||
## Additional Paths for each host
|
|
||||||
# paths:
|
|
||||||
# - serviceName: "ssl-redirect"
|
|
||||||
# servicePort: "use-annotation"
|
|
||||||
|
|
||||||
## TLS configuration.
|
|
||||||
## Secrets must be manually created in the namespace.
|
|
||||||
##
|
|
||||||
# tls:
|
|
||||||
# - secretName: argo-ui-tls
|
|
||||||
# hosts:
|
|
||||||
# - argo.domain.com
|
|
||||||
clusterWorkflowTemplates:
|
clusterWorkflowTemplates:
|
||||||
|
# Create a ClusterRole and CRB for the server to access ClusterWorkflowTemplates.
|
||||||
|
enabled: true
|
||||||
# Give the server permissions to edit ClusterWorkflowTemplates.
|
# Give the server permissions to edit ClusterWorkflowTemplates.
|
||||||
enableEditing: true
|
enableEditing: true
|
||||||
sso:
|
sso:
|
||||||
|
@ -294,7 +327,7 @@ artifactRepository:
|
||||||
# Note the `key` attribute is not the actual secret, it's the PATH to
|
# Note the `key` attribute is not the actual secret, it's the PATH to
|
||||||
# the contents in the associated secret, as defined by the `name` attribute.
|
# the contents in the associated secret, as defined by the `name` attribute.
|
||||||
accessKeySecret:
|
accessKeySecret:
|
||||||
# name: <releaseName>-minio (default)
|
# name: <releaseName>-minio
|
||||||
key: accesskey
|
key: accesskey
|
||||||
secretKeySecret:
|
secretKeySecret:
|
||||||
# name: <releaseName>-minio
|
# name: <releaseName>-minio
|
||||||
|
@ -306,25 +339,16 @@ artifactRepository:
|
||||||
# roleARN:
|
# roleARN:
|
||||||
# useSDKCreds: true
|
# useSDKCreds: true
|
||||||
# gcs:
|
# gcs:
|
||||||
# bucket: <project>-argo
|
# bucket: <project>-argo
|
||||||
# keyFormat: "{{workflow.namespace}}/{{workflow.name}}/"
|
# keyFormat: "{{workflow.namespace}}/{{workflow.name}}/"
|
||||||
# serviceAccountKeySecret is a secret selector.
|
# serviceAccountKeySecret is a secret selector.
|
||||||
# It references the k8s secret named 'my-gcs-credentials'.
|
# It references the k8s secret named 'my-gcs-credentials'.
|
||||||
# This secret is expected to have have the key 'serviceAccountKey',
|
# This secret is expected to have have the key 'serviceAccountKey',
|
||||||
# containing the base64 encoded credentials
|
# containing the base64 encoded credentials
|
||||||
# to the bucket.
|
# to the bucket.
|
||||||
#
|
#
|
||||||
# If it's running on GKE and Workload Identity is used,
|
# If it's running on GKE and Workload Identity is used,
|
||||||
# serviceAccountKeySecret is not needed.
|
# serviceAccountKeySecret is not needed.
|
||||||
# serviceAccountKeySecret:
|
# serviceAccountKeySecret:
|
||||||
# name: my-gcs-credentials
|
# name: my-gcs-credentials
|
||||||
# key: serviceAccountKey
|
# key: serviceAccountKey
|
||||||
|
|
||||||
|
|
||||||
# NOTE: These are setting attributes for the `minio` optional dependency
|
|
||||||
minio:
|
|
||||||
# If set to true then chart installs minio and generate according artifactRepository section in workflow controller config map
|
|
||||||
install: false
|
|
||||||
defaultBucket:
|
|
||||||
enabled: true
|
|
||||||
name: argo-artifacts
|
|
|
@ -1,6 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- name: minio
|
|
||||||
repository: https://helm.min.io/
|
|
||||||
version: 8.0.9
|
|
||||||
digest: sha256:0f43ad0a4b4e9af47615ef3da85054712eb28f154418d96b7b974a095cc19260
|
|
||||||
generated: "2021-01-13T15:31:40.823086-08:00"
|
|
|
@ -1,17 +0,0 @@
|
||||||
apiVersion: v2
|
|
||||||
appVersion: v2.12.5
|
|
||||||
description: A Helm chart for Argo Workflows
|
|
||||||
name: argo
|
|
||||||
version: 0.16.10
|
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
|
||||||
home: https://github.com/argoproj/argo-helm
|
|
||||||
maintainers:
|
|
||||||
- name: alexec
|
|
||||||
- name: alexmt
|
|
||||||
- name: jessesuen
|
|
||||||
- name: benjaminws
|
|
||||||
dependencies:
|
|
||||||
- name: minio
|
|
||||||
version: 8.0.9
|
|
||||||
repository: https://helm.min.io/
|
|
||||||
condition: minio.install
|
|
|
@ -1,27 +0,0 @@
|
||||||
## Argo Workflows Chart
|
|
||||||
|
|
||||||
This is a **community maintained** chart. It is used to set up argo and it's needed dependencies through one command. This is used in conjunction with [helm](https://github.com/kubernetes/helm).
|
|
||||||
|
|
||||||
If you want your deployment of this helm chart to most closely match the [argo CLI](https://github.com/argoproj/argo-workflows), you should deploy it in the `kube-system` namespace.
|
|
||||||
|
|
||||||
## Pre-Requisites
|
|
||||||
This chart uses an install hook to configure the CRD definition. Installation of CRDs is a somewhat privileged process in itself and in RBAC enabled clusters the `default` service account for namespaces does not typically have the ability to do create these.
|
|
||||||
|
|
||||||
A few options are:
|
|
||||||
- Setup the CRD yourself manually and use `--set installCRD=false` when installing the helm chart. Find the CRDs in the [argo codebase](https://github.com/argoproj/argo-workflows/tree/master/manifests/base/crds/full)
|
|
||||||
- Manually create a ServiceAccount in the Namespace which your release will be deployed w/ appropriate bindings to perform this action and set the `init.serviceAccount` attribute
|
|
||||||
- Augment the `default` ServiceAccount permissions in the Namespace in which your Release is deployed to have the appropriate permissions
|
|
||||||
|
|
||||||
## Usage Notes:
|
|
||||||
This chart defaults to setting the `controller.instanceID.enabled` to `false` now, which means the deployed controller will act upon any workflow deployed to the cluster. If you would like to limit the behavior and deploy multiple workflow controllers, please use the `controller.instanceID.enabled` attribute along with one of it's configuration options to set the `instanceID` of the workflow controller to be properly scoped for your needs.
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
The `values.yaml` contains items used to tweak a deployment of this chart.
|
|
||||||
Fields to note:
|
|
||||||
* `controller.instanceID.enabled`: If set to true, the Argo Controller will **ONLY** monitor Workflow submissions with a `--instanceid` attribute
|
|
||||||
* `controller.instanceID.useReleaseName`: If set to true then chart set controller instance id to release name
|
|
||||||
* `controller.instanceID.explicitID`: Allows customization of an instance id for the workflow controller to monitor
|
|
||||||
* `controller.workflowNamespaces`: This is a list of namespaces where workflows will be ran
|
|
||||||
* `minio.install`: If this is true, we'll install [minio](https://github.com/kubernetes/charts/tree/master/stable/minio) and build out the artifactRepository section in workflow controller config map.
|
|
||||||
* `artifactRepository.s3.accessKeySecret` and `artifactRepository.s3.secretKeySecret` These by default link to minio default credentials stored in the secret deployed by the minio chart.
|
|
|
@ -1,23 +0,0 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: cronworkflows.argoproj.io
|
|
||||||
annotations:
|
|
||||||
helm.sh/hook: crd-install
|
|
||||||
helm.sh/hook-delete-policy: before-hook-creation
|
|
||||||
spec:
|
|
||||||
group: argoproj.io
|
|
||||||
names:
|
|
||||||
kind: CronWorkflow
|
|
||||||
listKind: CronWorkflowList
|
|
||||||
plural: cronworkflows
|
|
||||||
shortNames:
|
|
||||||
- cwf
|
|
||||||
- cronwf
|
|
||||||
singular: cronworkflow
|
|
||||||
scope: Namespaced
|
|
||||||
version: v1alpha1
|
|
||||||
versions:
|
|
||||||
- name: v1alpha1
|
|
||||||
served: true
|
|
||||||
storage: true
|
|
|
@ -1,33 +0,0 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: workflows.argoproj.io
|
|
||||||
annotations:
|
|
||||||
helm.sh/hook: crd-install
|
|
||||||
helm.sh/hook-delete-policy: before-hook-creation
|
|
||||||
spec:
|
|
||||||
additionalPrinterColumns:
|
|
||||||
- JSONPath: .status.phase
|
|
||||||
description: Status of the workflow
|
|
||||||
name: Status
|
|
||||||
type: string
|
|
||||||
- JSONPath: .status.startedAt
|
|
||||||
description: When the workflow was started
|
|
||||||
format: date-time
|
|
||||||
name: Age
|
|
||||||
type: date
|
|
||||||
group: argoproj.io
|
|
||||||
names:
|
|
||||||
kind: Workflow
|
|
||||||
listKind: WorkflowList
|
|
||||||
plural: workflows
|
|
||||||
shortNames:
|
|
||||||
- wf
|
|
||||||
singular: workflow
|
|
||||||
scope: Namespaced
|
|
||||||
subresources: {}
|
|
||||||
version: v1alpha1
|
|
||||||
versions:
|
|
||||||
- name: v1alpha1
|
|
||||||
served: true
|
|
||||||
storage: true
|
|
|
@ -1,19 +0,0 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: workfloweventbindings.argoproj.io
|
|
||||||
spec:
|
|
||||||
group: argoproj.io
|
|
||||||
names:
|
|
||||||
kind: WorkflowEventBinding
|
|
||||||
listKind: WorkflowEventBindingList
|
|
||||||
plural: workfloweventbindings
|
|
||||||
shortNames:
|
|
||||||
- wfeb
|
|
||||||
singular: workfloweventbinding
|
|
||||||
scope: Namespaced
|
|
||||||
version: v1alpha1
|
|
||||||
versions:
|
|
||||||
- name: v1alpha1
|
|
||||||
served: true
|
|
||||||
storage: true
|
|
|
@ -1,22 +0,0 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: workflowtemplates.argoproj.io
|
|
||||||
annotations:
|
|
||||||
helm.sh/hook: crd-install
|
|
||||||
helm.sh/hook-delete-policy: before-hook-creation
|
|
||||||
spec:
|
|
||||||
group: argoproj.io
|
|
||||||
version: v1alpha1
|
|
||||||
scope: Namespaced
|
|
||||||
names:
|
|
||||||
kind: WorkflowTemplate
|
|
||||||
listKind: WorkflowTemplateList
|
|
||||||
plural: workflowtemplates
|
|
||||||
shortNames:
|
|
||||||
- wftmpl
|
|
||||||
singular: workflowtemplate
|
|
||||||
versions:
|
|
||||||
- name: v1alpha1
|
|
||||||
served: true
|
|
||||||
storage: true
|
|
|
@ -1,16 +0,0 @@
|
||||||
1. Get Argo Server external IP/domain by running:
|
|
||||||
|
|
||||||
kubectl --namespace {{ .Release.Namespace }} get services -o wide | grep {{ .Release.Name }}-{{ .Values.server.name }}
|
|
||||||
|
|
||||||
2. Submit the hello-world workflow by running:
|
|
||||||
|
|
||||||
argo submit https://raw.githubusercontent.com/argoproj/argo/master/examples/hello-world.yaml --watch
|
|
||||||
|
|
||||||
{{ if .Values.minio.install }}
|
|
||||||
|
|
||||||
3. Access Minio UI and create bucket '{{ .Values.minio.defaultBucket.name }}'. Minio UI is available on port 9000 and available via external URL. URL might be retrieved using following
|
|
||||||
command:
|
|
||||||
|
|
||||||
kubectl --namespace {{ .Release.Namespace }} get services -o wide | grep {{ .Release.Name }}-minio
|
|
||||||
|
|
||||||
{{ end }}
|
|
|
@ -1,16 +0,0 @@
|
||||||
{{/* vim: set filetype=mustache: */}}
|
|
||||||
{{/*
|
|
||||||
Expand the name of the chart.
|
|
||||||
*/}}
|
|
||||||
{{- define "name" -}}
|
|
||||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a default fully qualified app name.
|
|
||||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
||||||
*/}}
|
|
||||||
{{- define "fullname" -}}
|
|
||||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
|
||||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
|
|
@ -1,19 +0,0 @@
|
||||||
{{- if .Values.installCRD }}
|
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
|
||||||
kind: CustomResourceDefinition
|
|
||||||
metadata:
|
|
||||||
name: clusterworkflowtemplates.argoproj.io
|
|
||||||
annotations:
|
|
||||||
helm.sh/hook: crd-install
|
|
||||||
helm.sh/hook-delete-policy: before-hook-creation
|
|
||||||
spec:
|
|
||||||
group: argoproj.io
|
|
||||||
version: v1alpha1
|
|
||||||
scope: Cluster
|
|
||||||
names:
|
|
||||||
kind: ClusterWorkflowTemplate
|
|
||||||
plural: clusterworkflowtemplates
|
|
||||||
shortNames:
|
|
||||||
- clusterwftmpl
|
|
||||||
- cwft
|
|
||||||
{{- end }}
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue