Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the templating.flanksource.com v1 API group +kubebuilder:object:generate=true +groupName=templating.flanksource.com
Index ¶
Constants ¶
const ApiVersion = "templating.flanksource.com/v1"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "templating.flanksource.com", Version: "v1"} // 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 CopyToNamespaces ¶ added in v0.1.6
type CopyToNamespaces struct {
Namespaces []string `json:"namespaces,omitempty"`
NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
}
func (*CopyToNamespaces) DeepCopy ¶ added in v0.1.6
func (in *CopyToNamespaces) DeepCopy() *CopyToNamespaces
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CopyToNamespaces.
func (*CopyToNamespaces) DeepCopyInto ¶ added in v0.1.6
func (in *CopyToNamespaces) DeepCopyInto(out *CopyToNamespaces)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepository ¶ added in v0.6.0
type GitRepository struct {
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
Glob string `json:"glob,omitempty"`
}
func (*GitRepository) DeepCopy ¶ added in v0.6.0
func (in *GitRepository) DeepCopy() *GitRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepository.
func (*GitRepository) DeepCopyInto ¶ added in v0.6.0
func (in *GitRepository) DeepCopyInto(out *GitRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JsonPatch ¶
type JsonPatch struct {
Object metav1.TypeMeta `json:"object,omitempty"`
Patch string `json:"patch,omitempty"`
}
func (*JsonPatch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JsonPatch.
func (*JsonPatch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectSelector ¶
type ObjectSelector struct {
Kind string `json:"kind,omitempty"`
APIVersion string `json:"apiVersion,omitempty"`
}
func (*ObjectSelector) DeepCopy ¶
func (in *ObjectSelector) DeepCopy() *ObjectSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectSelector.
func (*ObjectSelector) DeepCopyInto ¶
func (in *ObjectSelector) DeepCopyInto(out *ObjectSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type REST ¶ added in v0.5.0
type REST struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec RESTSpec `json:"spec"`
// +kubebuilder:pruning:PreserveUnknownFields
Status map[string]string `json:"status,omitempty"`
}
+kubebuilder:object:root=true +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:scope="Cluster" +kubebuilder:subresource:status REST is the Schema for the rest API
func (*REST) DeepCopy ¶ added in v0.5.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new REST.
func (*REST) DeepCopyInto ¶ added in v0.5.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*REST) DeepCopyObject ¶ added in v0.5.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RESTAction ¶ added in v0.5.0
type RESTAction struct {
// Method represents HTTP method to be used for the request. Example: POST
Method string `json:"method,omitempty"`
// URL represents the URL used for the request
// +optional
URL string `json:"url,omitempty"`
// Body represents the HTTP Request body
// +optional
Body string `json:"body,omitempty"`
// Status defines the status fields which will be updated based on response status
// +optional
Status map[string]string `json:"status,omitempty"`
}
func (*RESTAction) DeepCopy ¶ added in v0.5.0
func (in *RESTAction) DeepCopy() *RESTAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RESTAction.
func (*RESTAction) DeepCopyInto ¶ added in v0.5.0
func (in *RESTAction) DeepCopyInto(out *RESTAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RESTAuth ¶ added in v0.5.0
type RESTAuth struct {
// Username represents the HTTP Basic Auth username
Username kommons.EnvVarSource `json:"username,omitempty"`
// Password represents the HTTP Basic Auth password
Password kommons.EnvVarSource `json:"password,omitempty"`
// Namespace where secret / config map is present
Namespace string `json:"namespace,omitempty"`
}
func (*RESTAuth) DeepCopy ¶ added in v0.5.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RESTAuth.
func (*RESTAuth) DeepCopyInto ¶ added in v0.5.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RESTList ¶ added in v0.5.0
type RESTList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []REST `json:"items"`
}
TemplateList contains a list of Template
func (*RESTList) DeepCopy ¶ added in v0.5.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RESTList.
func (*RESTList) DeepCopyInto ¶ added in v0.5.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RESTList) DeepCopyObject ¶ added in v0.5.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RESTSpec ¶ added in v0.5.0
type RESTSpec struct {
// URL represents the URL address used to send requests
URL string `json:"url,omitempty"`
// Auth may be used for http basic authentication
// +optional
Auth *RESTAuth `json:"auth,omitempty"`
// Headers are optional http headers to be sent on the request
// +optional
Headers map[string]string `json:"headers,omitempty"`
// Update defines the payload to be sent when CRD item is updated
Update RESTAction `json:"update,omitempty"`
// Remove defines the payload to be sent when CRD item is deleted
Remove RESTAction `json:"remove,omitempty"`
}
RESTSpec defines the desired state of REST
func (*RESTSpec) DeepCopy ¶ added in v0.5.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RESTSpec.
func (*RESTSpec) DeepCopyInto ¶ added in v0.5.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSelector ¶
type ResourceSelector struct {
GitRepository *GitRepository `json:"gitRepository,omitempty"`
LabelSelector metav1.LabelSelector `json:"labelSelector,omitempty"`
NamespaceSelector metav1.LabelSelector `json:"namespaceSelector,omitempty"`
AnnotationSelector map[string]string `json:"annotationSelector,omitempty"`
FieldSelector string `json:"fieldSelector,omitempty"`
APIVersion string `json:"apiVersion,omitempty"`
Kind string `json:"kind,omitempty"`
}
func (*ResourceSelector) DeepCopy ¶
func (in *ResourceSelector) DeepCopy() *ResourceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSelector.
func (*ResourceSelector) DeepCopyInto ¶
func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Template ¶
type Template struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TemplateSpec `json:"spec,omitempty"`
Status TemplateStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:scope="Cluster" Template is the Schema for the templates API
func (*Template) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.
func (*Template) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Template) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TemplateList ¶
type TemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Template `json:"items"`
}
TemplateList contains a list of Template
func (*TemplateList) DeepCopy ¶
func (in *TemplateList) DeepCopy() *TemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateList.
func (*TemplateList) DeepCopyInto ¶
func (in *TemplateList) DeepCopyInto(out *TemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TemplateList) DeepCopyObject ¶
func (in *TemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TemplateSpec ¶
type TemplateSpec struct {
// Source selects objects on which to use as a templating object
Source ResourceSelector `json:"source,omitempty"`
// Target optionally allows to lookup related resources to patch, defaults
// to the source object selected
// +optional
PatchTarget ResourceSelector `json:"patchTarget,omitempty"`
// Resources is a list of new resources to create for each source object found
// Must specify at least resources or patches or both
// +optional
Resources []runtime.RawExtension `json:"resources,omitempty"`
// Resources template is a template of resources to be created for each source object found
// +optional
ResourcesTemplate string `json:"resourcesTemplate,omitempty"`
// Patches is list of strategic merge patches to apply to to the targets
// Must specify at least resources or patches or both
// +optional
Patches []string `json:"patches,omitempty"`
JsonPatches []JsonPatch `json:"jsonPatches,omitempty"`
// Copy this object to other namespaces
CopyToNamespaces *CopyToNamespaces `json:"copyToNamespaces,omitempty"`
// Onceoff will not apply templating more than once (usually at admission stage)
Onceoff bool `json:"onceoff,omitempty"`
}
TemplateSpec defines the desired state of Template
func (*TemplateSpec) DeepCopy ¶
func (in *TemplateSpec) DeepCopy() *TemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateSpec.
func (*TemplateSpec) DeepCopyInto ¶
func (in *TemplateSpec) DeepCopyInto(out *TemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateStatus ¶
type TemplateStatus struct {
}
TemplateStatus defines the observed state of Template
func (*TemplateStatus) DeepCopy ¶
func (in *TemplateStatus) DeepCopy() *TemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateStatus.
func (*TemplateStatus) DeepCopyInto ¶
func (in *TemplateStatus) DeepCopyInto(out *TemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.