Skip to content

Commit

Permalink
[EPMDEDP-12315]: fix: ExternalSecret configuration
Browse files Browse the repository at this point in the history
Change-Id: I76957a5679906451043037fd4c1240b7bf3798a6
  • Loading branch information
zmotso committed Jul 28, 2023
1 parent 6067fd4 commit 0e322b2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ vet: ## Run go vet
go vet ./...

lint: golangci-lint ## Run go lint
${GOLANGCILINT} run
${GOLANGCILINT} run --timeout=10m -v

.PHONY: build
build: clean ## build operator's binary
Expand Down
19 changes: 16 additions & 3 deletions controllers/stage/chain/configure_manage_secrets_rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,23 @@ func (h ConfigureManageSecretsRBAC) createExternalSecret(
},
"data": []interface{}{
map[string]interface{}{
"secretKey": ".dockerconfigjson",
"secretKey": "secretValue",
"remoteRef": map[string]interface{}{
"key": "regcred",
"property": ".dockerconfigjson",
"key": "regcred",
"property": ".dockerconfigjson",
"decodingStrategy": "None",
"conversionStrategy": "Default",
},
},
},
"target": map[string]interface{}{
"creationPolicy": "Owner",
"deletionPolicy": "Retain",
"template": map[string]interface{}{
"engineVersion": "v2",
"type": "kubernetes.io/dockerconfigjson",
"data": map[string]interface{}{
".dockerconfigjson": "{{ .secretValue | toString }}",
},
},
},
Expand Down

0 comments on commit 0e322b2

Please sign in to comment.