Skip to content

Commit

Permalink
mount mc-secret
Browse files Browse the repository at this point in the history
  • Loading branch information
britaniar committed Dec 3, 2024
1 parent e6d52d9 commit fc031c8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/member-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ spec:
- name: cloud-provider-config
mountPath: /etc/kubernetes/provider
readOnly: true
- name: managed-cluster-info
mountPath: /etc/kubernetes/secrets
readOnly: true
{{- end }}
{{- end }}
{{- if not .Values.useCAAuth }}
Expand Down Expand Up @@ -125,6 +128,9 @@ spec:
- name: cloud-provider-config
secret:
secretName: cloud-config
- name: managed-cluster-info
secret:
secretName: mc-secret
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
Expand Down
10 changes: 10 additions & 0 deletions charts/member-agent/templates/mcsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- if eq .Values.propertyProvider "azure" }}
apiVersion: v1
kind: Secret
metadata:
name: mc-secret
namespace: {{ .Values.namespace }}
type: Opaque
data:
data: {{ .Values.azure.mcSecretData | quote }}
{{- end }}
1 change: 1 addition & 0 deletions charts/member-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ secret:

azure:
clientid: <member_cluster_clientID>
mcSecretData: "CgJ1c2VyEgdwYXNzd29yZA==" # TODO: Replace with the base64 encoded secret data using github secret

tlsClientInsecure: true #TODO should be false in the production
useCAAuth: false
Expand Down

0 comments on commit fc031c8

Please sign in to comment.