-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(catalog): Allow CronJob to write secrets to vault (#2388)
* feat(catalog): Fix cronjob for uplading tokens to vault This includes: * Saving the final vault token to an env variable instead of a file by default * Changing role to one that allows writing of secrets * Switch from jq to yq which is installed in toolbox image * Add config map for moc/smaug to kustomization file Signed-off-by: SamoKopecky <[email protected]> * feat(catalog): Create SA to write secrets to vault Signed-off-by: SamoKopecky <[email protected]> * feat(catalog): Remove read-only SA from clusters other them smaug Signed-off-by: SamoKopecky <[email protected]> Signed-off-by: SamoKopecky <[email protected]>
- Loading branch information
1 parent
d177103
commit 5c3770d
Showing
14 changed files
with
11 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...ice-catalog-k8s-plugin/kustomization.yaml → ...ts/vault-secret-writer/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: service-catalog-k8s-plugin | ||
resources: | ||
- ../base | ||
- serviceaccount.yaml |
5 changes: 5 additions & 0 deletions
5
cluster-scope/base/core/serviceaccounts/vault-secret-writer/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: vault-secret-writer | ||
namespace: service-catalog-k8s-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ resources: | |
- openshift-config | ||
- openshift-ingress | ||
- openshift-monitoring | ||
- service-catalog-k8s-plugin |
5 changes: 0 additions & 5 deletions
5
...scope/overlays/prod/moc/curator/secret-mgmt/service-catalog-k8s-plugin/kustomization.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,3 @@ resources: | |
- openshift-monitoring | ||
- openshift-storage | ||
- opf-alertreceiver | ||
- service-catalog-k8s-plugin |
5 changes: 0 additions & 5 deletions
5
...r-scope/overlays/prod/moc/infra/secret-mgmt/service-catalog-k8s-plugin/kustomization.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ resources: | |
- openshift-ingress | ||
- openshift-monitoring | ||
- opf-monitoring | ||
- service-catalog-k8s-plugin |
5 changes: 0 additions & 5 deletions
5
...scope/overlays/prod/osc/osc-cl1/secret-mgmt/service-catalog-k8s-plugin/kustomization.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,3 @@ resources: | |
- openshift-monitoring | ||
- opf-monitoring | ||
- pachyderm | ||
- service-catalog-k8s-plugin |
5 changes: 0 additions & 5 deletions
5
...scope/overlays/prod/osc/osc-cl2/secret-mgmt/service-catalog-k8s-plugin/kustomization.yaml
This file was deleted.
Oops, something went wrong.