-
Notifications
You must be signed in to change notification settings - Fork 142
/
kubeletconfigspec.go
65 lines (56 loc) · 3.39 KB
/
kubeletconfigspec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
import (
configv1 "github.com/openshift/api/config/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
// KubeletConfigSpecApplyConfiguration represents an declarative configuration of the KubeletConfigSpec type for use
// with apply.
type KubeletConfigSpecApplyConfiguration struct {
AutoSizingReserved *bool `json:"autoSizingReserved,omitempty"`
LogLevel *int32 `json:"logLevel,omitempty"`
MachineConfigPoolSelector *v1.LabelSelector `json:"machineConfigPoolSelector,omitempty"`
KubeletConfig *runtime.RawExtension `json:"kubeletConfig,omitempty"`
TLSSecurityProfile *configv1.TLSSecurityProfile `json:"tlsSecurityProfile,omitempty"`
}
// KubeletConfigSpecApplyConfiguration constructs an declarative configuration of the KubeletConfigSpec type for use with
// apply.
func KubeletConfigSpec() *KubeletConfigSpecApplyConfiguration {
return &KubeletConfigSpecApplyConfiguration{}
}
// WithAutoSizingReserved sets the AutoSizingReserved 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 AutoSizingReserved field is set to the value of the last call.
func (b *KubeletConfigSpecApplyConfiguration) WithAutoSizingReserved(value bool) *KubeletConfigSpecApplyConfiguration {
b.AutoSizingReserved = &value
return b
}
// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
func (b *KubeletConfigSpecApplyConfiguration) WithLogLevel(value int32) *KubeletConfigSpecApplyConfiguration {
b.LogLevel = &value
return b
}
// WithMachineConfigPoolSelector sets the MachineConfigPoolSelector 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 MachineConfigPoolSelector field is set to the value of the last call.
func (b *KubeletConfigSpecApplyConfiguration) WithMachineConfigPoolSelector(value v1.LabelSelector) *KubeletConfigSpecApplyConfiguration {
b.MachineConfigPoolSelector = &value
return b
}
// WithKubeletConfig sets the KubeletConfig 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 KubeletConfig field is set to the value of the last call.
func (b *KubeletConfigSpecApplyConfiguration) WithKubeletConfig(value runtime.RawExtension) *KubeletConfigSpecApplyConfiguration {
b.KubeletConfig = &value
return b
}
// WithTLSSecurityProfile sets the TLSSecurityProfile 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 TLSSecurityProfile field is set to the value of the last call.
func (b *KubeletConfigSpecApplyConfiguration) WithTLSSecurityProfile(value configv1.TLSSecurityProfile) *KubeletConfigSpecApplyConfiguration {
b.TLSSecurityProfile = &value
return b
}