mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-15 05:53:15 +00:00
Generated code
Kubernetes-commit: b7f620c12b7f2dbd7907ccad1ca63811a5c5766b
This commit is contained in:
parent
0cdc0ce850
commit
db79dcf23b
52
applyconfigurations/core/v1/apparmorprofile.go
Normal file
52
applyconfigurations/core/v1/apparmorprofile.go
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
Copyright The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
||||||
|
|
||||||
|
package v1
|
||||||
|
|
||||||
|
import (
|
||||||
|
v1 "k8s.io/api/core/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
// AppArmorProfileApplyConfiguration represents an declarative configuration of the AppArmorProfile type for use
|
||||||
|
// with apply.
|
||||||
|
type AppArmorProfileApplyConfiguration struct {
|
||||||
|
Type *v1.AppArmorProfileType `json:"type,omitempty"`
|
||||||
|
LocalhostProfile *string `json:"localhostProfile,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// AppArmorProfileApplyConfiguration constructs an declarative configuration of the AppArmorProfile type for use with
|
||||||
|
// apply.
|
||||||
|
func AppArmorProfile() *AppArmorProfileApplyConfiguration {
|
||||||
|
return &AppArmorProfileApplyConfiguration{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithType sets the Type 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 Type field is set to the value of the last call.
|
||||||
|
func (b *AppArmorProfileApplyConfiguration) WithType(value v1.AppArmorProfileType) *AppArmorProfileApplyConfiguration {
|
||||||
|
b.Type = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithLocalhostProfile sets the LocalhostProfile 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 LocalhostProfile field is set to the value of the last call.
|
||||||
|
func (b *AppArmorProfileApplyConfiguration) WithLocalhostProfile(value string) *AppArmorProfileApplyConfiguration {
|
||||||
|
b.LocalhostProfile = &value
|
||||||
|
return b
|
||||||
|
}
|
@ -35,6 +35,7 @@ type PodSecurityContextApplyConfiguration struct {
|
|||||||
Sysctls []SysctlApplyConfiguration `json:"sysctls,omitempty"`
|
Sysctls []SysctlApplyConfiguration `json:"sysctls,omitempty"`
|
||||||
FSGroupChangePolicy *corev1.PodFSGroupChangePolicy `json:"fsGroupChangePolicy,omitempty"`
|
FSGroupChangePolicy *corev1.PodFSGroupChangePolicy `json:"fsGroupChangePolicy,omitempty"`
|
||||||
SeccompProfile *SeccompProfileApplyConfiguration `json:"seccompProfile,omitempty"`
|
SeccompProfile *SeccompProfileApplyConfiguration `json:"seccompProfile,omitempty"`
|
||||||
|
AppArmorProfile *AppArmorProfileApplyConfiguration `json:"appArmorProfile,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodSecurityContextApplyConfiguration constructs an declarative configuration of the PodSecurityContext type for use with
|
// PodSecurityContextApplyConfiguration constructs an declarative configuration of the PodSecurityContext type for use with
|
||||||
@ -129,3 +130,11 @@ func (b *PodSecurityContextApplyConfiguration) WithSeccompProfile(value *Seccomp
|
|||||||
b.SeccompProfile = value
|
b.SeccompProfile = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithAppArmorProfile sets the AppArmorProfile 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 AppArmorProfile field is set to the value of the last call.
|
||||||
|
func (b *PodSecurityContextApplyConfiguration) WithAppArmorProfile(value *AppArmorProfileApplyConfiguration) *PodSecurityContextApplyConfiguration {
|
||||||
|
b.AppArmorProfile = value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -36,6 +36,7 @@ type SecurityContextApplyConfiguration struct {
|
|||||||
AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"`
|
AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"`
|
||||||
ProcMount *corev1.ProcMountType `json:"procMount,omitempty"`
|
ProcMount *corev1.ProcMountType `json:"procMount,omitempty"`
|
||||||
SeccompProfile *SeccompProfileApplyConfiguration `json:"seccompProfile,omitempty"`
|
SeccompProfile *SeccompProfileApplyConfiguration `json:"seccompProfile,omitempty"`
|
||||||
|
AppArmorProfile *AppArmorProfileApplyConfiguration `json:"appArmorProfile,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SecurityContextApplyConfiguration constructs an declarative configuration of the SecurityContext type for use with
|
// SecurityContextApplyConfiguration constructs an declarative configuration of the SecurityContext type for use with
|
||||||
@ -131,3 +132,11 @@ func (b *SecurityContextApplyConfiguration) WithSeccompProfile(value *SeccompPro
|
|||||||
b.SeccompProfile = value
|
b.SeccompProfile = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithAppArmorProfile sets the AppArmorProfile 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 AppArmorProfile field is set to the value of the last call.
|
||||||
|
func (b *SecurityContextApplyConfiguration) WithAppArmorProfile(value *AppArmorProfileApplyConfiguration) *SecurityContextApplyConfiguration {
|
||||||
|
b.AppArmorProfile = value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -4401,6 +4401,21 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: podAntiAffinity
|
- name: podAntiAffinity
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.core.v1.PodAntiAffinity
|
namedType: io.k8s.api.core.v1.PodAntiAffinity
|
||||||
|
- name: io.k8s.api.core.v1.AppArmorProfile
|
||||||
|
map:
|
||||||
|
fields:
|
||||||
|
- name: localhostProfile
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
|
- name: type
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
|
default: ""
|
||||||
|
unions:
|
||||||
|
- discriminator: type
|
||||||
|
fields:
|
||||||
|
- fieldName: localhostProfile
|
||||||
|
discriminatorValue: LocalhostProfile
|
||||||
- name: io.k8s.api.core.v1.AttachedVolume
|
- name: io.k8s.api.core.v1.AttachedVolume
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
@ -6720,6 +6735,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: io.k8s.api.core.v1.PodSecurityContext
|
- name: io.k8s.api.core.v1.PodSecurityContext
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
- name: appArmorProfile
|
||||||
|
type:
|
||||||
|
namedType: io.k8s.api.core.v1.AppArmorProfile
|
||||||
- name: fsGroup
|
- name: fsGroup
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
@ -7614,6 +7632,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: allowPrivilegeEscalation
|
- name: allowPrivilegeEscalation
|
||||||
type:
|
type:
|
||||||
scalar: boolean
|
scalar: boolean
|
||||||
|
- name: appArmorProfile
|
||||||
|
type:
|
||||||
|
namedType: io.k8s.api.core.v1.AppArmorProfile
|
||||||
- name: capabilities
|
- name: capabilities
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.core.v1.Capabilities
|
namedType: io.k8s.api.core.v1.Capabilities
|
||||||
|
@ -613,6 +613,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
|||||||
// Group=core, Version=v1
|
// Group=core, Version=v1
|
||||||
case corev1.SchemeGroupVersion.WithKind("Affinity"):
|
case corev1.SchemeGroupVersion.WithKind("Affinity"):
|
||||||
return &applyconfigurationscorev1.AffinityApplyConfiguration{}
|
return &applyconfigurationscorev1.AffinityApplyConfiguration{}
|
||||||
|
case corev1.SchemeGroupVersion.WithKind("AppArmorProfile"):
|
||||||
|
return &applyconfigurationscorev1.AppArmorProfileApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("AttachedVolume"):
|
case corev1.SchemeGroupVersion.WithKind("AttachedVolume"):
|
||||||
return &applyconfigurationscorev1.AttachedVolumeApplyConfiguration{}
|
return &applyconfigurationscorev1.AttachedVolumeApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("AWSElasticBlockStoreVolumeSource"):
|
case corev1.SchemeGroupVersion.WithKind("AWSElasticBlockStoreVolumeSource"):
|
||||||
|
Loading…
Reference in New Issue
Block a user