Documentation
¶
Index ¶
Constants ¶
const ( TokenSecretKey = "kspm-token" NodeCollectorNameSuffix = "node-config-collector" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kspm ¶
type Kspm struct {
*Spec
*Status
*NodeConfigurationCollectorSpec
// contains filtered or unexported fields
}
func (*Kspm) GetDaemonSetName ¶
func (*Kspm) GetTokenSecretName ¶
func (*Kspm) GetUniqueMappedHostPaths ¶
type NodeConfigurationCollectorSpec ¶
type NodeConfigurationCollectorSpec struct {
// Define the NodeConfigurationCollector daemonSet updateStrategy
// +kubebuilder:validation:Optional
UpdateStrategy *appsv1.DaemonSetUpdateStrategy `json:"updateStrategy,omitempty"`
// Adds additional labels for the NodeConfigurationCollector pods
// +kubebuilder:validation:Optional
Labels map[string]string `json:"labels,omitempty"`
// Adds additional annotations for the NodeConfigurationCollector pods
// +kubebuilder:validation:Optional
Annotations map[string]string `json:"annotations,omitempty"`
// Specify the node selector that controls on which nodes NodeConfigurationCollector pods will be deployed.
// +kubebuilder:validation:Optional
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// Overrides the default image
// +kubebuilder:validation:Optional
ImageRef image.Ref `json:"imageRef,omitempty"`
// If specified, indicates the pod's priority. Name must be defined by creating a PriorityClass object with that
// name. If not specified the setting will be removed from the DaemonSet.
// +kubebuilder:validation:Optional
PriorityClassName string `json:"priorityClassName,omitempty"`
// Define resources' requests and limits for single NodeConfigurationCollector pod
// +kubebuilder:validation:Optional
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
// Define the nodeAffinity for the DaemonSet of the NodeConfigurationCollector
// +kubebuilder:validation:Optional
NodeAffinity corev1.NodeAffinity `json:"nodeAffinity,omitempty"`
// Set tolerations for the NodeConfigurationCollector pods
// +kubebuilder:validation:Optional
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
// Set additional arguments to the NodeConfigurationCollector pods
// +kubebuilder:validation:Optional
Args []string `json:"args,omitempty"`
// Set additional environment variables for the NodeConfigurationCollector pods
// +kubebuilder:validation:Optional
Env []corev1.EnvVar `json:"env,omitempty"`
}
func (*NodeConfigurationCollectorSpec) DeepCopy ¶
func (in *NodeConfigurationCollectorSpec) DeepCopy() *NodeConfigurationCollectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigurationCollectorSpec.
func (*NodeConfigurationCollectorSpec) DeepCopyInto ¶
func (in *NodeConfigurationCollectorSpec) DeepCopyInto(out *NodeConfigurationCollectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Spec ¶
type Spec struct {
// MappedHostPaths define the host paths that are mounted to the container.
MappedHostPaths []string `json:"mappedHostPaths,omitempty"`
}
func (*Spec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec.
func (*Spec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Status ¶
type Status struct {
// TokenSecretHash contains the hash of the token that is passed to both the ActiveGate and Node-Configuration-Collector.
// Meant to keep the two in sync.
TokenSecretHash string `json:"tokenSecretHash,omitempty"`
}
+kubebuilder:object:generate=true
func (*Status) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.