kspm

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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 *Kspm) GetDaemonSetName() string

func (*Kspm) GetTokenSecretName

func (kspm *Kspm) GetTokenSecretName() string

func (*Kspm) GetUniqueMappedHostPaths

func (kspm *Kspm) GetUniqueMappedHostPaths() []string

func (*Kspm) IsEnabled

func (kspm *Kspm) IsEnabled() bool

func (*Kspm) SetName

func (kspm *Kspm) SetName(name string)

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigurationCollectorSpec.

func (*NodeConfigurationCollectorSpec) DeepCopyInto

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

func (in *Spec) DeepCopy() *Spec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec.

func (*Spec) DeepCopyInto

func (in *Spec) DeepCopyInto(out *Spec)

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

func (in *Status) DeepCopy() *Status

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL