diff --git a/charts/argo/templates/ui-cluster-role.yaml b/charts/argo/templates/ui-cluster-role.yaml index 7f87da16..b66f29b8 100644 --- a/charts/argo/templates/ui-cluster-role.yaml +++ b/charts/argo/templates/ui-cluster-role.yaml @@ -1,7 +1,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: {{ .Release.name }}-{{ .Values.uiName}}-cluster-role + name: {{ .Release.name }}-{{ .Values.ui.name}}-cluster-role rules: - apiGroups: - "" diff --git a/charts/argo/templates/ui-crb.yaml b/charts/argo/templates/ui-crb.yaml index c30420a6..bb7ccd62 100644 --- a/charts/argo/templates/ui-crb.yaml +++ b/charts/argo/templates/ui-crb.yaml @@ -1,12 +1,12 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: {{ .Release.name }}-{{ .Values.uiName}}-crb + name: {{ .Release.name }}-{{ .Values.ui.name}}-crb roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: {{ .Release.name }}-{{ .Values.uiName}}-cluster-role + name: {{ .Release.name }}-{{ .Values.ui.name}}-cluster-role subjects: - kind: ServiceAccount - name: {{ .Values.uiServiceAccount }} + name: {{ .Values.ui.serviceAccount }} namespace: {{ .Release.Name }} diff --git a/charts/argo/templates/ui-deployment.yaml b/charts/argo/templates/ui-deployment.yaml index bf237b6b..661ce610 100644 --- a/charts/argo/templates/ui-deployment.yaml +++ b/charts/argo/templates/ui-deployment.yaml @@ -1,21 +1,22 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: - name: {{ .Release.Name }}-{{ .Values.uiName}} + name: {{ .Release.Name }}-{{ .Values.ui.name}} labels: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + namspace: {{ .Release.Namespace }} spec: template: metadata: labels: - app: {{ .Release.Name }}-{{ .Values.uiName}} + app: {{ .Release.Name }}-{{ .Values.ui.name}} release: {{ .Release.Name }} spec: containers: - name: ui - image: "{{ .Values.imagesNamespace }}/{{ .Values.uiImage }}:{{ .Values.imagesTag }}" + image: "{{ .Values.images.namespace }}/{{ .Values.images.ui }}:{{ .Values.images.tag }}" env: - name: IN_CLUSTER value: "true" diff --git a/charts/argo/templates/ui-sa.yaml b/charts/argo/templates/ui-sa.yaml index 1fae8124..bba4b093 100644 --- a/charts/argo/templates/ui-sa.yaml +++ b/charts/argo/templates/ui-sa.yaml @@ -1,5 +1,5 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ .Values.uiServiceAccount }} - namespace: kube-system + name: {{ .Values.ui.serviceAccount }} + namspace: {{ .Release.Namespace }} diff --git a/charts/argo/templates/ui-service.yaml b/charts/argo/templates/ui-service.yaml index 96e2c38f..83d0b25e 100644 --- a/charts/argo/templates/ui-service.yaml +++ b/charts/argo/templates/ui-service.yaml @@ -1,17 +1,18 @@ apiVersion: v1 kind: Service metadata: - name: {{ .Release.Name }}-{{ .Values.uiName}} + name: {{ .Release.Name }}-{{ .Values.ui.name}} labels: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + namspace: {{ .Release.Namespace }} spec: ports: - port: 80 protocol: TCP targetPort: 8001 selector: - app: {{ .Release.Name }}-{{ .Values.uiName}} + app: {{ .Release.Name }}-{{ .Values.ui.name }} sessionAffinity: None - type: {{ .Values.uiServiceType }} + type: {{ .Values.ui.serviceType }} diff --git a/charts/argo/templates/workflow-controller-clusterrole.yaml b/charts/argo/templates/workflow-controller-clusterrole.yaml index ad4c52c6..7e6368ff 100644 --- a/charts/argo/templates/workflow-controller-clusterrole.yaml +++ b/charts/argo/templates/workflow-controller-clusterrole.yaml @@ -1,7 +1,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: {{ .Release.name }}-{{ .Values.controllerName}}-cluster-role + name: {{ .Release.name }}-{{ .Values.controller.name}}-cluster-role rules: - apiGroups: - "" diff --git a/charts/argo/templates/workflow-controller-config-map.yaml b/charts/argo/templates/workflow-controller-config-map.yaml index b0d9038f..e0294338 100644 --- a/charts/argo/templates/workflow-controller-config-map.yaml +++ b/charts/argo/templates/workflow-controller-config-map.yaml @@ -1,17 +1,18 @@ apiVersion: v1 kind: ConfigMap metadata: - name: {{ .Release.Name }}-{{ .Values.controllerName }}-configmap + name: {{ .Release.Name }}-{{ .Values.controller.name }}-configmap labels: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + namespace: {{ .Release.namespace }} data: config: | - {{- if .Values.useReleaseAsInstanceID }} + {{- if .Values.controller.useReleaseAsInstanceID }} instanceID: {{ .Release.Name }} {{- else }} - instanceID: {{ .Values.instanceID }} + instanceID: {{ .Values.controller.instanceID }} {{- end }} artifactRepository: {{- if or .Values.installMinio .Values.useDefaultArtifactRepo }} @@ -28,4 +29,4 @@ data: endpoint: {{ .Values.artifactRepository.s3.endpoint | default (printf "%s-%s" .Release.Name "minio-svc:9000") }} insecure: {{ .Values.artifactRepository.s3.insecure }} {{- end}} - executorImage: "{{ .Values.imagesNamespace }}/{{ .Values.executorImage }}:{{ .Values.imagesTag }}" + executorImage: "{{ .Values.images.namespace }}/{{ .Values.images.executor }}:{{ .Values.images.tag }}" diff --git a/charts/argo/templates/workflow-controller-crb.yaml b/charts/argo/templates/workflow-controller-crb.yaml index 641ad1a6..2af560f0 100644 --- a/charts/argo/templates/workflow-controller-crb.yaml +++ b/charts/argo/templates/workflow-controller-crb.yaml @@ -1,19 +1,19 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: {{ .Release.name }}-{{ .Values.controllerName}}-binding + name: {{ .Release.name }}-{{ .Values.controller.name}}-binding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: {{ .Release.name }}-{{ .Values.controllerName}}-cluster-role + name: {{ .Release.name }}-{{ .Values.controller.name}}-cluster-role subjects: - kind: ServiceAccount - name: {{ .Values.workflowServiceAccount }} + name: {{ .Values.controller.serviceAccount }} namespace: {{ .Release.Namespace }} -{{- if .Values.workflowNamespaces }} -{{- $uiServiceAccount := .Values.workflowServiceAccount }} +{{- if .Values.controller.workflowNamespaces }} +{{- $uiServiceAccount := .Values.controller.serviceAccount }} {{- $namespace := .Release.Namespace }} -{{- range $key := .Values.workflowNamespaces }} +{{- range $key := .Values.controller.workflowNamespaces }} {{- if not (eq $key $namespace) }} - kind: ServiceAccount name: {{ $uiServiceAccount }} diff --git a/charts/argo/templates/workflow-controller-deployment.yaml b/charts/argo/templates/workflow-controller-deployment.yaml index 808e57dd..d4291bd3 100644 --- a/charts/argo/templates/workflow-controller-deployment.yaml +++ b/charts/argo/templates/workflow-controller-deployment.yaml @@ -1,24 +1,25 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: - name: {{ .Release.Name }}-{{ .Values.controllerName}} + name: {{ .Release.Name }}-{{ .Values.controller.name}} labels: - app: {{ .Release.Name }}-{{ .Values.controllerName}} + app: {{ .Release.Name }}-{{ .Values.controller.name}} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} + namespace: {{ .Release.Namespace }} heritage: {{ .Release.Service }} spec: template: metadata: labels: - app: {{ .Release.Name }}-{{ .Values.controllerName}} + app: {{ .Release.Name }}-{{ .Values.controller.name}} release: {{ .Release.Name }} spec: containers: - name: controller - image: "{{ .Values.imagesNamespace }}/{{ .Values.controllerImage }}:{{ .Values.imagesTag }}" + image: "{{ .Values.images.namespace }}/{{ .Values.images.controller }}:{{ .Values.images.tag }}" command: [ "workflow-controller" ] - args: ["--configmap", "{{ .Release.Name }}-{{ .Values.controllerName}}-configmap"] + args: ["--configmap", "{{ .Release.Name }}-{{ .Values.controller.name}}-configmap"] env: - name: ARGO_NAMESPACE valueFrom: diff --git a/charts/argo/templates/workflow-controller-sa.yaml b/charts/argo/templates/workflow-controller-sa.yaml index 77e9154f..c7fa24f0 100644 --- a/charts/argo/templates/workflow-controller-sa.yaml +++ b/charts/argo/templates/workflow-controller-sa.yaml @@ -1,5 +1,5 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ .Values.workflowServiceAccount }} - namespace: kube-system + name: {{ .Values.controller.serviceAccount }} + namespace: {{ .Release.Namespace }}