Skip to content

Commit

Permalink
Rename pod-security policy engine reference to pod-security-standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed May 4, 2022
1 parent 2cf0f75 commit ea8a85d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion carvel-package/bundle/config/00-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ clusterSecrets:
name: ""

#! Policy engine used to enforce security. Options are "pod-security-policies",
#! "pod-security", "kyverno" and "none".
#! "pod-security-standards", "kyverno" and "none".

clusterSecurity:

Expand Down
2 changes: 1 addition & 1 deletion session-manager/handlers/trainingportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def training_portal_create(name, uid, body, spec, status, patch, **_):
},
}

if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security":
if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security-standards":
namespace_body["metadata"]["labels"][
"pod-security.kubernetes.io/enforce"
] = "restricted"
Expand Down
2 changes: 1 addition & 1 deletion session-manager/handlers/workshopenvironment.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def workshop_environment_create(name, meta, spec, patch, logger, **_):
},
}

if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security":
if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security-standards":
namespace_body["metadata"]["labels"][
"pod-security.kubernetes.io/enforce"
] = "privileged"
Expand Down
6 changes: 3 additions & 3 deletions session-manager/handlers/workshopsession.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ def resolve_security_policy(name):
},
}

if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security":
if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security-standards":
namespace_body["metadata"]["labels"][
"pod-security.kubernetes.io/enforce"
] = namespace_security_policy
Expand Down Expand Up @@ -1271,7 +1271,7 @@ def resolve_security_policy(name):
},
}

if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security":
if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security-standards":
namespace_body["metadata"]["labels"][
"pod-security.kubernetes.io/enforce"
] = target_security_policy
Expand Down Expand Up @@ -1368,7 +1368,7 @@ def resolve_security_policy(name):
}
)

if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security":
if CLUSTER_SECURITY_POLICY_ENGINE == "pod-security-standards":
object_body["metadata"]["labels"][
"pod-security.kubernetes.io/enforce"
] = target_security_policy
Expand Down

0 comments on commit ea8a85d

Please sign in to comment.