v1beta1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Overview

Package v1beta1 contains API Schema definitions for the telemetry v1beta1 API group +kubebuilder:object:generate=true +groupName=telemetry.openstack.org

Index

Constants

View Source
const (
	// CeilometerCentralContainerImage - default fall-back image for Ceilometer Central
	CeilometerCentralContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-central:current-podified"
	// CeilometerCentralInitContainerImage - default fall-back image for Ceilometer Central Init
	CeilometerCentralInitContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-central:current-podified"
	// CeilometerNotificationContainerImage - default fall-back image for Ceilometer Notifcation
	CeilometerNotificationContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-notification:current-podified"
	// CeilometerSgCoreContainerImage - default fall-back image for Ceilometer SgCore
	CeilometerSgCoreContainerImage = "quay.io/infrawatch/sg-core:latest"
)
View Source
const (
	// CeilometerComputeContainerImage - default fall-back image for Ceilometer Compute
	CeilometerComputeContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-compute:current-podified"
	// CeilometerComputeInitContainerImage - default fall-back image for Ceilometer Compute Init
	CeilometerComputeInitContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-compute:current-podified"
	// CeilometerIpmiContainerImage - default fall-back image for Ceilometer Ipmi
	CeilometerIpmiContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-ipmi:current-podified"
)
View Source
const (
	// TelemetryRabbitMqTransportURLReadyCondition Status=True condition which indicates if the RabbitMQ TransportURLUrl is ready
	TelemetryRabbitMqTransportURLReadyCondition condition.Type = "TelemetryRabbitMqTransportURLReady"

	// CeilometerCentralReadyCondition Status=True condition which indicates if the CeilometerCentral is configured and operational
	CeilometerCentralReadyCondition condition.Type = "CeilometerCentralReady"

	// CeilometerComputeReadyCondition Status=True condition which indicates if the CeilometerCompute is configured and operational
	CeilometerComputeReadyCondition condition.Type = "CeilometerComputeReady"

	// InfraComputeReadyCondition Status=True condition which indicates if the CeilometerCompute is configured and operational
	InfraComputeReadyCondition condition.Type = "InfraComputeReady"
)

Telemetry Condition Types used by API objects.

View Source
const (
	//
	// TelemetryRabbitMqTransportURLReady condition messages
	//
	// TelemetryRabbitMqTransportURLReadyInitMessage
	TelemetryRabbitMqTransportURLReadyInitMessage = "TelemetryRabbitMqTransportURL not started"

	// TelemetryRabbitMqTransportURLReadyRunningMessage
	TelemetryRabbitMqTransportURLReadyRunningMessage = "TelemetryRabbitMqTransportURL creation in progress"

	// TelemetryRabbitMqTransportURLReadyMessage
	TelemetryRabbitMqTransportURLReadyMessage = "TelemetryRabbitMqTransportURL successfully created"

	// TelemetryRabbitMqTransportURLReadyErrorMessage
	TelemetryRabbitMqTransportURLReadyErrorMessage = "TelemetryRabbitMqTransportURL error occured %s"

	//
	// CeilometerCentralReady condition messages
	//
	// CeilometerCentralReadyInitMessage
	CeilometerCentralReadyInitMessage = "CeilometerCentral not started"

	// CeilometerCentralReadyErrorMessage
	CeilometerCentralReadyErrorMessage = "CeilometerCentral error occured %s"

	//
	// CeilometerComputeReady condition messages
	//
	// CeilometerComputeReadyInitMessage
	CeilometerComputeReadyInitMessage = "CeilometerCompute not started"

	// CeilometerComputeReadyErrorMessage
	CeilometerComputeReadyErrorMessage = "CeilometerCompute error occured %s"

	//
	// InfraComputeReady condition messages
	//
	// InfraComputeReadyInitMessage
	InfraComputeReadyInitMessage = "InfraCompute not started"

	// InfraComputeReadyErrorMessage
	InfraComputeReadyErrorMessage = "InfraCompute error occured %s"
)

Common Messages used by API objects.

View Source
const (
	// NodeExporterContainerImage - default fall-back image for node_exporter
	// NodeExporterContainerImage = "registry.redhat.io/openshift4/ose-prometheus-node-exporter:v4.13"
	NodeExporterContainerImage = "quay.io/prometheus/node-exporter:v1.5.0"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "telemetry.openstack.org", Version: "v1beta1"}

	// 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 SetupCeilometerCentralDefaults

func SetupCeilometerCentralDefaults(defaults CeilometerCentralDefaults)

SetupCeilometerCentralDefaults - initialize CeilometerCentral spec defaults for use with either internal or external webhooks

func SetupCeilometerComputeDefaults

func SetupCeilometerComputeDefaults(defaults CeilometerComputeDefaults)

SetupCeilometerComputeDefaults - initialize CeilometerCompute spec defaults for use with either internal or external webhooks

func SetupDefaultsCeilometerCentral

func SetupDefaultsCeilometerCentral()

SetupDefaultsCeilometerCentral - initializes any CRD field defaults based on environment variables (the defaulting mechanism itself is implemented via webhooks)

func SetupDefaultsCeilometerCompute

func SetupDefaultsCeilometerCompute()

SetupDefaultsCeilometerCompute - initializes any CRD field defaults based on environment variables (the defaulting mechanism itself is implemented via webhooks)

func SetupDefaultsInfraCompute

func SetupDefaultsInfraCompute()

SetupDefaultsInfraCompute - initializes any CRD field defaults based on environment variables (the defaulting mechanism itself is implemented via webhooks)

func SetupDefaultsTelemetry

func SetupDefaultsTelemetry()

SetupDefaultsTelemetry - initializes any CRD field defaults based on environment variables (the defaulting mechanism itself is implemented via webhooks)

func SetupInfraComputeDefaults

func SetupInfraComputeDefaults(defaults InfraComputeDefaults)

SetupInfraComputeDefaults - initialize InfraCompute spec defaults for use with either internal or external webhooks

func SetupTelemetryDefaults

func SetupTelemetryDefaults(defaults TelemetryDefaults)

SetupTelemetryDefaults - initialize Telemetry spec defaults for use with either internal or external webhooks

Types

type CeilometerCentral

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

	Spec   CeilometerCentralSpec   `json:"spec,omitempty"`
	Status CeilometerCentralStatus `json:"status,omitempty"`
}

CeilometerCentral is the Schema for the ceilometercentrals API

func (*CeilometerCentral) DeepCopy

func (in *CeilometerCentral) DeepCopy() *CeilometerCentral

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

func (*CeilometerCentral) DeepCopyInto

func (in *CeilometerCentral) DeepCopyInto(out *CeilometerCentral)

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

func (*CeilometerCentral) DeepCopyObject

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

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

func (*CeilometerCentral) Default

func (r *CeilometerCentral) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (CeilometerCentral) IsReady

func (instance CeilometerCentral) IsReady() bool

IsReady - returns true if CeilometerCentral is reconciled successfully

func (CeilometerCentral) RbacConditionsSet

func (instance CeilometerCentral) RbacConditionsSet(c *condition.Condition)

RbacConditionsSet - set the conditions for the rbac object

func (CeilometerCentral) RbacNamespace

func (instance CeilometerCentral) RbacNamespace() string

RbacNamespace - return the namespace

func (CeilometerCentral) RbacResourceName

func (instance CeilometerCentral) RbacResourceName() string

RbacResourceName - return the name to be used for rbac objects (serviceaccount, role, rolebinding)

func (*CeilometerCentral) SetupWebhookWithManager

func (r *CeilometerCentral) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager - setups webhook with the adequate manager

func (*CeilometerCentral) ValidateCreate

func (r *CeilometerCentral) ValidateCreate() error

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

func (*CeilometerCentral) ValidateDelete

func (r *CeilometerCentral) ValidateDelete() error

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

func (*CeilometerCentral) ValidateUpdate

func (r *CeilometerCentral) ValidateUpdate(old runtime.Object) error

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

type CeilometerCentralDefaults

type CeilometerCentralDefaults struct {
	CentralContainerImageURL      string
	CentralInitContainerImageURL  string
	NotificationContainerImageURL string
	SgCoreContainerImageURL       string
}

CeilometerCentralDefaults -

func (*CeilometerCentralDefaults) DeepCopy

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

func (*CeilometerCentralDefaults) DeepCopyInto

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

type CeilometerCentralList

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

CeilometerCentralList contains a list of CeilometerCentral

func (*CeilometerCentralList) DeepCopy

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

func (*CeilometerCentralList) DeepCopyInto

func (in *CeilometerCentralList) DeepCopyInto(out *CeilometerCentralList)

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

func (*CeilometerCentralList) DeepCopyObject

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

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

type CeilometerCentralSpec

type CeilometerCentralSpec struct {
	// RabbitMQ instance name
	// Needed to request a transportURL that is created and used in Telemetry
	// +kubebuilder:default=rabbitmq
	RabbitMqClusterName string `json:"rabbitMqClusterName,omitempty"`

	// The needed values to connect to RabbitMQ
	TransportURLSecret string `json:"transportURLSecret,omitempty"`

	// PasswordSelectors - Selectors to identify the service from the Secret
	// +kubebuilder:default:={service: CeilometerPassword}
	PasswordSelectors PasswordsSelector `json:"passwordSelector,omitempty"`

	// ServiceUser - optional username used for this service to register in keystone
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=ceilometer
	ServiceUser string `json:"serviceUser"`

	// Secret containing OpenStack password information for ceilometer
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=osp-secret
	Secret string `json:"secret"`

	// CustomServiceConfig - customize the service config using this parameter to change service defaults,
	// or overwrite rendered information using raw OpenStack config format. The content gets added to
	// to /etc/<service>/<service>.conf.d directory as custom.conf file.
	// +kubebuilder:default:="# add your customization here"
	CustomServiceConfig string `json:"customServiceConfig,omitempty"`

	// ConfigOverwrite - interface to overwrite default config files like e.g. logging.conf or policy.json.
	// But can also be used to add additional files. Those get added to the service config dir in /etc/<service> .
	// TODO: -> implement
	DefaultConfigOverwrite map[string]string `json:"defaultConfigOverwrite,omitempty"`

	// NetworkAttachmentDefinitions list of network attachment definitions the service pod gets attached to
	NetworkAttachmentDefinitions []string `json:"networkAttachmentDefinitions,omitempty"`

	// +kubebuilder:validation:Required
	CentralImage string `json:"centralImage"`

	// +kubebuilder:validation:Required
	NotificationImage string `json:"notificationImage"`

	// +kubebuilder:validation:Required
	SgCoreImage string `json:"sgCoreImage"`

	// +kubebuilder:validation:Required
	InitImage string `json:"initImage"`

	// +kubebuilder:default:="A ceilometer agent"
	Description string `json:"description,omitempty"`

	// ServiceAccount - service account name used internally to provide the default SA name
	ServiceAccount string `json:"serviceAccount"`
}

CeilometerCentralSpec defines the desired state of CeilometerCentral

func (*CeilometerCentralSpec) DeepCopy

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

func (*CeilometerCentralSpec) DeepCopyInto

func (in *CeilometerCentralSpec) DeepCopyInto(out *CeilometerCentralSpec)

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

func (*CeilometerCentralSpec) Default

func (spec *CeilometerCentralSpec) Default()

Default - set defaults for this CeilometerCentral spec

type CeilometerCentralStatus

type CeilometerCentralStatus struct {
	// ReadyCount of ceilometercentral instances
	ReadyCount int32 `json:"readyCount,omitempty"`

	// Map of hashes to track e.g. job status
	Hash map[string]string `json:"hash,omitempty"`

	// Conditions
	Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"`

	// Networks in addtion to the cluster network, the service is attached to
	Networks []string `json:"networks,omitempty"`
}

CeilometerCentralStatus defines the observed state of CeilometerCentral

func (*CeilometerCentralStatus) DeepCopy

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

func (*CeilometerCentralStatus) DeepCopyInto

func (in *CeilometerCentralStatus) DeepCopyInto(out *CeilometerCentralStatus)

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

type CeilometerCompute

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

	Spec   CeilometerComputeSpec   `json:"spec,omitempty"`
	Status CeilometerComputeStatus `json:"status,omitempty"`
}

CeilometerCompute is the Schema for the ceilometercomputes API

func (*CeilometerCompute) DeepCopy

func (in *CeilometerCompute) DeepCopy() *CeilometerCompute

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

func (*CeilometerCompute) DeepCopyInto

func (in *CeilometerCompute) DeepCopyInto(out *CeilometerCompute)

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

func (*CeilometerCompute) DeepCopyObject

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

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

func (*CeilometerCompute) Default

func (r *CeilometerCompute) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (CeilometerCompute) IsReady

func (instance CeilometerCompute) IsReady() bool

IsReady - returns true if CeilometerCompute is reconciled successfully

func (CeilometerCompute) RbacConditionsSet

func (instance CeilometerCompute) RbacConditionsSet(c *condition.Condition)

RbacConditionsSet - set the conditions for the rbac object

func (CeilometerCompute) RbacNamespace

func (instance CeilometerCompute) RbacNamespace() string

RbacNamespace - return the namespace

func (CeilometerCompute) RbacResourceName

func (instance CeilometerCompute) RbacResourceName() string

RbacResourceName - return the name to be used for rbac objects (serviceaccount, role, rolebinding)

func (*CeilometerCompute) SetupWebhookWithManager

func (r *CeilometerCompute) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager - setups webhook with the adequate manager

func (*CeilometerCompute) ValidateCreate

func (r *CeilometerCompute) ValidateCreate() error

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

func (*CeilometerCompute) ValidateDelete

func (r *CeilometerCompute) ValidateDelete() error

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

func (*CeilometerCompute) ValidateUpdate

func (r *CeilometerCompute) ValidateUpdate(old runtime.Object) error

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

type CeilometerComputeDefaults

type CeilometerComputeDefaults struct {
	ComputeContainerImageURL     string
	ComputeInitContainerImageURL string
	IpmiContainerImageURL        string
}

CeilometerComputeDefaults -

func (*CeilometerComputeDefaults) DeepCopy

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

func (*CeilometerComputeDefaults) DeepCopyInto

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

type CeilometerComputeList

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

CeilometerComputeList contains a list of CeilometerCompute

func (*CeilometerComputeList) DeepCopy

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

func (*CeilometerComputeList) DeepCopyInto

func (in *CeilometerComputeList) DeepCopyInto(out *CeilometerComputeList)

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

func (*CeilometerComputeList) DeepCopyObject

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

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

type CeilometerComputeSpec

type CeilometerComputeSpec struct {
	// RabbitMQ instance name
	// Needed to request a transportURL that is created and used in Telemetry
	// +kubebuilder:default=rabbitmq
	RabbitMqClusterName string `json:"rabbitMqClusterName,omitempty"`

	// TransportURLSecret contains the needed values to connect to RabbitMQ
	TransportURLSecret string `json:"transportURLSecret,omitempty"`

	// PasswordSelectors - Selectors to identify the service from the Secret
	// +kubebuilder:default:={service: CeilometerPassword}
	PasswordSelectors PasswordsSelector `json:"passwordSelector,omitempty"`

	// ServiceUser - optional username used for this service to register in keystone
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=ceilometer
	ServiceUser string `json:"serviceUser"`

	// Secret containing OpenStack password information for ceilometer
	// +kubebuilder:validation:Optional
	// +kubebuilder:default=osp-secret
	Secret string `json:"secret"`

	// +kubebuilder:default:="A ceilometer compute agent"
	Description string `json:"description,omitempty"`

	// CustomServiceConfig - customize the service config using this parameter to change service defaults,
	// or overwrite rendered information using raw OpenStack config format. The content gets added to
	// to /etc/<service>/<service>.conf.d directory as custom.conf file.
	// +kubebuilder:default:="# add your customization here"
	CustomServiceConfig string `json:"customServiceConfig,omitempty"`

	// DefaultConfigOverwrite - interface to overwrite default config files like e.g. logging.conf or policy.json.
	// But can also be used to add additional files. Those get added to the service config dir in /etc/<service> .
	// TODO: -> implement
	DefaultConfigOverwrite map[string]string `json:"defaultConfigOverwrite,omitempty"`

	// InitImage is the image used for the init container
	// +kubebuilder:validation:Required
	InitImage string `json:"initImage"`

	// ComputeImage is the image used for the ceilometer-agent-compute container
	// +kubebuilder:validation:Required
	ComputeImage string `json:"computeImage"`

	// IpmiImage is the image used for the ceilometer-agent-ipmi container
	// +kubebuilder:validation:Required
	IpmiImage string `json:"ipmiImage"`

	// DataplaneSSHSecret
	// +kubebuilder:validation:Required
	DataplaneSSHSecret string `json:"dataplaneSSHSecret"`

	// DataplaneInventoryConfigMap
	// +kubebuilder:validation:Required
	DataplaneInventoryConfigMap string `json:"dataplaneInventoryConfigMap"`

	// Playbook executed
	// +kubebuilder:default:="deploy_ceilometer.yml"
	Playbook string `json:"playbook,omitempty"`

	// ServiceAccount - service account name used internally to provide the default SA name
	ServiceAccount string `json:"serviceAccount"`
}

CeilometerComputeSpec defines the desired state of CeilometerCompute

func (*CeilometerComputeSpec) DeepCopy

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

func (*CeilometerComputeSpec) DeepCopyInto

func (in *CeilometerComputeSpec) DeepCopyInto(out *CeilometerComputeSpec)

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

func (*CeilometerComputeSpec) Default

func (spec *CeilometerComputeSpec) Default()

Default - set defaults for this CeilometerCompute spec

type CeilometerComputeStatus

type CeilometerComputeStatus struct {
	// ReadyCount of ceilometercompute instances
	ReadyCount int32 `json:"readyCount,omitempty"`

	// Map of hashes to track e.g. job status
	Hash map[string]string `json:"hash,omitempty"`

	// Conditions
	Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"`
}

CeilometerComputeStatus defines the observed state of CeilometerCompute

func (*CeilometerComputeStatus) DeepCopy

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

func (*CeilometerComputeStatus) DeepCopyInto

func (in *CeilometerComputeStatus) DeepCopyInto(out *CeilometerComputeStatus)

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

type InfraCompute

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

	Spec   InfraComputeSpec   `json:"spec,omitempty"`
	Status InfraComputeStatus `json:"status,omitempty"`
}

InfraCompute is the Schema for the infracomputes API

func (*InfraCompute) DeepCopy

func (in *InfraCompute) DeepCopy() *InfraCompute

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

func (*InfraCompute) DeepCopyInto

func (in *InfraCompute) DeepCopyInto(out *InfraCompute)

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

func (*InfraCompute) DeepCopyObject

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

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

func (*InfraCompute) Default

func (r *InfraCompute) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (InfraCompute) IsReady

func (instance InfraCompute) IsReady() bool

IsReady - returns true if InfraCompute is reconciled successfully

func (InfraCompute) RbacConditionsSet

func (instance InfraCompute) RbacConditionsSet(c *condition.Condition)

RbacConditionsSet - set the conditions for the rbac object

func (InfraCompute) RbacNamespace

func (instance InfraCompute) RbacNamespace() string

RbacNamespace - return the namespace

func (InfraCompute) RbacResourceName

func (instance InfraCompute) RbacResourceName() string

RbacResourceName - return the name to be used for rbac objects (serviceaccount, role, rolebinding)

func (*InfraCompute) SetupWebhookWithManager

func (r *InfraCompute) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager - setups webhook with the adequate manager

func (*InfraCompute) ValidateCreate

func (r *InfraCompute) ValidateCreate() error

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

func (*InfraCompute) ValidateDelete

func (r *InfraCompute) ValidateDelete() error

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

func (*InfraCompute) ValidateUpdate

func (r *InfraCompute) ValidateUpdate(old runtime.Object) error

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

type InfraComputeDefaults

type InfraComputeDefaults struct {
	NodeExporterContainerImageURL string
}

InfraComputeDefaults -

func (*InfraComputeDefaults) DeepCopy

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

func (*InfraComputeDefaults) DeepCopyInto

func (in *InfraComputeDefaults) DeepCopyInto(out *InfraComputeDefaults)

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

type InfraComputeList

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

InfraComputeList contains a list of InfraCompute

func (*InfraComputeList) DeepCopy

func (in *InfraComputeList) DeepCopy() *InfraComputeList

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

func (*InfraComputeList) DeepCopyInto

func (in *InfraComputeList) DeepCopyInto(out *InfraComputeList)

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

func (*InfraComputeList) DeepCopyObject

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

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

type InfraComputeSpec

type InfraComputeSpec struct {

	// +kubebuilder:default:="An infra compute agent"
	Description string `json:"description,omitempty"`

	// NodeExporterImage is the image used for the node_exporter container
	// +kubebuilder:validation:Required
	NodeExporterImage string `json:"nodeExporterImage"`

	// DataplaneSSHSecret
	// +kubebuilder:validation:Required
	DataplaneSSHSecret string `json:"dataplaneSSHSecret"`

	// DataplaneInventoryConfigMap
	// +kubebuilder:validation:Required
	DataplaneInventoryConfigMap string `json:"dataplaneInventoryConfigMap"`

	// Playbook executed
	// +kubebuilder:default:="deploy_infra.yml"
	Playbook string `json:"playbook,omitempty"`

	// The extravars ConfigMap to pass to ansible execution
	// +kubebuilder:default:="telemetry-infracompute-extravars"
	ExtravarsConfigMap string `json:"extravarsConfigMap,omitempty"`

	// ServiceAccount - service account name used internally to provide the default SA name
	ServiceAccount string `json:"serviceAccount"`
}

InfraComputeSpec defines the desired state of InfraCompute

func (*InfraComputeSpec) DeepCopy

func (in *InfraComputeSpec) DeepCopy() *InfraComputeSpec

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

func (*InfraComputeSpec) DeepCopyInto

func (in *InfraComputeSpec) DeepCopyInto(out *InfraComputeSpec)

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

func (*InfraComputeSpec) Default

func (spec *InfraComputeSpec) Default()

Default - set defaults for this InfraCompute spec

type InfraComputeStatus

type InfraComputeStatus struct {
	// ReadyCount of ceilometercompute instances
	ReadyCount int32 `json:"readyCount,omitempty"`

	// Map of hashes to track e.g. job status
	Hash map[string]string `json:"hash,omitempty"`

	// Conditions
	Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"`
}

InfraComputeStatus defines the observed state of InfraCompute

func (*InfraComputeStatus) DeepCopy

func (in *InfraComputeStatus) DeepCopy() *InfraComputeStatus

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

func (*InfraComputeStatus) DeepCopyInto

func (in *InfraComputeStatus) DeepCopyInto(out *InfraComputeStatus)

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

type PasswordsSelector

type PasswordsSelector struct {
	// Service - Selector to get the ceilometer service password from the Secret
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=CeilometerPassword
	Service string `json:"service"`
}

PasswordsSelector to identify the Service password from the Secret

func (*PasswordsSelector) DeepCopy

func (in *PasswordsSelector) DeepCopy() *PasswordsSelector

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

func (*PasswordsSelector) DeepCopyInto

func (in *PasswordsSelector) DeepCopyInto(out *PasswordsSelector)

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

type Telemetry

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

	Spec   TelemetrySpec   `json:"spec,omitempty"`
	Status TelemetryStatus `json:"status,omitempty"`
}

Telemetry is the Schema for the telemetry API

func (*Telemetry) DeepCopy

func (in *Telemetry) DeepCopy() *Telemetry

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

func (*Telemetry) DeepCopyInto

func (in *Telemetry) DeepCopyInto(out *Telemetry)

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

func (*Telemetry) DeepCopyObject

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

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

func (*Telemetry) Default

func (r *Telemetry) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (Telemetry) IsReady

func (instance Telemetry) IsReady() bool

IsReady - returns true if Telemetry is reconciled successfully

func (*Telemetry) SetupWebhookWithManager

func (r *Telemetry) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up the webhook with the Manager

func (*Telemetry) ValidateCreate

func (r *Telemetry) ValidateCreate() error

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

func (*Telemetry) ValidateDelete

func (r *Telemetry) ValidateDelete() error

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

func (*Telemetry) ValidateUpdate

func (r *Telemetry) ValidateUpdate(old runtime.Object) error

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

type TelemetryDefaults

type TelemetryDefaults struct {
	CentralContainerImageURL      string
	CentralInitContainerImageURL  string
	ComputeContainerImageURL      string
	ComputeInitContainerImageURL  string
	NotificationContainerImageURL string
	SgCoreContainerImageURL       string
	NodeExporterContainerImageURL string
	IpmiContainerImageURL         string
}

TelemetryDefaults -

func (*TelemetryDefaults) DeepCopy

func (in *TelemetryDefaults) DeepCopy() *TelemetryDefaults

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

func (*TelemetryDefaults) DeepCopyInto

func (in *TelemetryDefaults) DeepCopyInto(out *TelemetryDefaults)

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

type TelemetryList

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

TelemetryList contains a list of Telemetry

func (*TelemetryList) DeepCopy

func (in *TelemetryList) DeepCopy() *TelemetryList

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

func (*TelemetryList) DeepCopyInto

func (in *TelemetryList) DeepCopyInto(out *TelemetryList)

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

func (*TelemetryList) DeepCopyObject

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

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

type TelemetrySpec

type TelemetrySpec struct {
	// +kubebuilder:default:="A ceilometer agent"
	Description string `json:"description,omitempty"`

	// +kubebuilder:validation:Required
	// CeilometerCentral - Spec definition for the CeilometerCentral service of this Telemetry deployment
	CeilometerCentral CeilometerCentralSpec `json:"ceilometerCentral"`

	// +kubebuilder:validation:Required
	// CeilometerCompute - Spec definition for the CeilometerCompute service of this Telemetry deployment
	CeilometerCompute CeilometerComputeSpec `json:"ceilometerCompute"`

	// +kubebuilder:validation:Required
	// InfraCompute - Spec definition for the InfraCompute service of this Telemetry deployment
	InfraCompute InfraComputeSpec `json:"infraCompute"`
}

TelemetrySpec defines the desired state of Telemetry

func (*TelemetrySpec) DeepCopy

func (in *TelemetrySpec) DeepCopy() *TelemetrySpec

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

func (*TelemetrySpec) DeepCopyInto

func (in *TelemetrySpec) DeepCopyInto(out *TelemetrySpec)

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

func (*TelemetrySpec) Default

func (spec *TelemetrySpec) Default()

Default - set defaults for this Telemetry spec

type TelemetryStatus

type TelemetryStatus struct {
	// Map of hashes to track e.g. job status
	Hash map[string]string `json:"hash,omitempty"`

	// Conditions
	Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"`

	// ReadyCount of CeilometerCentral instance
	CeilometerCentralReadyCount int32 `json:"ceilometerCentralReadyCount,omitempty"`

	// ReadyCount of CeilometerCompute instance
	CeilometerComputeReadyCount int32 `json:"ceilometerComputeReadyCount,omitempty"`

	// ReadyCount of InfraCompute instance
	InfraComputeReadyCount int32 `json:"infraComputeReadyCount,omitempty"`
}

TelemetryStatus defines the observed state of Telemetry

func (*TelemetryStatus) DeepCopy

func (in *TelemetryStatus) DeepCopy() *TelemetryStatus

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

func (*TelemetryStatus) DeepCopyInto

func (in *TelemetryStatus) DeepCopyInto(out *TelemetryStatus)

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