Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the mirrors v1alpha1 API group +kubebuilder:object:generate=true +groupName=mirrors.kts.studio
Index ¶
- Constants
- Variables
- type MirrorStatus
- type SecretMirror
- func (r *SecretMirror) ConvertFrom(srcRaw conversion.Hub) error
- func (r *SecretMirror) ConvertTo(dstRaw conversion.Hub) error
- func (in *SecretMirror) DeepCopy() *SecretMirror
- func (in *SecretMirror) DeepCopyInto(out *SecretMirror)
- func (in *SecretMirror) DeepCopyObject() runtime.Object
- func (r *SecretMirror) PollPeriodDuration() time.Duration
- func (r *SecretMirror) SetupWebhookWithManager(mgr ctrl.Manager) error
- type SecretMirrorDestination
- type SecretMirrorList
- type SecretMirrorSource
- type SecretMirrorSpec
- type SecretMirrorStatus
Constants ¶
const ( MirrorStatusPending MirrorStatus = "Pending" MirrorStatusActive = "Active" MirrorStatusError = "Error" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "mirrors.kts.studio", Version: "v1alpha1"} // 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 MirrorStatus ¶
type MirrorStatus string
type SecretMirror ¶
type SecretMirror struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SecretMirrorSpec `json:"spec,omitempty"` Status SecretMirrorStatus `json:"status,omitempty"` }
SecretMirror is the Schema for the secretmirrors API +kubebuilder:printcolumn:name="Source Name",type=string,JSONPath=`.spec.source.name` +kubebuilder:printcolumn:name="Dest Namespace",type=string,JSONPath=`.spec.destination.namespace` +kubebuilder:printcolumn:name="Dest Namespace Regex",type=string,JSONPath=`.spec.destination.namespaceRegex` +kubebuilder:printcolumn:name="Poll Period",type=integer,JSONPath=`.spec.pollPeriodSeconds` +kubebuilder:printcolumn:name="Mirror Status",type=string,JSONPath=`.status.mirrorStatus` +kubebuilder:printcolumn:name="Last Sync Time",type=string,JSONPath=`.status.lastSyncTime` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*SecretMirror) ConvertFrom ¶
func (r *SecretMirror) ConvertFrom(srcRaw conversion.Hub) error
func (*SecretMirror) ConvertTo ¶
func (r *SecretMirror) ConvertTo(dstRaw conversion.Hub) error
func (*SecretMirror) DeepCopy ¶
func (in *SecretMirror) DeepCopy() *SecretMirror
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretMirror.
func (*SecretMirror) DeepCopyInto ¶
func (in *SecretMirror) DeepCopyInto(out *SecretMirror)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretMirror) DeepCopyObject ¶
func (in *SecretMirror) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SecretMirror) PollPeriodDuration ¶
func (r *SecretMirror) PollPeriodDuration() time.Duration
func (*SecretMirror) SetupWebhookWithManager ¶
func (r *SecretMirror) SetupWebhookWithManager(mgr ctrl.Manager) error
type SecretMirrorDestination ¶
type SecretMirrorDestination struct { NamespaceRegex string `json:"namespaceRegex,omitempty"` Namespace string `json:"namespace,omitempty"` }
func (*SecretMirrorDestination) DeepCopy ¶
func (in *SecretMirrorDestination) DeepCopy() *SecretMirrorDestination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretMirrorDestination.
func (*SecretMirrorDestination) DeepCopyInto ¶
func (in *SecretMirrorDestination) DeepCopyInto(out *SecretMirrorDestination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretMirrorList ¶
type SecretMirrorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SecretMirror `json:"items"` }
SecretMirrorList contains a list of SecretMirror
func (*SecretMirrorList) DeepCopy ¶
func (in *SecretMirrorList) DeepCopy() *SecretMirrorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretMirrorList.
func (*SecretMirrorList) DeepCopyInto ¶
func (in *SecretMirrorList) DeepCopyInto(out *SecretMirrorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretMirrorList) DeepCopyObject ¶
func (in *SecretMirrorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretMirrorSource ¶
type SecretMirrorSource struct { // +kubebuilder:validation:Required Name string `json:"name,omitempty"` }
func (*SecretMirrorSource) DeepCopy ¶
func (in *SecretMirrorSource) DeepCopy() *SecretMirrorSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretMirrorSource.
func (*SecretMirrorSource) DeepCopyInto ¶
func (in *SecretMirrorSource) DeepCopyInto(out *SecretMirrorSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretMirrorSpec ¶
type SecretMirrorSpec struct { // +kubebuilder:validation:Required Source SecretMirrorSource `json:"source,omitempty"` Destination SecretMirrorDestination `json:"destination,omitempty"` PollPeriodSeconds int64 `json:"pollPeriodSeconds,omitempty"` }
SecretMirrorSpec defines the desired state of SecretMirror
func (*SecretMirrorSpec) DeepCopy ¶
func (in *SecretMirrorSpec) DeepCopy() *SecretMirrorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretMirrorSpec.
func (*SecretMirrorSpec) DeepCopyInto ¶
func (in *SecretMirrorSpec) DeepCopyInto(out *SecretMirrorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretMirrorStatus ¶
type SecretMirrorStatus struct { // +kubebuilder:default:=Pending // +kubebuilder:validation:Enum=Pending;Active;Error MirrorStatus MirrorStatus `json:"mirrorStatus,omitempty"` LastSyncTime metav1.Time `json:"lastSyncTime,omitempty"` }
SecretMirrorStatus defines the observed state of SecretMirror
func (*SecretMirrorStatus) DeepCopy ¶
func (in *SecretMirrorStatus) DeepCopy() *SecretMirrorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretMirrorStatus.
func (*SecretMirrorStatus) DeepCopyInto ¶
func (in *SecretMirrorStatus) DeepCopyInto(out *SecretMirrorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.