Skip to content

Commit

Permalink
Grant get secret role to controller to support persistence (argoproj#…
Browse files Browse the repository at this point in the history
  • Loading branch information
paguos authored and jessesuen committed Oct 3, 2019
1 parent 644946e commit e20cb28
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 1 deletion.
33 changes: 33 additions & 0 deletions docs/workflow-controller-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,36 @@ data:
enabled: true
path: /telemetry
port: 8080
# enable persistence using postgres
persistence:
connectionPool:
maxIdleConns: 100
maxOpenConns: 0
# save the entire workflow into etcd and DB
nodeStatusOffLoad: false
postgresql:
host: localhost
port: 5432
database: postgres
tableName: argo_workflows
# the database secrets must be in the same namespace of the controller
userNameSecret:
name: argo-postgres-config
key: username
passwordSecret:
name: argo-postgres-config
key: password
# Optional config for mysql:
# mysql:
# host: localhost
# port: 3306
# database: argo
# tableName: argo_workflows
# userNameSecret:
# name: argo-mysql-config
# key: username
# passwordSecret:
# name: argo-mysql-config
# key: password
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ resources:
- workflow-aggregate-roles.yaml
- workflow-controller-clusterrole.yaml
- workflow-controller-clusterrolebinding.yaml
- workflow-controller-role.yaml
- workflow-controller-rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ rules:
- serviceaccounts
verbs:
- get
- list
- list
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: argo-role
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: argo-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: argo-role
subjects:
- kind: ServiceAccount
name: argo
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ rules:
verbs:
- get
- list
- apiGroups:
- ""
resources:
- secrets
verbs:
- get

0 comments on commit e20cb28

Please sign in to comment.