Skip to content

Commit

Permalink
Merge pull request #213 from Starttoaster/master
Browse files Browse the repository at this point in the history
Remove references to PodSecurityPolicy
  • Loading branch information
pepov authored Dec 20, 2023
2 parents ca7a7d9 + 02dec03 commit aff8650
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1499,8 +1499,6 @@ spec:
type: string
type: object
type: object
podSecurityPolicyCreate:
type: boolean
roleBasedAccessControlCreate:
type: boolean
securityContext:
Expand Down Expand Up @@ -2401,8 +2399,6 @@ spec:
type: string
type: object
type: object
podSecurityPolicyCreate:
type: boolean
roleBasedAccessControlCreate:
type: boolean
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1499,8 +1499,6 @@ spec:
type: string
type: object
type: object
podSecurityPolicyCreate:
type: boolean
roleBasedAccessControlCreate:
type: boolean
securityContext:
Expand Down Expand Up @@ -2401,8 +2399,6 @@ spec:
type: string
type: object
type: object
podSecurityPolicyCreate:
type: boolean
roleBasedAccessControlCreate:
type: boolean
securityContext:
Expand Down
10 changes: 0 additions & 10 deletions pkg/resources/objectmodifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
corev1 "k8s.io/api/core/v1"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

policyv1beta1 "k8s.io/api/policy/v1beta1"
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
"k8s.io/apimachinery/pkg/runtime"
)
Expand All @@ -32,7 +31,6 @@ type ObjectModifierWithParentFunc func(o, p runtime.Object) (runtime.Object, err

var DefaultModifiers = []ObjectModifierFunc{
ClearCRDStatusModifier,
ClusterScopeNamespaceFixModifier,
MutatingWebhookConfigurationModifier,
ValidatingWebhookConfigurationModifier,
}
Expand Down Expand Up @@ -79,14 +77,6 @@ func ClearCRDStatusModifier(o runtime.Object) (runtime.Object, error) {
return o, nil
}

func ClusterScopeNamespaceFixModifier(o runtime.Object) (runtime.Object, error) {
if obj, ok := o.(*policyv1beta1.PodSecurityPolicy); ok {
obj.Namespace = ""
}

return o, nil
}

func MutatingWebhookConfigurationModifier(o runtime.Object) (runtime.Object, error) {
if obj, ok := o.(*admissionregistrationv1beta1.MutatingWebhookConfiguration); ok {
allScope := admissionregistrationv1beta1.AllScopes
Expand Down
2 changes: 0 additions & 2 deletions pkg/utils/sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ func InstallObjectOrder() func(o runtime.Object) int {
"Namespace",
"ResourceQuota",
"LimitRange",
"PodSecurityPolicy",
"PodDisruptionBudget",
"Secret",
"ConfigMap",
Expand Down Expand Up @@ -149,7 +148,6 @@ func UninstallObjectOrder() func(o runtime.Object) int {
"ConfigMap",
"Secret",
"PodDisruptionBudget",
"PodSecurityPolicy",
"LimitRange",
"ResourceQuota",
"Policy",
Expand Down

0 comments on commit aff8650

Please sign in to comment.