Skip to content

Commit

Permalink
Add optional envFrom.secretRef to deploment for credentials (#13)
Browse files Browse the repository at this point in the history
Called "provider-credentials"
  • Loading branch information
foot authored Oct 23, 2023
1 parent 161f1ad commit 2c2d10a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ $(HELMIFY): $(LOCALBIN)

.PHONY: helm
helm: manifests kustomize helmify
$(KUSTOMIZE) build config/default | $(HELMIFY) -crd-dir ../weave-gitops-enterprise/charts/cluster-reflector-controller
$(KUSTOMIZE) build config/default | $(HELMIFY) -crd-dir charts/cluster-reflector-controller

.PHONY: helm-chart
helm-chart: manifests kustomize helmify
Expand Down
4 changes: 4 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ spec:
- --leader-elect
image: controller:latest
name: manager
envFrom:
- secretRef:
name: provider-credentials
optional: true
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down

0 comments on commit 2c2d10a

Please sign in to comment.