Skip to content

Commit 85a33d1

Browse files
Prepare CM for mount on install
Signed-off-by: Danil-Grigorev <[email protected]>
1 parent 77d2f08 commit 85a33d1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{- if index .Values "rancherTurtles" "features" "embedded-operator" "enabled" }}
2+
apiversion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: clusterctl-config
6+
namespace: '{{ .Values.rancherTurtles.namespace }}'
7+
{{- end}}

charts/rancher-turtles/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,20 @@ spec:
7171
requests:
7272
cpu: 10m
7373
memory: 128Mi
74+
{{- if index .Values "rancherTurtles" "features" "embedded-operator" "enabled" }}
7475
{{- with .Values.rancherTurtles.volumeMounts.manager }}
7576
volumeMounts:
7677
{{- toYaml . | nindent 12 }}
7778
{{- end }}
79+
{{- end }}
7880
serviceAccountName: rancher-turtles-manager
7981
terminationGracePeriodSeconds: 10
82+
{{- if index .Values "rancherTurtles" "features" "embedded-operator" "enabled" }}
8083
{{- with .Values.rancherTurtles.volumes }}
8184
volumes:
8285
{{- toYaml . | nindent 8 }}
8386
{{- end }}
87+
{{- end }}
8488
tolerations:
8589
- effect: NoSchedule
8690
key: node-role.kubernetes.io/master

0 commit comments

Comments
 (0)