Skip to content

Commit

Permalink
fix: configmapref in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
vbehar authored and arttor committed Feb 17, 2023
1 parent 8eb9f6d commit 2351ee0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions examples/operator/templates/configmap-vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "operator.fullname" . }}-configmap-vars
labels:
{{- include "operator.labels" . | nindent 4 }}
data:
VAR4: {{ .Values.configmapVars.var4 | quote }}
2 changes: 1 addition & 1 deletion examples/operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
valueFrom:
configMapKeyRef:
key: VAR4
name: my-operator-configmap-vars
name: {{ include "operator.fullname" . }}-configmap-vars
- name: VAR5
valueFrom:
fieldRef:
Expand Down
2 changes: 2 additions & 0 deletions examples/operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
configmapVars:
var4: value for var4
controllerManager:
kubeRbacProxy:
image:
Expand Down
8 changes: 8 additions & 0 deletions test_data/k8s-operator-kustomize.output
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,14 @@ metadata:
type: opaque
---
apiVersion: v1
data:
VAR4: value for var4
kind: ConfigMap
metadata:
name: my-operator-configmap-vars
namespace: my-operator-system
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: my-operator-pvc-lim
Expand Down

0 comments on commit 2351ee0

Please sign in to comment.