Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the configdir v1alpha1 API group. +kubebuilder:object:generate=true +groupName=configdir.gke.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "configdir.gke.io", 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 ConfigDir ¶
type ConfigDir struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ConfigDirSpec `json:"spec,omitempty"`
Status ConfigDirStatus `json:"status,omitempty"`
}
ConfigDir is the Schema for the configdirs API
func (*ConfigDir) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigDir.
func (*ConfigDir) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigDir) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigDirList ¶
type ConfigDirList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ConfigDir `json:"items"`
}
ConfigDirList contains a list of ConfigDir
func (*ConfigDirList) DeepCopy ¶
func (in *ConfigDirList) DeepCopy() *ConfigDirList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigDirList.
func (*ConfigDirList) DeepCopyInto ¶
func (in *ConfigDirList) DeepCopyInto(out *ConfigDirList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigDirList) DeepCopyObject ¶
func (in *ConfigDirList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigDirSpec ¶
type ConfigDirSpec struct {
// The controller will use this selector to find all ConfigMap
// objects associated with this project config.
// +optional
FileContentSelector *metav1.LabelSelector `json:"fileContentSelector,omitempty"`
Files []FileItem `json:"files"`
}
ConfigDirSpec defines the desired state of ConfigDir
func (*ConfigDirSpec) DeepCopy ¶
func (in *ConfigDirSpec) DeepCopy() *ConfigDirSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigDirSpec.
func (*ConfigDirSpec) DeepCopyInto ¶
func (in *ConfigDirSpec) DeepCopyInto(out *ConfigDirSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigDirStatus ¶
type ConfigDirStatus struct {
// Conditions of the ConfigDir.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
ConfigDirStatus defines the observed state of ConfigDir
func (*ConfigDirStatus) DeepCopy ¶
func (in *ConfigDirStatus) DeepCopy() *ConfigDirStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigDirStatus.
func (*ConfigDirStatus) DeepCopyInto ¶
func (in *ConfigDirStatus) DeepCopyInto(out *ConfigDirStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigFile ¶
type ConfigFile struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ConfigFileSpec `json:"spec,omitempty"`
Status ConfigFileStatus `json:"status,omitempty"`
}
ConfigFile is the Schema for the configfiles API
func (*ConfigFile) DeepCopy ¶
func (in *ConfigFile) DeepCopy() *ConfigFile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigFile.
func (*ConfigFile) DeepCopyInto ¶
func (in *ConfigFile) DeepCopyInto(out *ConfigFile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigFile) DeepCopyObject ¶
func (in *ConfigFile) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigFileList ¶
type ConfigFileList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ConfigFile `json:"items"`
}
ConfigFileList contains a list of ConfigFile
func (*ConfigFileList) DeepCopy ¶
func (in *ConfigFileList) DeepCopy() *ConfigFileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigFileList.
func (*ConfigFileList) DeepCopyInto ¶
func (in *ConfigFileList) DeepCopyInto(out *ConfigFileList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigFileList) DeepCopyObject ¶
func (in *ConfigFileList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigFileSpec ¶
type ConfigFileSpec struct {
Files []FileContent `json:"files"`
}
ConfigFileSpec defines the desired state of ConfigFile
func (*ConfigFileSpec) DeepCopy ¶
func (in *ConfigFileSpec) DeepCopy() *ConfigFileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigFileSpec.
func (*ConfigFileSpec) DeepCopyInto ¶
func (in *ConfigFileSpec) DeepCopyInto(out *ConfigFileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigFileStatus ¶
type ConfigFileStatus struct {
// Conditions of the ConfigFile.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
ConfigFileStatus defines the observed state of ConfigFile
func (*ConfigFileStatus) DeepCopy ¶
func (in *ConfigFileStatus) DeepCopy() *ConfigFileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigFileStatus.
func (*ConfigFileStatus) DeepCopyInto ¶
func (in *ConfigFileStatus) DeepCopyInto(out *ConfigFileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileContent ¶
type FileContent struct {
Path string `json:"path"`
Content string `json:"content"` // base64 encoded
// +optional
Continued string `json:"continued,omitempty"`
}
FileContent defines the content of a file
func (*FileContent) DeepCopy ¶
func (in *FileContent) DeepCopy() *FileContent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileContent.
func (*FileContent) DeepCopyInto ¶
func (in *FileContent) DeepCopyInto(out *FileContent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileItem ¶
type FileItem struct {
Path string `json:"path"`
Source FileSource `json:"source"`
}
FileSpec defines a single file in the ConfigDir
func (*FileItem) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileItem.
func (*FileItem) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileSource ¶
type FileSource struct {
// +optional
Inline string `json:"inline,omitempty"`
// +optional
ConfigMapRef *corev1.ConfigMapKeySelector `json:"configMapRef,omitempty"`
// +optional
SecretRef *corev1.SecretKeySelector `json:"secretRef,omitempty"`
// +optional
FileContentKey string `json:"fileContentKey,omitempty"`
// +optional
URL *URLSource `json:"url,omitempty"`
}
FileSource defines the source of a file's content
func (*FileSource) DeepCopy ¶
func (in *FileSource) DeepCopy() *FileSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileSource.
func (*FileSource) DeepCopyInto ¶
func (in *FileSource) DeepCopyInto(out *FileSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type URLSource ¶
type URLSource struct {
Location string `json:"location"`
// +optional
SHA256 string `json:"sha256,omitempty"`
// Optional secret for auth headers (e.g., "Authorization: Bearer <token>")
// +optional
SecretRef *corev1.SecretKeySelector `json:"secretRef,omitempty"`
}
URLSource defines a URL source
func (*URLSource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new URLSource.
func (*URLSource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.