Skip to content

Commit

Permalink
Merge pull request #18977 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-18971-to-release-3.9

[release-3.9] UPSTREAM: <carry>: Remove write permissions on daemonsets from Kubernetes bootstrap policy
  • Loading branch information
deads2k authored Mar 15, 2018
2 parents 379f583 + 8e32f77 commit b647c76
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 16 deletions.
36 changes: 32 additions & 4 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4818,7 +4818,6 @@ items:
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -4834,6 +4833,14 @@ items:
- patch
- update
- watch
- apiGroups:
- apps
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
resources:
Expand Down Expand Up @@ -4864,7 +4871,6 @@ items:
- apiGroups:
- extensions
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -4881,6 +4887,14 @@ items:
- patch
- update
- watch
- apiGroups:
- extensions
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- policy
resources:
Expand Down Expand Up @@ -4997,7 +5011,6 @@ items:
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5013,6 +5026,14 @@ items:
- patch
- update
- watch
- apiGroups:
- apps
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
resources:
Expand Down Expand Up @@ -5043,7 +5064,6 @@ items:
- apiGroups:
- extensions
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5060,6 +5080,14 @@ items:
- patch
- update
- watch
- apiGroups:
- extensions
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- policy
resources:
Expand Down
40 changes: 36 additions & 4 deletions test/testdata/bootstrappolicy/bootstrap_policy_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5276,7 +5276,6 @@ items:
- apps
attributeRestrictions: null
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5292,6 +5291,15 @@ items:
- patch
- update
- watch
- apiGroups:
- apps
attributeRestrictions: null
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
attributeRestrictions: null
Expand Down Expand Up @@ -5325,7 +5333,6 @@ items:
- extensions
attributeRestrictions: null
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5342,6 +5349,15 @@ items:
- patch
- update
- watch
- apiGroups:
- extensions
attributeRestrictions: null
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- policy
attributeRestrictions: null
Expand Down Expand Up @@ -5467,7 +5483,6 @@ items:
- apps
attributeRestrictions: null
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5483,6 +5498,15 @@ items:
- patch
- update
- watch
- apiGroups:
- apps
attributeRestrictions: null
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
attributeRestrictions: null
Expand Down Expand Up @@ -5516,7 +5540,6 @@ items:
- extensions
attributeRestrictions: null
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5533,6 +5556,15 @@ items:
- patch
- update
- watch
- apiGroups:
- extensions
attributeRestrictions: null
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- policy
attributeRestrictions: null
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b647c76

Please sign in to comment.