fix(argo): Add RBAC permissions for v2.12. (#541)
Signed-off-by: Vlad Losev <vladimir.losev@sage.com>
This commit is contained in:
parent
182ef88c67
commit
391c439de6
18 changed files with 70 additions and 29 deletions
|
@ -1,2 +1,3 @@
|
||||||
chart-repos:
|
chart-repos:
|
||||||
- argo=https://argoproj.github.io/argo-helm
|
- argo=https://argoproj.github.io/argo-helm
|
||||||
|
- minio=https://helm.min.io/
|
||||||
|
|
|
@ -2,23 +2,25 @@ version: 2.1
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
docker:
|
docker:
|
||||||
- image: gcr.io/kubernetes-charts-ci/test-image:v3.1.0
|
- 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 .circleci/chart-testing.yaml --lint-conf .circleci/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
|
# 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.
|
# 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.
|
# We just need an image with `helm` on it. Handily we know of one already.
|
||||||
- image: gcr.io/kubernetes-charts-ci/test-image:v3.1.0
|
- 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.
|
# install the additional keys needed to push to Github. Alex Collins owns these keys.
|
||||||
- add_ssh_keys
|
- add_ssh_keys
|
||||||
- run: git config --global user.email "nobody@circleci.com"
|
- run: git config --global user.email "nobody@circleci.com"
|
||||||
- run: git config --global user.name "Circle CI Build"
|
- run: git config --global user.name "Circle CI Build"
|
||||||
- checkout
|
- checkout
|
||||||
- run: helm init --client-only
|
- run: helm repo add stable https://charts.helm.sh/stable
|
||||||
|
- run: helm repo add minio https://helm.min.io/
|
||||||
# Only actually publish charts on master.
|
# Only actually publish charts on master.
|
||||||
- run: |
|
- run: |
|
||||||
set -x
|
set -x
|
||||||
|
@ -35,4 +37,4 @@ workflows:
|
||||||
- lint
|
- lint
|
||||||
- publish:
|
- publish:
|
||||||
requires:
|
requires:
|
||||||
- lint
|
- lint
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: v1
|
||||||
appVersion: 1.7.6
|
appVersion: 1.7.6
|
||||||
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: 2.11.0
|
version: 2.11.1
|
||||||
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:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -1654,4 +1654,4 @@ spec:
|
||||||
versions:
|
versions:
|
||||||
- name: v1alpha1
|
- name: v1alpha1
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -228,4 +228,4 @@ spec:
|
||||||
versions:
|
versions:
|
||||||
- name: v1alpha1
|
- name: v1alpha1
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: redis-ha
|
- name: redis-ha
|
||||||
repository: https://kubernetes-charts.storage.googleapis.com
|
repository: https://charts.helm.sh/stable
|
||||||
version: 4.4.2
|
version: 4.4.2
|
||||||
digest: sha256:70fdd035c3aa3b7185882f12a73143c58ab32f04262dda2cf34a2b1a52116d96
|
digest: sha256:21780522f7047d49ccad6d79f79ee3e28b4839df044beea293e2e4fd69610f52
|
||||||
generated: "2020-03-29T14:37:59.349371452+01:00"
|
generated: "2021-01-11T16:15:21.274802-08:00"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: redis-ha
|
- name: redis-ha
|
||||||
version: 4.4.2
|
version: 4.4.2
|
||||||
repository: https://kubernetes-charts.storage.googleapis.com
|
repository: https://charts.helm.sh/stable
|
||||||
condition: redis-ha.enabled
|
condition: redis-ha.enabled
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: v2.11.7
|
appVersion: v2.12.3
|
||||||
description: A Helm chart for Argo Workflows
|
description: A Helm chart for Argo Workflows
|
||||||
name: argo
|
name: argo
|
||||||
version: 0.14.0
|
version: 0.15.0
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: minio
|
- name: minio
|
||||||
repository: https://kubernetes-charts.storage.googleapis.com/
|
repository: https://helm.min.io/
|
||||||
version: 5.0.6
|
version: 8.0.9
|
||||||
digest: sha256:373b459c6232e9fd4dd86fa0af01e024372f686a0cdfbfed69d3cd41859e8ad4
|
digest: sha256:0f43ad0a4b4e9af47615ef3da85054712eb28f154418d96b7b974a095cc19260
|
||||||
generated: "2020-02-06T00:16:52.211425292Z"
|
generated: "2021-01-11T15:01:01.169105-08:00"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: minio
|
- name: minio
|
||||||
version: 5.0.6
|
version: 8.0.9
|
||||||
repository: https://kubernetes-charts.storage.googleapis.com/
|
repository: https://helm.min.io/
|
||||||
condition: minio.install
|
condition: minio.install
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.installCRD }}
|
{{- if .Values.installCRD }}
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: clusterworkflowtemplates.argoproj.io
|
name: clusterworkflowtemplates.argoproj.io
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.installCRD }}
|
{{- if .Values.installCRD }}
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: cronworkflows.argoproj.io
|
name: cronworkflows.argoproj.io
|
||||||
|
@ -16,4 +16,4 @@ spec:
|
||||||
- cwf
|
- cwf
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
version: v1alpha1
|
version: v1alpha1
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -24,12 +24,32 @@ rules:
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- delete
|
- delete
|
||||||
|
{{- if .Values.server.sso }}
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- secrets
|
||||||
|
resourceNames:
|
||||||
|
- sso
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- update
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- secrets
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
{{- end}}
|
||||||
|
{{- if .Values.server.rbac }}
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- serviceaccounts
|
- serviceaccounts
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
|
- list
|
||||||
|
{{- end }}
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
|
|
|
@ -106,6 +106,25 @@ rules:
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
- apiGroups:
|
||||||
|
- coordination.k8s.io
|
||||||
|
resources:
|
||||||
|
- leases
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- apiGroups:
|
||||||
|
- coordination.k8s.io
|
||||||
|
resources:
|
||||||
|
- leases
|
||||||
|
resourceNames:
|
||||||
|
- workflow-controller
|
||||||
|
- workflow-controller-lease
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- watch
|
||||||
|
- update
|
||||||
|
- patch
|
||||||
|
- delete
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.installCRD }}
|
{{- if .Values.installCRD }}
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: workflows.argoproj.io
|
name: workflows.argoproj.io
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.installCRD }}
|
{{- if .Values.installCRD }}
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
metadata:
|
metadata:
|
||||||
name: workflowtemplates.argoproj.io
|
name: workflowtemplates.argoproj.io
|
||||||
|
|
|
@ -7,7 +7,7 @@ images:
|
||||||
# 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.11.7
|
tag: v2.12.3
|
||||||
|
|
||||||
crdVersion: v1alpha1
|
crdVersion: v1alpha1
|
||||||
installCRD: true
|
installCRD: true
|
||||||
|
|
|
@ -6,7 +6,6 @@ GIT_PUSH=${GIT_PUSH:-false}
|
||||||
|
|
||||||
rm -rf $SRCROOT/output && git clone -b gh-pages git@github.com:argoproj/argo-helm.git $SRCROOT/output
|
rm -rf $SRCROOT/output && git clone -b gh-pages git@github.com:argoproj/argo-helm.git $SRCROOT/output
|
||||||
|
|
||||||
helm repo add stable https://kubernetes-charts.storage.googleapis.com
|
|
||||||
helm repo add argoproj https://argoproj.github.io/argo-helm
|
helm repo add argoproj https://argoproj.github.io/argo-helm
|
||||||
|
|
||||||
for dir in $(find $SRCROOT/charts -mindepth 1 -maxdepth 1 -type d);
|
for dir in $(find $SRCROOT/charts -mindepth 1 -maxdepth 1 -type d);
|
||||||
|
|
Loading…
Reference in a new issue