Skip to content

Commit

Permalink
patroni's policy rules
Browse files Browse the repository at this point in the history
  • Loading branch information
cjc7373 committed Nov 29, 2024
1 parent 014bc19 commit 17a4490
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 0 deletions.
39 changes: 39 additions & 0 deletions addons/postgresql/templates/componentdefinition-12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,45 @@ spec:
value: $(POSTGRES_PASSWORD)
targetPodSelector: Role
matchingKey: primary
policyRules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- patch
- update
- watch
# delete is required only for 'patronictl remove'
- delete
- apiGroups:
- ""
resources:
- endpoints
verbs:
- get
- patch
- update
- create
- list
- watch
# delete is required only for 'patronictl remove'
- delete
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
runtime:
securityContext:
runAsUser: 0
Expand Down
39 changes: 39 additions & 0 deletions addons/postgresql/templates/componentdefinition-14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,45 @@ spec:
value: $(POSTGRES_PASSWORD)
targetPodSelector: Role
matchingKey: primary
policyRules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- patch
- update
- watch
# delete is required only for 'patronictl remove'
- delete
- apiGroups:
- ""
resources:
- endpoints
verbs:
- get
- patch
- update
- create
- list
- watch
# delete is required only for 'patronictl remove'
- delete
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
runtime:
securityContext:
runAsUser: 0
Expand Down
39 changes: 39 additions & 0 deletions addons/postgresql/templates/componentdefinition-15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,45 @@ spec:
value: $(POSTGRES_PASSWORD)
targetPodSelector: Role
matchingKey: primary
policyRules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- patch
- update
- watch
# delete is required only for 'patronictl remove'
- delete
- apiGroups:
- ""
resources:
- endpoints
verbs:
- get
- patch
- update
- create
- list
- watch
# delete is required only for 'patronictl remove'
- delete
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
runtime:
securityContext:
runAsUser: 0
Expand Down
39 changes: 39 additions & 0 deletions addons/postgresql/templates/componentdefinition-16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,45 @@ spec:
value: $(POSTGRES_PASSWORD)
targetPodSelector: Role
matchingKey: primary
policyRules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- patch
- update
- watch
# delete is required only for 'patronictl remove'
- delete
- apiGroups:
- ""
resources:
- endpoints
verbs:
- get
- patch
- update
- create
- list
- watch
# delete is required only for 'patronictl remove'
- delete
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
runtime:
securityContext:
runAsUser: 0
Expand Down

0 comments on commit 17a4490

Please sign in to comment.