package
0.6.0-rc.1
Repository: https://github.com/rancher/webhook.git
Documentation: pkg.go.dev

# Functions

DropPSAPluginConfigFromAdmissionConfig removes the PluginConfig for PodSecurity from a Cluster if it has one.
GenerateAdmissionConfigFile generates the admission configuration file for PodSecurity based on the provided PodSecurityAdmissionConfigurationTemplate.
GetAdmissionConfigFromCluster generates an AdmissionConfiguration from a Cluster, or a one with default values if the cluster does not have one.
GetClusterVersion parses and returns a k8s version.
GetPluginConfigFromCluster generates a PluginConfig for PodSecurity from a Cluster, or a new one with default values if the cluster does not have one.
GetPluginConfigFromTemplate generates a PluginConfig for PodSecurity from a PodSecurityAdmissionConfigurationTemplate.