Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the sync v1 API group. +kubebuilder:object:generate=true +groupName=sync.nsync.dev +kubebuilder:validation:Optional
Index ¶
Constants ¶
const ( // GroupName is the group name used in this package GroupName = "sync.nsync.dev" // Version is the API version Version = "v1" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: GroupName, Version: Version} // 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 NamespaceSync ¶
type NamespaceSync struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NamespaceSyncSpec `json:"spec,omitempty"` Status NamespaceSyncStatus `json:"status,omitempty"` }
NamespaceSync is the Schema for the namespacesyncs API
func (*NamespaceSync) DeepCopy ¶
func (in *NamespaceSync) DeepCopy() *NamespaceSync
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSync.
func (*NamespaceSync) DeepCopyInto ¶
func (in *NamespaceSync) DeepCopyInto(out *NamespaceSync)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespaceSync) DeepCopyObject ¶
func (in *NamespaceSync) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NamespaceSyncList ¶
type NamespaceSyncList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NamespaceSync `json:"items"` }
NamespaceSyncList contains a list of NamespaceSync
func (*NamespaceSyncList) DeepCopy ¶
func (in *NamespaceSyncList) DeepCopy() *NamespaceSyncList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSyncList.
func (*NamespaceSyncList) DeepCopyInto ¶
func (in *NamespaceSyncList) DeepCopyInto(out *NamespaceSyncList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespaceSyncList) DeepCopyObject ¶
func (in *NamespaceSyncList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NamespaceSyncSpec ¶
type NamespaceSyncSpec struct { // SourceNamespace is the namespace to sync from SourceNamespace string `json:"sourceNamespace"` // TargetNamespaces is the list of namespaces to sync to // +optional TargetNamespaces []string `json:"targetNamespaces,omitempty"` // ConfigMapName is the name of the ConfigMap to sync // +optional ConfigMapName []string `json:"configMapName,omitempty"` // SecretName is the name of the Secret to sync // +optional SecretName []string `json:"secretName,omitempty"` // Exclude is the list of namespaces to exclude from sync // +optional Exclude []string `json:"exclude,omitempty"` // ResourceFilters defines filters for different resource types // +optional ResourceFilters *ResourceFilters `json:"resourceFilters,omitempty"` }
NamespaceSyncSpec defines the desired state of NamespaceSync
func (*NamespaceSyncSpec) DeepCopy ¶
func (in *NamespaceSyncSpec) DeepCopy() *NamespaceSyncSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSyncSpec.
func (*NamespaceSyncSpec) DeepCopyInto ¶
func (in *NamespaceSyncSpec) DeepCopyInto(out *NamespaceSyncSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceSyncStatus ¶
type NamespaceSyncStatus struct { // LastSyncTime is the last time the sync was performed LastSyncTime metav1.Time `json:"lastSyncTime,omitempty"` // SyncedNamespaces is a list of namespaces that were successfully synced SyncedNamespaces []string `json:"syncedNamespaces,omitempty"` // FailedNamespaces maps namespace names to error messages for failed syncs FailedNamespaces map[string]string `json:"failedNamespaces,omitempty"` // Conditions represent the latest available observations of an object's state // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // ObservedGeneration represents the .metadata.generation that the condition was set based upon // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
NamespaceSyncStatus defines the observed state of NamespaceSync
func (*NamespaceSyncStatus) DeepCopy ¶
func (in *NamespaceSyncStatus) DeepCopy() *NamespaceSyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSyncStatus.
func (*NamespaceSyncStatus) DeepCopyInto ¶
func (in *NamespaceSyncStatus) DeepCopyInto(out *NamespaceSyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceFilter ¶ added in v0.1.4
type ResourceFilter struct { // Include patterns for resources (if empty, all resources are included) // +optional Include []string `json:"include,omitempty"` // Exclude patterns for resources // +optional Exclude []string `json:"exclude,omitempty"` }
ResourceFilter defines include/exclude patterns for resources
func (*ResourceFilter) DeepCopy ¶ added in v0.1.4
func (in *ResourceFilter) DeepCopy() *ResourceFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceFilter.
func (*ResourceFilter) DeepCopyInto ¶ added in v0.1.4
func (in *ResourceFilter) DeepCopyInto(out *ResourceFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceFilters ¶ added in v0.1.4
type ResourceFilters struct { // Secrets defines filters for secrets // +optional Secrets *ResourceFilter `json:"secrets,omitempty"` // ConfigMaps defines filters for configmaps // +optional ConfigMaps *ResourceFilter `json:"configMaps,omitempty"` }
ResourceFilters defines filters for different resource types
func (*ResourceFilters) DeepCopy ¶ added in v0.1.4
func (in *ResourceFilters) DeepCopy() *ResourceFilters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceFilters.
func (*ResourceFilters) DeepCopyInto ¶ added in v0.1.4
func (in *ResourceFilters) DeepCopyInto(out *ResourceFilters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.