-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run the docdb user sync jobs with a locked down sa
- Loading branch information
1 parent
82d91d2
commit 66583dd
Showing
5 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
applications/90-ibm-sync-resources/templates/01-02-aws-docdb-user-job_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,37 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: aws-docdb-user-job | ||
namespace: mas-{{ .Values.instance.id}}-syncres | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "01" | ||
|
||
|
||
--- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: aws-docdb-user-job-role | ||
namespace: mas-{{ .Values.instance.id}}-syncres | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "01" | ||
rules: [] | ||
# No special K8S access required at present by these Jobs | ||
|
||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: aws-docdb-user-job-rolebinding | ||
namespace: mas-{{ .Values.instance.id }}-syncres | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "02" | ||
subjects: | ||
- kind: ServiceAccount | ||
name: aws-docdb-user-job | ||
namespace: mas-{{ .Values.instance.id }}-syncres | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: aws-docdb-user-job-role |
8 changes: 0 additions & 8 deletions
8
applications/90-ibm-sync-resources/templates/01-sync-sa_ServiceAccount.yaml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
applications/90-ibm-sync-resources/templates/02-sync-crb_ClusterRoleBinding.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