Documentation ¶
Overview ¶
Package v1alpha1 contains the v1alpha1 group Sample resources of the Stackrox provider. +kubebuilder:object:generate=true +groupName=cluster.stackrox.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Cluster
- func (in *Cluster) DeepCopy() *Cluster
- func (in *Cluster) DeepCopyInto(out *Cluster)
- func (in *Cluster) DeepCopyObject() runtime.Object
- func (mg *Cluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *Cluster) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *Cluster) GetProviderConfigReference() *xpv1.Reference
- func (mg *Cluster) GetProviderReference() *xpv1.Reference
- func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *Cluster) SetConditions(c ...xpv1.Condition)
- func (mg *Cluster) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Cluster) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Cluster) SetProviderReference(r *xpv1.Reference)
- func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ClusterList
- type ClusterObservation
- type ClusterParameters
- type ClusterSpec
- type ClusterStatus
- type SensorDeployment
Constants ¶
const ( Group = "cluster.stackrox.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
var ( ClusterKind = reflect.TypeOf(Cluster{}).Name() ClusterGroupKind = schema.GroupKind{Group: Group, Kind: ClusterKind}.String() ClusterKindAPIVersion = ClusterKind + "." + SchemeGroupVersion.String() ClusterGroupVersionKind = SchemeGroupVersion.WithKind(ClusterKind) )
Cluster type metadata.
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterSpec `json:"spec"` Status ClusterStatus `json:"status,omitempty"` }
A Cluster is an example API type. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,stackrox}
func (*Cluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cluster) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Cluster) GetCondition ¶
func (mg *Cluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Cluster.
func (*Cluster) GetDeletionPolicy ¶
func (mg *Cluster) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Cluster.
func (*Cluster) GetProviderConfigReference ¶
GetProviderConfigReference of this Cluster.
func (*Cluster) GetProviderReference ¶
GetProviderReference of this Cluster. Deprecated: Use GetProviderConfigReference.
func (*Cluster) GetPublishConnectionDetailsTo ¶
func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Cluster.
func (*Cluster) GetWriteConnectionSecretToReference ¶
func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Cluster.
func (*Cluster) SetConditions ¶
SetConditions of this Cluster.
func (*Cluster) SetDeletionPolicy ¶
func (mg *Cluster) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Cluster.
func (*Cluster) SetProviderConfigReference ¶
SetProviderConfigReference of this Cluster.
func (*Cluster) SetProviderReference ¶
SetProviderReference of this Cluster. Deprecated: Use SetProviderConfigReference.
func (*Cluster) SetPublishConnectionDetailsTo ¶
func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Cluster.
func (*Cluster) SetWriteConnectionSecretToReference ¶
func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Cluster.
type ClusterList ¶
type ClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Cluster `json:"items"` }
ClusterList contains a list of Cluster
func (*ClusterList) DeepCopy ¶
func (in *ClusterList) DeepCopy() *ClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
func (*ClusterList) DeepCopyInto ¶
func (in *ClusterList) DeepCopyInto(out *ClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterList) DeepCopyObject ¶
func (in *ClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterList) GetItems ¶
func (l *ClusterList) GetItems() []resource.Managed
GetItems of this ClusterList.
type ClusterObservation ¶
type ClusterObservation struct { AdmissionController bool `json:"admissionController,omitempty"` AdmissionControllerEvents bool `json:"admissionControllerEvents,omitempty"` AdmissionControllerUpdates bool `json:"admissionControllerUpdates,omitempty"` CentralAPIEndpoint string `json:"centralAPIEndpoint,omitempty"` // +kubebuilder:validation:Enum=UNSET_COLLECTION;NO_COLLECTION;KERNEL_MODULE;EBPF CollectionMethod string `json:"collectionMethod,omitempty"` CollectorImage string `json:"collectorImage,omitempty"` ID string `json:"id,omitempty"` InitBundleID string `json:"initBundleID,omitempty"` Labels map[string]string `json:"labels,omitempty"` MainImage string `json:"mainImage,omitempty"` // +kubebuilder:validation:Enum=MANAGER_TYPE_UNKNOWN;MANAGER_TYPE_MANUAL;MANAGER_TYPE_HELM_CHART;MANAGER_TYPE_KUBERNETES_OPERATOR ManagedBy string `json:"managedBy,omitempty"` MostRecentSensor SensorDeployment `json:"mostRecentSensor,omitempty"` Name string `json:"name,omitempty"` SlimCollector bool `json:"slimCollector,omitempty"` Tolerations bool `json:"tolerations,omitempty"` // +kubebuilder:validation:Enum=GENERIC_CLUSTER;KUBERNETES_CLUSTER;OPENSHIFT_CLUSTER;OPENSHIFT4_CLUSTER Type string `json:"type,omitempty"` }
ClusterObservation are the observable fields of a Cluster.
func (*ClusterObservation) DeepCopy ¶
func (in *ClusterObservation) DeepCopy() *ClusterObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterObservation.
func (*ClusterObservation) DeepCopyInto ¶
func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterParameters ¶
type ClusterParameters struct { // +kubebuilder:default=true // +kubebuilder:validation:Optional AdmissionController bool `json:"admissionController"` // +kubebuilder:default=false // +kubebuilder:validation:Optional AdmissionControllerEvents bool `json:"admissionControllerEvents"` // +kubebuilder:default=false // +kubebuilder:validation:Optional AdmissionControllerUpdates bool `json:"admissionControllerUpdates"` CentralAPIEndpoint string `json:"centralAPIEndpoint"` // +kubebuilder:default=EBPF // +kubebuilder:validation:Enum=UNSET_COLLECTION;NO_COLLECTION;KERNEL_MODULE;EBPF // +kubebuilder:validation:Optional CollectionMethod string `json:"collectionMethod"` // +kubebuilder:default=registry.redhat.io/advanced-cluster-security/rhacs-collector-rhel8 // +kubebuilder:validation:Optional CollectorImage string `json:"collectorImage"` // +kubebuilder:validation:Optional Labels map[string]string `json:"labels"` // +kubebuilder:default=registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8 // +kubebuilder:validation:Optional MainImage string `json:"mainImage"` Name string `json:"name"` // +kubebuilder:default=true // +kubebuilder:validation:Optional SlimCollector bool `json:"slimCollector"` // +kubebuilder:default=true // +kubebuilder:validation:Optional Tolerations bool `json:"tolerations"` // +kubebuilder:default=GENERIC_CLUSTER // +kubebuilder:validation:Enum=GENERIC_CLUSTER;KUBERNETES_CLUSTER;OPENSHIFT_CLUSTER;OPENSHIFT4_CLUSTER // +kubebuilder:validation:Optional Type string `json:"type"` }
ClusterParameters are the configurable fields of a Cluster.
func (*ClusterParameters) DeepCopy ¶
func (in *ClusterParameters) DeepCopy() *ClusterParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterParameters.
func (*ClusterParameters) DeepCopyInto ¶
func (in *ClusterParameters) DeepCopyInto(out *ClusterParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterSpec ¶
type ClusterSpec struct { xpv1.ResourceSpec `json:",inline"` ForProvider ClusterParameters `json:"forProvider"` }
A ClusterSpec defines the desired state of a Cluster.
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterStatus ¶
type ClusterStatus struct { xpv1.ResourceStatus `json:",inline"` AtProvider ClusterObservation `json:"atProvider,omitempty"` }
A ClusterStatus represents the observed state of a Cluster.
func (*ClusterStatus) DeepCopy ¶
func (in *ClusterStatus) DeepCopy() *ClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func (*ClusterStatus) DeepCopyInto ¶
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SensorDeployment ¶
type SensorDeployment struct { AppNamespace string `json:"appNamespace,omitempty"` AppNamespaceID string `json:"appNamespaceID,omitempty"` AppServiceAccountID string `json:"appServiceAccountID,omitempty"` DefaultNamespaceID string `json:"defaultNamespaceID,omitempty"` K8SNodeName string `json:"k8sNodeName,omitempty"` SystemNamespaceID string `json:"systemNamespaceID,omitempty"` }
SensorDeployment contains information about the last Sensor connected to the cluster.
func (*SensorDeployment) DeepCopy ¶
func (in *SensorDeployment) DeepCopy() *SensorDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SensorDeployment.
func (*SensorDeployment) DeepCopyInto ¶
func (in *SensorDeployment) DeepCopyInto(out *SensorDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.