v1

package
v0.0.0-...-4af7bd8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the monitor v1 API group +kubebuilder:object:generate=true +groupName=monitor.k8s.webcenter.fr

Index

Constants

View Source
const (
	MonitoringAnnotationKey = "monitor.k8s.webcenter.fr"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "monitor.k8s.webcenter.fr", 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

func SetupCentreonServiceGroupIndexer

func SetupCentreonServiceGroupIndexer(k8sManager manager.Manager) (err error)

SetupCentreonServiceIndexer setup indexer for CentreonService

func SetupCentreonServiceGroupWebhookWithManager

func SetupCentreonServiceGroupWebhookWithManager(mgr ctrl.Manager, client client.Client) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func SetupCentreonServiceIndexer

func SetupCentreonServiceIndexer(k8sManager manager.Manager) (err error)

SetupCentreonServiceIndexer setup indexer for CentreonService

func SetupCentreonServiceWebhookWithManager

func SetupCentreonServiceWebhookWithManager(mgr ctrl.Manager, client client.Client) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func SetupCertificateIndexer

func SetupCertificateIndexer(k8sManager manager.Manager) (err error)

SetupCertificateIndexer setup indexer for secret (certificate)

func SetupIngressIndexer

func SetupIngressIndexer(k8sManager manager.Manager) (err error)

SetupCertificateIndexer setup indexer for secret (certificate)

func SetupNamespaceIndexer

func SetupNamespaceIndexer(k8sManager manager.Manager) (err error)

SetupCertificateIndexer setup indexer for secret (certificate)

func SetupNodeIndexer

func SetupNodeIndexer(k8sManager manager.Manager) (err error)

SetupCertificateIndexer setup indexer for secret (certificate)

func SetupPlatformIndexer

func SetupPlatformIndexer(k8sManager manager.Manager) (err error)

SetupPlatformIndexer setup indexer for platform

func SetupPlatformWebhookWithManager

func SetupPlatformWebhookWithManager(mgr ctrl.Manager, client client.Client) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func SetupRouteIndexer

func SetupRouteIndexer(k8sManager manager.Manager) (err error)

SetupCertificateIndexer setup indexer for secret (certificate)

func SetupTemplateWebhookWithManager

func SetupTemplateWebhookWithManager(mgr ctrl.Manager, client client.Client) error

SetupWebhookWithManager will setup the manager to manage the webhooks

Types

type CentreonService

type CentreonService struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CentreonServiceSpec   `json:"spec,omitempty"`
	Status CentreonServiceStatus `json:"status,omitempty"`
}

CentreonService is the Schema for the centreonservices API +operator-sdk:csv:customresourcedefinitions:resources={{None,None,None}} +kubebuilder:resource:shortName=mcs +kubebuilder:printcolumn:name="Sync",type="boolean",JSONPath=".status.isSync" +kubebuilder:printcolumn:name="Error",type="boolean",JSONPath=".status.isOnError",description="Is on error" +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status",description="health" +kubebuilder:printcolumn:name="Host",type="string",JSONPath=".status.host" +kubebuilder:printcolumn:name="Service",type="string",JSONPath=".status.serviceName" +kubebuilder:printcolumn:name="Platform",type="string",JSONPath=".status.platformRef" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*CentreonService) DeepCopy

func (in *CentreonService) DeepCopy() *CentreonService

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonService.

func (*CentreonService) DeepCopyInto

func (in *CentreonService) DeepCopyInto(out *CentreonService)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CentreonService) DeepCopyObject

func (in *CentreonService) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CentreonService) GetExternalName

func (o *CentreonService) GetExternalName() string

GetExternalName return the role name If name is empty, it use the ressource name

func (*CentreonService) GetPlatform

func (o *CentreonService) GetPlatform() string

func (*CentreonService) GetStatus

func (o *CentreonService) GetStatus() object.RemoteObjectStatus

GetStatus return the status object

func (*CentreonService) IsValid

func (c *CentreonService) IsValid() bool

IsValid check Centreon service is valid for Centreon

func (*CentreonService) ValidateCreate

func (r *CentreonService) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*CentreonService) ValidateDelete

func (r *CentreonService) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*CentreonService) ValidateUpdate

func (r *CentreonService) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type CentreonServiceGroup

type CentreonServiceGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CentreonServiceGroupSpec   `json:"spec,omitempty"`
	Status CentreonServiceGroupStatus `json:"status,omitempty"`
}

CentreonServiceGroup is the Schema for the centreonservicegroups API +operator-sdk:csv:customresourcedefinitions:resources={{None,None,None}} +kubebuilder:resource:shortName=mcsg +kubebuilder:printcolumn:name="Sync",type="boolean",JSONPath=".status.isSync" +kubebuilder:printcolumn:name="Error",type="boolean",JSONPath=".status.isOnError",description="Is on error" +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status",description="health" +kubebuilder:printcolumn:name="ServiceGroup",type="string",JSONPath=".status.serviceGroupName" +kubebuilder:printcolumn:name="Platform",type="string",JSONPath=".status.platformRef" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*CentreonServiceGroup) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceGroup.

func (*CentreonServiceGroup) DeepCopyInto

func (in *CentreonServiceGroup) DeepCopyInto(out *CentreonServiceGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CentreonServiceGroup) DeepCopyObject

func (in *CentreonServiceGroup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CentreonServiceGroup) GetExternalName

func (o *CentreonServiceGroup) GetExternalName() string

GetExternalName return the role name If name is empty, it use the ressource name

func (*CentreonServiceGroup) GetPlatform

func (o *CentreonServiceGroup) GetPlatform() string

func (*CentreonServiceGroup) GetStatus

GetStatus return the status object

func (*CentreonServiceGroup) IsValid

func (h *CentreonServiceGroup) IsValid() bool

IsValid check Centreon service is valid for Centreon

func (*CentreonServiceGroup) ValidateCreate

func (r *CentreonServiceGroup) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*CentreonServiceGroup) ValidateDelete

func (r *CentreonServiceGroup) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*CentreonServiceGroup) ValidateUpdate

func (r *CentreonServiceGroup) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type CentreonServiceGroupList

type CentreonServiceGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CentreonServiceGroup `json:"items"`
}

CentreonServiceGroupList contains a list of CentreonServiceGroup

func (*CentreonServiceGroupList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceGroupList.

func (*CentreonServiceGroupList) DeepCopyInto

func (in *CentreonServiceGroupList) DeepCopyInto(out *CentreonServiceGroupList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CentreonServiceGroupList) DeepCopyObject

func (in *CentreonServiceGroupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CentreonServiceGroupList) GetItems

func (o *CentreonServiceGroupList) GetItems() []client.Object

GetItems permit to get items

type CentreonServiceGroupSpec

type CentreonServiceGroupSpec struct {

	// PlatformRef is the target platform where to create serviceGroup
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	PlatformRef string `json:"platformRef,omitempty"`

	// The serviceGroup name
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Name string `json:"name"`

	// The serviceGroup description
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Description string `json:"description"`

	// Activate or disable service
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Activated bool `json:"activate,omitempty"`

	// Policy define the policy that controller need to respect when it reconcile resource
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Policy shared.Policy `json:"policy,omitempty"`
}

CentreonServiceGroupSpec defines the desired state of CentreonServiceGroup +k8s:openapi-gen=true

func (*CentreonServiceGroupSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceGroupSpec.

func (*CentreonServiceGroupSpec) DeepCopyInto

func (in *CentreonServiceGroupSpec) DeepCopyInto(out *CentreonServiceGroupSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CentreonServiceGroupStatus

type CentreonServiceGroupStatus struct {
	apis.BasicRemoteObjectStatus `json:",inline"`

	// The service group name
	// +operator-sdk:csv:customresourcedefinitions:type=status
	ServiceGroupName string `json:"serviceGroupName,omitempty"`

	// The platform ref
	// +operator-sdk:csv:customresourcedefinitions:type=status
	PlatformRef string `json:"platformRef,omitempty"`
}

CentreonServiceGroupStatus defines the observed state of CentreonServiceGroup

func (*CentreonServiceGroupStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceGroupStatus.

func (*CentreonServiceGroupStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CentreonServiceList

type CentreonServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CentreonService `json:"items"`
}

CentreonServiceList contains a list of CentreonService

func (*CentreonServiceList) DeepCopy

func (in *CentreonServiceList) DeepCopy() *CentreonServiceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceList.

func (*CentreonServiceList) DeepCopyInto

func (in *CentreonServiceList) DeepCopyInto(out *CentreonServiceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CentreonServiceList) DeepCopyObject

func (in *CentreonServiceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CentreonServiceList) GetItems

func (o *CentreonServiceList) GetItems() []client.Object

GetItems permit to get items

type CentreonServiceSpec

type CentreonServiceSpec struct {

	// PlatformRef is the target platform where to create service
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	PlatformRef string `json:"platformRef,omitempty"`

	// The service name
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Name string `json:"name"`

	// The host to attach the service
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Host string `json:"host"`

	// The service templates
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Template string `json:"template,omitempty"`

	// The list of service groups
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Groups []string `json:"groups,omitempty"`

	// The map of macros
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Macros map[string]string `json:"macros,omitempty"`

	// The list of arguments
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Arguments []string `json:"arguments,omitempty"`

	// The list of categories
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Categories []string `json:"categories,omitempty"`

	// The check command
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	CheckCommand string `json:"checkCommand,omitempty"`

	// The normal check interval
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	NormalCheckInterval string `json:"normalCheckInterval,omitempty"`

	// The retry check interval
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	RetryCheckInterval string `json:"retryCheckInterval,omitempty"`

	// The max check attemps
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	MaxCheckAttempts string `json:"maxCheckAttempts,omitempty"`

	// The active check enable
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	ActiveCheckEnabled *bool `json:"activeChecksEnabled,omitempty"`

	// The passive check enable
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	PassiveCheckEnabled *bool `json:"passiveChecksEnabled,omitempty"`

	// Activate or disable service
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Activated bool `json:"activate,omitempty"`

	// Policy define the policy that controller need to respect when it reconcile resource
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Policy shared.Policy `json:"policy,omitempty"`
}

CentreonServiceSpec defines the desired state of CentreonService +k8s:openapi-gen=true

func (*CentreonServiceSpec) DeepCopy

func (in *CentreonServiceSpec) DeepCopy() *CentreonServiceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceSpec.

func (*CentreonServiceSpec) DeepCopyInto

func (in *CentreonServiceSpec) DeepCopyInto(out *CentreonServiceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CentreonServiceStatus

type CentreonServiceStatus struct {
	apis.BasicRemoteObjectStatus `json:",inline"`

	// The host affected to service on Centreon
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Host string `json:"host,omitempty"`

	// The service name
	// +operator-sdk:csv:customresourcedefinitions:type=status
	ServiceName string `json:"serviceName,omitempty"`

	// The platform ref
	// +operator-sdk:csv:customresourcedefinitions:type=status
	PlatformRef string `json:"platformRef,omitempty"`
}

CentreonServiceStatus defines the observed state of CentreonService

func (*CentreonServiceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CentreonServiceStatus.

func (*CentreonServiceStatus) DeepCopyInto

func (in *CentreonServiceStatus) DeepCopyInto(out *CentreonServiceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Platform

type Platform struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PlatformSpec   `json:"spec,omitempty"`
	Status PlatformStatus `json:"status,omitempty"`
}

Platform is the Schema for the platforms API +operator-sdk:csv:customresourcedefinitions:resources={{Secret,v1,monitoring-credentials}} +kubebuilder:printcolumn:name="Sync",type="boolean",JSONPath=".status.isSync" +kubebuilder:printcolumn:name="Error",type="boolean",JSONPath=".status.isOnError",description="Is on error" +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status",description="health" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Platform) DeepCopy

func (in *Platform) DeepCopy() *Platform

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Platform.

func (*Platform) DeepCopyInto

func (in *Platform) DeepCopyInto(out *Platform)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Platform) DeepCopyObject

func (in *Platform) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Platform) GetExternalName

func (o *Platform) GetExternalName() string

GetExternalName return the role name If name is empty, it use the ressource name

func (*Platform) GetStatus

func (h *Platform) GetStatus() object.RemoteObjectStatus

GetStatus implement the object.MultiPhaseObject

func (*Platform) ValidateCreate

func (r *Platform) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Platform) ValidateDelete

func (r *Platform) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Platform) ValidateUpdate

func (r *Platform) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PlatformList

type PlatformList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Platform `json:"items"`
}

PlatformList contains a list of Platform

func (*PlatformList) DeepCopy

func (in *PlatformList) DeepCopy() *PlatformList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformList.

func (*PlatformList) DeepCopyInto

func (in *PlatformList) DeepCopyInto(out *PlatformList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PlatformList) DeepCopyObject

func (in *PlatformList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PlatformSpec

type PlatformSpec struct {

	// IsDefault is set to tru to use this plateform when is not specify on resource to create
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	IsDefault bool `json:"isDefault"`

	// PlatformType is the platform type.
	// It support only `centreon` at this time
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +kubebuilder:validation:Enum=centreon
	PlatformType string `json:"type"`

	// CentreonSettings is the setting for Centreon plateform type
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	CentreonSettings *PlatformSpecCentreonSettings `json:"centreonSettings,omitempty"`
}

PlatformSpec defines the desired state of Platform +k8s:openapi-gen=true

func (*PlatformSpec) DeepCopy

func (in *PlatformSpec) DeepCopy() *PlatformSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformSpec.

func (*PlatformSpec) DeepCopyInto

func (in *PlatformSpec) DeepCopyInto(out *PlatformSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PlatformSpecCentreonSettings

type PlatformSpecCentreonSettings struct {
	// URL is the full URL to access on Centreon API
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	URL string `json:"url"`

	// SelfSignedCertificat is true if you shouldn't check Centreon API certificate
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	SelfSignedCertificate bool `json:"selfSignedCertificat"`

	// Secret is the secret that store the username and password to access on Centreon API
	// It need to have `username` and `password` key
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Secret string `json:"secret"`
}

func (*PlatformSpecCentreonSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformSpecCentreonSettings.

func (*PlatformSpecCentreonSettings) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PlatformStatus

type PlatformStatus struct {
	apis.BasicRemoteObjectStatus `json:",inline"`
}

PlatformStatus defines the observed state of Platform

func (*PlatformStatus) DeepCopy

func (in *PlatformStatus) DeepCopy() *PlatformStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformStatus.

func (*PlatformStatus) DeepCopyInto

func (in *PlatformStatus) DeepCopyInto(out *PlatformStatus)

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"`
}

Template is the Schema for the templates API +operator-sdk:csv:customresourcedefinitions:resources={{CentreonService,v1,centreonService},{CentreonServiceGroup,v1,centreonServiceGroup}} +kubebuilder:resource:shortName=mtmpl +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Template) DeepCopy

func (in *Template) DeepCopy() *Template

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.

func (*Template) DeepCopyInto

func (in *Template) DeepCopyInto(out *Template)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Template) DeepCopyObject

func (in *Template) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Template) ValidateCreate

func (r *Template) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Template) ValidateDelete

func (r *Template) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Template) ValidateUpdate

func (r *Template) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

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 {

	// Deprecated: Use full template instead to set the type
	// Type is the object type it generate from template
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Type string `json:"type"`

	// Deprecated: Use the full template instead to set the name
	// Name is the resource name generated from template
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	Name string `json:"name,omitempty"`

	// Template is the template to render. You can use the golang template syntaxe with sprig function
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	Template string `json:"template"`

	// TemplateDelimiter is the delimiter to use when render template
	// It can be usefull if you use helm on top of them
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +optional
	TemplateDelimiter *TemplateTemplateDelimiter `json:"templateDelimiter,omitempty"`
}

TemplateSpec defines the desired state of Template +k8s:openapi-gen=true

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 {

	// Fake status to generate bundle manifest without error
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Status string `json:"status,omitempty"`
}

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.

type TemplateTemplateDelimiter

type TemplateTemplateDelimiter struct {
	// Right is the right delimiter
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +kubebuilder:validation:MinLength:=1
	Right string `json:"right"`

	// Left is the left delimiter
	// +operator-sdk:csv:customresourcedefinitions:type=spec
	// +kubebuilder:validation:MinLength:=1
	Left string `json:"left"`
}

func (*TemplateTemplateDelimiter) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateTemplateDelimiter.

func (*TemplateTemplateDelimiter) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL