feat(argo-workflows): Assign common labels to some resources (#1369)
* feat(argo-workflows): Assign common labels to controller resources Signed-off-by: kenchan0130 <tt.tanishi100@gmail.com> * feat(argo-workflows): Assign common labels to the server sa resource Signed-off-by: kenchan0130 <tt.tanishi100@gmail.com> * Update argo-workflows Chart.yaml Signed-off-by: kenchan0130 <tt.tanishi100@gmail.com>
This commit is contained in:
parent
8f3aed978c
commit
e01c613046
8 changed files with 17 additions and 2 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: argo-workflows
|
name: argo-workflows
|
||||||
description: A Helm chart for Argo Workflows
|
description: A Helm chart for Argo Workflows
|
||||||
type: application
|
type: application
|
||||||
version: 0.16.6
|
version: 0.16.7
|
||||||
appVersion: v3.3.8
|
appVersion: v3.3.8
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
|
@ -15,4 +15,4 @@ maintainers:
|
||||||
- name: benjaminws
|
- name: benjaminws
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Changed]: Update to app version v3.3.8"
|
- "[Changed]: Assign common labels to some resources"
|
||||||
|
|
|
@ -4,6 +4,7 @@ kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.fullname" . }}-view
|
name: {{ template "argo-workflows.fullname" . }}-view
|
||||||
labels:
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||||
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
|
@ -29,6 +30,7 @@ kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.fullname" . }}-edit
|
name: {{ template "argo-workflows.fullname" . }}-edit
|
||||||
labels:
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
|
@ -59,6 +61,7 @@ kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.fullname" . }}-admin
|
name: {{ template "argo-workflows.fullname" . }}-admin
|
||||||
labels:
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
|
|
|
@ -170,6 +170,8 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.controller.fullname" . }}-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 }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- argoproj.io
|
- argoproj.io
|
||||||
|
|
|
@ -3,6 +3,8 @@ apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.controllerServiceAccountName" . }}
|
name: {{ template "argo-workflows.controllerServiceAccountName" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
|
||||||
{{ with .Values.controller.serviceAccount.annotations }}
|
{{ with .Values.controller.serviceAccount.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .| nindent 4 }}
|
{{- toYaml .| nindent 4 }}
|
||||||
|
|
|
@ -5,6 +5,8 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.fullname" $ }}-workflow
|
name: {{ template "argo-workflows.fullname" $ }}-workflow
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" $ "component" $.Values.controller.name "name" $.Values.controller.name) | nindent 4 }}
|
||||||
{{- with $namespace }}
|
{{- with $namespace }}
|
||||||
namespace: {{ . }}
|
namespace: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -5,6 +5,8 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.fullname" $ }}-workflow
|
name: {{ template "argo-workflows.fullname" $ }}-workflow
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" $ "component" $.Values.controller.name "name" $.Values.controller.name) | nindent 4 }}
|
||||||
{{- with $namespace }}
|
{{- with $namespace }}
|
||||||
namespace: {{ . }}
|
namespace: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -5,6 +5,8 @@ apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $.Values.workflow.serviceAccount.name }}
|
name: {{ $.Values.workflow.serviceAccount.name }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" $ "component" $.Values.controller.name "name" $.Values.controller.name) | nindent 4 }}
|
||||||
{{- with $namespace }}
|
{{- with $namespace }}
|
||||||
namespace: {{ . }}
|
namespace: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -3,6 +3,8 @@ apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-workflows.serverServiceAccountName" . }}
|
name: {{ template "argo-workflows.serverServiceAccountName" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
{{- with .Values.server.serviceAccount.annotations }}
|
{{- with .Values.server.serviceAccount.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
|
Loading…
Reference in a new issue