Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group. +kubebuilder:object:generate=true +groupName=netbird.io +kubebuilder:ac:generate=true +kubebuilder:ac:output:package=../../pkg/applyconfigurations
Index ¶
- Constants
- Variables
- type ContainerOverride
- type CrossNamespaceReference
- type DNSZoneReference
- type Group
- type GroupList
- type GroupReference
- type GroupSpec
- type GroupStatus
- type InjectionMode
- type NetworkResource
- func (in *NetworkResource) DeepCopy() *NetworkResource
- func (in *NetworkResource) DeepCopyInto(out *NetworkResource)
- func (in *NetworkResource) DeepCopyObject() runtime.Object
- func (n *NetworkResource) GetConditions() []metav1.Condition
- func (n *NetworkResource) SetConditions(conditions []metav1.Condition)
- type NetworkResourceList
- type NetworkResourceSpec
- type NetworkResourceStatus
- type NetworkRouter
- type NetworkRouterList
- type NetworkRouterSpec
- type NetworkRouterStatus
- type SetupKey
- type SetupKeyList
- type SetupKeySpec
- type SetupKeyStatus
- type SidecarProfile
- func (in *SidecarProfile) DeepCopy() *SidecarProfile
- func (in *SidecarProfile) DeepCopyInto(out *SidecarProfile)
- func (in *SidecarProfile) DeepCopyObject() runtime.Object
- func (s *SidecarProfile) GetConditions() []metav1.Condition
- func (s *SidecarProfile) SetConditions(conditions []metav1.Condition)
- type SidecarProfileList
- type SidecarProfileSpec
- type SidecarProfileStatus
- type WorkloadOverride
Constants ¶
const ( ReconciledReason = "Reconciled" DependencyReason = "Dependency" )
const ReadyCondition = "Ready"
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "netbird.io", Version: "v1alpha1"} SchemeGroupVersion = GroupVersion // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type ContainerOverride ¶
type ContainerOverride struct {
// Image overrides the image used by the client.
// +optional
Image string `json:"image,omitempty"`
// +optional
Env []corev1.EnvVar `json:"env,omitempty"`
// +optional
SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"`
}
func (*ContainerOverride) DeepCopy ¶
func (in *ContainerOverride) DeepCopy() *ContainerOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerOverride.
func (*ContainerOverride) DeepCopyInto ¶
func (in *ContainerOverride) DeepCopyInto(out *ContainerOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CrossNamespaceReference ¶
type CrossNamespaceReference struct {
// Name of the referent.
// +required
Name string `json:"name"`
// Namespace of the referent.
// +required
Namespace string `json:"namespace"`
}
func (*CrossNamespaceReference) DeepCopy ¶
func (in *CrossNamespaceReference) DeepCopy() *CrossNamespaceReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossNamespaceReference.
func (*CrossNamespaceReference) DeepCopyInto ¶
func (in *CrossNamespaceReference) DeepCopyInto(out *CrossNamespaceReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNSZoneReference ¶
type DNSZoneReference struct {
// Name is the domain name of an existing Netbird DNS zone, e.g. "example.com".
// +required
Name string `json:"name"`
}
DNSZoneReference references a Netbird DNS zone by domain name.
func (*DNSZoneReference) DeepCopy ¶
func (in *DNSZoneReference) DeepCopy() *DNSZoneReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSZoneReference.
func (*DNSZoneReference) DeepCopyInto ¶
func (in *DNSZoneReference) DeepCopyInto(out *DNSZoneReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Group ¶
type Group struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +required
Spec GroupSpec `json:"spec"`
// +kubebuilder:default={"observedGeneration":-1}
Status GroupStatus `json:"status,omitempty"`
}
Group is the Schema for the groups API.
func (*Group) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Group.
func (*Group) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Group) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Group) GetConditions ¶
GetConditions returns the status conditions of the object.
func (*Group) SetConditions ¶
SetConditions sets the status conditions on the object.
type GroupList ¶
type GroupList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitzero"`
Items []Group `json:"items"`
}
GroupList contains a list of Group.
func (*GroupList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupList.
func (*GroupList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GroupReference ¶
type GroupReference struct {
// Name is the name of the group.
// +optional
Name *string `json:"name,omitempty"`
// ID is the id of the group.
// +optional
ID *string `json:"id,omitempty"`
// LocalReference is a reference to a group in the same namespace.
// +optional
LocalRef *corev1.LocalObjectReference `json:"localRef,omitempty"`
}
+kubebuilder:validation:XValidation:rule="(has(self.id)?1:0)+(has(self.name)?1:0)+(has(self.localRef)?1:0)==1",message="Exactly one of id, name, or localRef must be set"
func (*GroupReference) DeepCopy ¶
func (in *GroupReference) DeepCopy() *GroupReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupReference.
func (*GroupReference) DeepCopyInto ¶
func (in *GroupReference) DeepCopyInto(out *GroupReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupSpec ¶
type GroupSpec struct {
// Name of the group.
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
}
GroupSpec defines the desired state of Group.
func (*GroupSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupSpec.
func (*GroupSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupStatus ¶
type GroupStatus struct {
// ObservedGeneration is the last reconciled generation.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Conditions holds the conditions for the Group.
// +listType=map
// +listMapKey=type
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// GroupID is the id of the created group.
// +optional
GroupID string `json:"groupID,omitempty"`
}
GroupStatus defines the observed state of Group.
func (*GroupStatus) DeepCopy ¶
func (in *GroupStatus) DeepCopy() *GroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupStatus.
func (*GroupStatus) DeepCopyInto ¶
func (in *GroupStatus) DeepCopyInto(out *GroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InjectionMode ¶
type InjectionMode string
InjectionMode defines how the sidecar is injected into the pod. +kubebuilder:validation:Enum=Sidecar;Container
const ( // InjectionModeSidecar injects the client as a sidecar container. InjectionModeSidecar InjectionMode = "Sidecar" // InjectionModeContainer injects the client as a regular container. InjectionModeContainer InjectionMode = "Container" )
type NetworkResource ¶
type NetworkResource struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +required
Spec NetworkResourceSpec `json:"spec"`
// +kubebuilder:default={"observedGeneration":-1}
Status NetworkResourceStatus `json:"status,omitempty"`
}
NetworkResource is the Schema for the networkresources API.
func (*NetworkResource) DeepCopy ¶
func (in *NetworkResource) DeepCopy() *NetworkResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkResource.
func (*NetworkResource) DeepCopyInto ¶
func (in *NetworkResource) DeepCopyInto(out *NetworkResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkResource) DeepCopyObject ¶
func (in *NetworkResource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NetworkResource) GetConditions ¶
func (n *NetworkResource) GetConditions() []metav1.Condition
GetConditions returns the status conditions of the object.
func (*NetworkResource) SetConditions ¶
func (n *NetworkResource) SetConditions(conditions []metav1.Condition)
SetConditions sets the status conditions on the object.
type NetworkResourceList ¶
type NetworkResourceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitzero"`
Items []NetworkResource `json:"items"`
}
NetworkResourceList contains a list of NetworkResource.
func (*NetworkResourceList) DeepCopy ¶
func (in *NetworkResourceList) DeepCopy() *NetworkResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkResourceList.
func (*NetworkResourceList) DeepCopyInto ¶
func (in *NetworkResourceList) DeepCopyInto(out *NetworkResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkResourceList) DeepCopyObject ¶
func (in *NetworkResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkResourceSpec ¶
type NetworkResourceSpec struct {
// NetworkRouterRef is a reference to the network and router where the resource will be created.
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
NetworkRouterRef CrossNamespaceReference `json:"networkRouterRef"`
// ServiceRef is a reference to the service to expose in the Network.
ServiceRef corev1.LocalObjectReference `json:"serviceRef"`
// Groups are references to groups that the resource will be a part of.
// +optional
Groups []GroupReference `json:"groups,omitempty"`
}
NetworkResourceSpec defines the desired state of NetworkResource.
func (*NetworkResourceSpec) DeepCopy ¶
func (in *NetworkResourceSpec) DeepCopy() *NetworkResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkResourceSpec.
func (*NetworkResourceSpec) DeepCopyInto ¶
func (in *NetworkResourceSpec) DeepCopyInto(out *NetworkResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkResourceStatus ¶
type NetworkResourceStatus struct {
// ObservedGeneration is the last reconciled generation.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Conditions holds the conditions for the NetworkResource.
// +listType=map
// +listMapKey=type
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// NetworkID is the id of the network the resource is created in.
// +optional
NetworkID string `json:"networkID,omitempty"`
// ResourceID is the id of the created resource.
// +optional
ResourceID string `json:"resourceID,omitempty"`
// DNSZoneID is the id of the zone the DNS record is created in.
// +optional
DNSZoneID string `json:"dnsZoneID,omitempty"`
// DNSRecordID is the id of the created DNS record.
// +optional
DNSRecordID string `json:"dnsRecordID,omitempty"`
}
NetworkResourceStatus defines the observed state of NetworkResource.
func (*NetworkResourceStatus) DeepCopy ¶
func (in *NetworkResourceStatus) DeepCopy() *NetworkResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkResourceStatus.
func (*NetworkResourceStatus) DeepCopyInto ¶
func (in *NetworkResourceStatus) DeepCopyInto(out *NetworkResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkRouter ¶
type NetworkRouter struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +required
Spec NetworkRouterSpec `json:"spec"`
// +kubebuilder:default={"observedGeneration":-1}
Status NetworkRouterStatus `json:"status,omitempty"`
}
NetworkRouter is the Schema for the networkrouters API.
func (*NetworkRouter) DeepCopy ¶
func (in *NetworkRouter) DeepCopy() *NetworkRouter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRouter.
func (*NetworkRouter) DeepCopyInto ¶
func (in *NetworkRouter) DeepCopyInto(out *NetworkRouter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkRouter) DeepCopyObject ¶
func (in *NetworkRouter) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NetworkRouter) GetConditions ¶
func (n *NetworkRouter) GetConditions() []metav1.Condition
GetConditions returns the status conditions of the object.
func (*NetworkRouter) SetConditions ¶
func (n *NetworkRouter) SetConditions(conditions []metav1.Condition)
SetConditions sets the status conditions on the object.
type NetworkRouterList ¶
type NetworkRouterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitzero"`
Items []NetworkRouter `json:"items"`
}
NetworkRouterList contains a list of NetworkRouter.
func (*NetworkRouterList) DeepCopy ¶
func (in *NetworkRouterList) DeepCopy() *NetworkRouterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRouterList.
func (*NetworkRouterList) DeepCopyInto ¶
func (in *NetworkRouterList) DeepCopyInto(out *NetworkRouterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkRouterList) DeepCopyObject ¶
func (in *NetworkRouterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkRouterSpec ¶
type NetworkRouterSpec struct {
// DNSZoneRef is a reference to the DNS zone used to create records for resources.
// +required
DNSZoneRef DNSZoneReference `json:"dnsZoneRef"`
// WorkloadOverride contains configuration that will override the default workload.
// +optional
WorkloadOverride *WorkloadOverride `json:"workloadOverride,omitempty"`
}
NetworkRouterSpec defines the desired state of NetworkRouter.
func (*NetworkRouterSpec) DeepCopy ¶
func (in *NetworkRouterSpec) DeepCopy() *NetworkRouterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRouterSpec.
func (*NetworkRouterSpec) DeepCopyInto ¶
func (in *NetworkRouterSpec) DeepCopyInto(out *NetworkRouterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkRouterStatus ¶
type NetworkRouterStatus struct {
// ObservedGeneration is the last reconciled generation.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Conditions holds the conditions for the NetworkRouter.
// +listType=map
// +listMapKey=type
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// RoutingPeerID is the id of the created routing peer.
// +optional
RoutingPeerID string `json:"routingPeerID,omitempty"`
// NetworkID is the id of the network the routing peer was created in.
// +optional
NetworkID string `json:"networkID,omitempty"`
}
NetworkRouterStatus defines the observed state of NetworkRouter.
func (*NetworkRouterStatus) DeepCopy ¶
func (in *NetworkRouterStatus) DeepCopy() *NetworkRouterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRouterStatus.
func (*NetworkRouterStatus) DeepCopyInto ¶
func (in *NetworkRouterStatus) DeepCopyInto(out *NetworkRouterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SetupKey ¶
type SetupKey struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +required
Spec SetupKeySpec `json:"spec"`
// +kubebuilder:default={"observedGeneration":-1}
Status SetupKeyStatus `json:"status,omitempty"`
}
SetupKey is the Schema for the setupkeys API.
func (*SetupKey) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SetupKey.
func (*SetupKey) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SetupKey) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SetupKey) GetConditions ¶
GetConditions returns the status conditions of the object.
func (SetupKey) SecretName ¶
func (*SetupKey) SetConditions ¶
SetConditions sets the status conditions on the object.
type SetupKeyList ¶
type SetupKeyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitzero"`
Items []SetupKey `json:"items"`
}
SetupKeyList contains a list of SetupKey.
func (*SetupKeyList) DeepCopy ¶
func (in *SetupKeyList) DeepCopy() *SetupKeyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SetupKeyList.
func (*SetupKeyList) DeepCopyInto ¶
func (in *SetupKeyList) DeepCopyInto(out *SetupKeyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SetupKeyList) DeepCopyObject ¶
func (in *SetupKeyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SetupKeySpec ¶
type SetupKeySpec struct {
// Name of the setup key.
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
// Ephemeral decides if peers added with the key are ephemeral or not.
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ephemeral is immutable"
Ephemeral bool `json:"ephemeral"`
// Duration sets how long the setup key is valid for.
// +optional
// +kubebuilder:validation:Type=string
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(m|h))+$"
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="duration is immutable"
Duration *metav1.Duration `json:"duration,omitempty"`
// AutoGroups are groups that will be automatically assigned to peers using setup key.
// +optional
AutoGroups []GroupReference `json:"autoGroups,omitempty"`
}
SetupKeySpec defines the desired state of SetupKey.
func (*SetupKeySpec) DeepCopy ¶
func (in *SetupKeySpec) DeepCopy() *SetupKeySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SetupKeySpec.
func (*SetupKeySpec) DeepCopyInto ¶
func (in *SetupKeySpec) DeepCopyInto(out *SetupKeySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SetupKeyStatus ¶
type SetupKeyStatus struct {
// ObservedGeneration is the last reconciled generation.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Conditions holds the conditions for the SetupKey.
// +listType=map
// +listMapKey=type
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// SetupKeyID is the id of the created setup key.
SetupKeyID string `json:"setupKeyID,omitempty"`
}
SetupKeyStatus defines the observed state of SetupKey.
func (*SetupKeyStatus) DeepCopy ¶
func (in *SetupKeyStatus) DeepCopy() *SetupKeyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SetupKeyStatus.
func (*SetupKeyStatus) DeepCopyInto ¶
func (in *SetupKeyStatus) DeepCopyInto(out *SetupKeyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SidecarProfile ¶
type SidecarProfile struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +required
Spec SidecarProfileSpec `json:"spec"`
// +kubebuilder:default={}
Status SidecarProfileStatus `json:"status,omitempty"`
}
SidecarProfile is the Schema for the sidecarprofiles API.
func (*SidecarProfile) DeepCopy ¶
func (in *SidecarProfile) DeepCopy() *SidecarProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SidecarProfile.
func (*SidecarProfile) DeepCopyInto ¶
func (in *SidecarProfile) DeepCopyInto(out *SidecarProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SidecarProfile) DeepCopyObject ¶
func (in *SidecarProfile) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SidecarProfile) GetConditions ¶
func (s *SidecarProfile) GetConditions() []metav1.Condition
GetConditions returns the status conditions of the object.
func (*SidecarProfile) SetConditions ¶
func (s *SidecarProfile) SetConditions(conditions []metav1.Condition)
SetConditions sets the status conditions on the object.
type SidecarProfileList ¶
type SidecarProfileList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitzero"`
Items []SidecarProfile `json:"items"`
}
SidecarProfileList contains a list of SidecarProfile
func (*SidecarProfileList) DeepCopy ¶
func (in *SidecarProfileList) DeepCopy() *SidecarProfileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SidecarProfileList.
func (*SidecarProfileList) DeepCopyInto ¶
func (in *SidecarProfileList) DeepCopyInto(out *SidecarProfileList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SidecarProfileList) DeepCopyObject ¶
func (in *SidecarProfileList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SidecarProfileSpec ¶
type SidecarProfileSpec struct {
// SetupKeyRef is the reference to the setup key used in the client.
// +required
SetupKeyRef corev1.LocalObjectReference `json:"setupKeyRef"`
// PodSelector determines which pods the profile should apply to.
// An empty slector means the profile will apply to all pods in the namespace.
// +optional
PodSelector *metav1.LabelSelector `json:"podSelector,omitempty"`
// InjectionMode defines whether the sidecar is injected as a native Kubernetes sidecar container or as a regular container.
// +kubebuilder:default=Sidecar
// +optional
InjectionMode InjectionMode `json:"injectionMode,omitempty"`
// ExtraDNSLabels assigns additional DNS names to peers beyond their default hostname.
// +optional
ExtraDNSLabels []string `json:"extraDNSLabels,omitempty"`
// +optional
ContainerOverride *ContainerOverride `json:"containerOverride,omitempty"`
}
SidecarProfileSpec defines the desired state of SidecarProfile.
func (*SidecarProfileSpec) DeepCopy ¶
func (in *SidecarProfileSpec) DeepCopy() *SidecarProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SidecarProfileSpec.
func (*SidecarProfileSpec) DeepCopyInto ¶
func (in *SidecarProfileSpec) DeepCopyInto(out *SidecarProfileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SidecarProfileStatus ¶
type SidecarProfileStatus struct {
// Conditions holds the conditions for the SidecarProfile.
// +listType=map
// +listMapKey=type
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
SidecarProfileStatus defines the observed state of SidecarProfile.
func (*SidecarProfileStatus) DeepCopy ¶
func (in *SidecarProfileStatus) DeepCopy() *SidecarProfileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SidecarProfileStatus.
func (*SidecarProfileStatus) DeepCopyInto ¶
func (in *SidecarProfileStatus) DeepCopyInto(out *SidecarProfileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadOverride ¶
type WorkloadOverride struct {
// Labels that will be added.
// +optional
Labels map[string]string `json:"labels"`
// Annotations that will be added.
// +optional
Annotations map[string]string `json:"annotations"`
// Replicas sets the amount of client replicas.
// +optional
Replicas *int32 `json:"replicas"`
// PodTemplate overrides the pod template.
// +optional
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
PodTemplate *corev1.PodTemplateSpec `json:"podTemplate"`
}
func (*WorkloadOverride) DeepCopy ¶
func (in *WorkloadOverride) DeepCopy() *WorkloadOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadOverride.
func (*WorkloadOverride) DeepCopyInto ¶
func (in *WorkloadOverride) DeepCopyInto(out *WorkloadOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.