v1

package
v0.0.0-...-b80f625 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package v1 contains API Schema definitions for the operator v1 API group +kubebuilder:object:generate=true +groupName=operator.kubearmor.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "operator.kubearmor.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ImageSpec

type ImageSpec struct {
	// +kubebuilder:validation:optional
	Image string `json:"image,omitempty"`
	// +kubebuilder:validation:optional
	// +kubebuilder:validation:Enum=Always;IfNotPresent;Never
	// +kubebuilder:default:=Always
	ImagePullPolicy string `json:"imagePullPolicy,omitempty"`
}

ImageSpec defines the image specifications

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

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

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

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

type KubeArmorConfig

type KubeArmorConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KubeArmorConfigSpec   `json:"spec,omitempty"`
	Status KubeArmorConfigStatus `json:"status,omitempty"`
}

+genclient +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" KubeArmorConfig is the Schema for the KubeArmorConfigs API

func (*KubeArmorConfig) DeepCopy

func (in *KubeArmorConfig) DeepCopy() *KubeArmorConfig

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

func (*KubeArmorConfig) DeepCopyInto

func (in *KubeArmorConfig) DeepCopyInto(out *KubeArmorConfig)

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

func (*KubeArmorConfig) DeepCopyObject

func (in *KubeArmorConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KubeArmorConfigList

type KubeArmorConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubeArmorConfig `json:"items"`
}

KubeArmorConfigList contains a list of KubeArmorConfig

func (*KubeArmorConfigList) DeepCopy

func (in *KubeArmorConfigList) DeepCopy() *KubeArmorConfigList

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

func (*KubeArmorConfigList) DeepCopyInto

func (in *KubeArmorConfigList) DeepCopyInto(out *KubeArmorConfigList)

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

func (*KubeArmorConfigList) DeepCopyObject

func (in *KubeArmorConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KubeArmorConfigSpec

type KubeArmorConfigSpec struct {

	// +kubebuilder:validation:optional
	DefaultFilePosture PostureType `json:"defaultFilePosture,omitempty"`
	// +kubebuilder:validation:optional
	DefaultCapabilitiesPosture PostureType `json:"defaultCapabilitiesPosture,omitempty"`
	// +kubebuilder:validation:optional
	DefaultNetworkPosture PostureType `json:"defaultNetworkPosture,omitempty"`
	// +kubebuilder:validation:optional
	DefaultVisibility string `json:"defaultVisibility,omitempty"`
	// +kubebuilder:validation:optional
	KubeArmorImage ImageSpec `json:"kubearmorImage,omitempty"`
	// +kubebuilder:validation:optional
	KubeArmorInitImage ImageSpec `json:"kubearmorInitImage,omitempty"`
	// +kubebuilder:validation:optional
	KubeArmorRelayImage ImageSpec `json:"kubearmorRelayImage,omitempty"`
	// +kubebuilder:validation:optional
	KubeArmorControllerImage ImageSpec `json:"kubearmorControllerImage,omitempty"`
	// +kubebuilder:validation:optional
	KubeRbacProxyImage ImageSpec `json:"kubeRbacProxyImage,omitempty"`
	// +kubebuilder:validation:optional
	Tls Tls `json:"tls,omitempty"`
	// +kubebuilder:validation:optional
	EnableStdOutLogs bool `json:"enableStdOutLogs,omitempty"`
	// +kubebuilder:validation:optional
	EnableStdOutAlerts bool `json:"enableStdOutAlerts,omitempty"`
	// +kubebuilder:validation:optional
	EnableStdOutMsgs bool `json:"enableStdOutMsgs,omitempty"`
	// +kubebuilder:validation:Optional
	SeccompEnabled bool `json:"seccompEnabled,omitempty"`
}

KubeArmorConfigSpec defines the desired state of KubeArmorConfig

func (*KubeArmorConfigSpec) DeepCopy

func (in *KubeArmorConfigSpec) DeepCopy() *KubeArmorConfigSpec

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

func (*KubeArmorConfigSpec) DeepCopyInto

func (in *KubeArmorConfigSpec) DeepCopyInto(out *KubeArmorConfigSpec)

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

type KubeArmorConfigStatus

type KubeArmorConfigStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// +kubebuilder:validation:optional
	Phase string `json:"phase,omitempty"`
	// +kubebuilder:validation:optional
	Message string `json:"message,omitempty"`
}

KubeArmorConfigStatus defines the observed state of KubeArmorConfig

func (*KubeArmorConfigStatus) DeepCopy

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

func (*KubeArmorConfigStatus) DeepCopyInto

func (in *KubeArmorConfigStatus) DeepCopyInto(out *KubeArmorConfigStatus)

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

type PostureType

type PostureType string

+kubebuilder:validation:Enum=audit;block

type Tls

type Tls struct {
	// +kubebuilder:validation:optional
	// +kubebuilder:default:=false
	Enable bool `json:"enable,omitempty"`
	// +kubebuilder:validation:optional
	RelayExtraDnsNames []string `json:"extraDnsNames,omitempty"`
	// +kubebuilder:validation:optional
	RelayExtraIpAddresses []string `json:"extraIpAddresses,omitempty"`
}

func (*Tls) DeepCopy

func (in *Tls) DeepCopy() *Tls

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

func (*Tls) DeepCopyInto

func (in *Tls) DeepCopyInto(out *Tls)

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