mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-18 17:21:23 +00:00
Merge pull request #127981 from jsafrane/selinux-changepolicy
1710: Implement SELinuxChangePolicy Kubernetes-commit: 97c79df18f8552facf63682b23d9380253972d48
This commit is contained in:
commit
be38ea1eb5
@ -37,6 +37,7 @@ type PodSecurityContextApplyConfiguration struct {
|
||||
FSGroupChangePolicy *corev1.PodFSGroupChangePolicy `json:"fsGroupChangePolicy,omitempty"`
|
||||
SeccompProfile *SeccompProfileApplyConfiguration `json:"seccompProfile,omitempty"`
|
||||
AppArmorProfile *AppArmorProfileApplyConfiguration `json:"appArmorProfile,omitempty"`
|
||||
SELinuxChangePolicy *corev1.PodSELinuxChangePolicy `json:"seLinuxChangePolicy,omitempty"`
|
||||
}
|
||||
|
||||
// PodSecurityContextApplyConfiguration constructs a declarative configuration of the PodSecurityContext type for use with
|
||||
@ -147,3 +148,11 @@ func (b *PodSecurityContextApplyConfiguration) WithAppArmorProfile(value *AppArm
|
||||
b.AppArmorProfile = value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithSELinuxChangePolicy sets the SELinuxChangePolicy field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the SELinuxChangePolicy field is set to the value of the last call.
|
||||
func (b *PodSecurityContextApplyConfiguration) WithSELinuxChangePolicy(value corev1.PodSELinuxChangePolicy) *PodSecurityContextApplyConfiguration {
|
||||
b.SELinuxChangePolicy = &value
|
||||
return b
|
||||
}
|
||||
|
@ -6920,6 +6920,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: runAsUser
|
||||
type:
|
||||
scalar: numeric
|
||||
- name: seLinuxChangePolicy
|
||||
type:
|
||||
scalar: string
|
||||
- name: seLinuxOptions
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.SELinuxOptions
|
||||
|
2
go.mod
2
go.mod
@ -26,7 +26,7 @@ require (
|
||||
golang.org/x/time v0.7.0
|
||||
google.golang.org/protobuf v1.35.1
|
||||
gopkg.in/evanphx/json-patch.v4 v4.12.0
|
||||
k8s.io/api v0.0.0-20241104230202-a653b0a58983
|
||||
k8s.io/api v0.0.0-20241104230203-4b3ef362bdf5
|
||||
k8s.io/apimachinery v0.0.0-20241104225908-9500acc2d964
|
||||
k8s.io/klog/v2 v2.130.1
|
||||
k8s.io/kube-openapi v0.0.0-20240827152857-f7e401e7b4c2
|
||||
|
4
go.sum
4
go.sum
@ -152,8 +152,8 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
k8s.io/api v0.0.0-20241104230202-a653b0a58983 h1:QoClpi7GLcXOYOoxZLqT4ZnlVaztA0K0HVWnEI+XAU4=
|
||||
k8s.io/api v0.0.0-20241104230202-a653b0a58983/go.mod h1:mp+gO7jvg9YbSvPU5PHKqKtHXwF5DBApTCw7TFflWqU=
|
||||
k8s.io/api v0.0.0-20241104230203-4b3ef362bdf5 h1:2hLPoxrVpIps1KFX3gseNypOaMm3qNiGd4X4G7sDITM=
|
||||
k8s.io/api v0.0.0-20241104230203-4b3ef362bdf5/go.mod h1:mp+gO7jvg9YbSvPU5PHKqKtHXwF5DBApTCw7TFflWqU=
|
||||
k8s.io/apimachinery v0.0.0-20241104225908-9500acc2d964 h1:kNmV/yxcgj6VWL2DDn4jANbDt7vjHTd342ZmSQG3xi4=
|
||||
k8s.io/apimachinery v0.0.0-20241104225908-9500acc2d964/go.mod h1:RBz1atosgwQyw4A8TzwjTQDnBVo/eak+3xLfOQr/By8=
|
||||
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
|
||||
|
Loading…
Reference in New Issue
Block a user