v1alpha1

package
v0.0.0-...-87359d1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=osbuilder.project-flotta.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "osbuilder.project-flotta.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 AWSS3ServiceConfig

type AWSS3ServiceConfig struct {
	// CredsSecretReference is a reference to a secret in the same namespace,
	// containing the connection credentials for the S3 service
	// The required keys are access-key-id and secret-access-key
	// +kubebuilder:validation:Required
	CredsSecretReference buildv1.SecretLocalReference `json:"credsSecretReference"`
	// Region is the region to use when connecting to the S3 service
	// +kubebuilder:validation:Required
	Region string `json:"region"`
	// Bucket is the bucket to store images in
	// +kubebuilder:validation:Required
	Bucket string `json:"bucket"`
}

func (*AWSS3ServiceConfig) DeepCopy

func (in *AWSS3ServiceConfig) DeepCopy() *AWSS3ServiceConfig

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

func (*AWSS3ServiceConfig) DeepCopyInto

func (in *AWSS3ServiceConfig) DeepCopyInto(out *AWSS3ServiceConfig)

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

type Architecture

type Architecture string

+kubebuilder:validation:Enum=x86_64;aarch64

type BuildDetails

type BuildDetails struct {
	// Distribution is the name of the O/S distribution
	Distribution string `json:"distribution"`
	// Customizations defines the changes to be applied on top of the base image (optional)
	Customizations *Customizations `json:"customizations,omitempty"`
	// TargetImage defines the requested output image
	TargetImage TargetImage `json:"targetImage"`
}

BuildDetails includes all the information needed to build the image

func (*BuildDetails) DeepCopy

func (in *BuildDetails) DeepCopy() *BuildDetails

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

func (*BuildDetails) DeepCopyInto

func (in *BuildDetails) DeepCopyInto(out *BuildDetails)

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

type BuildTriggers

type BuildTriggers struct {
	// ConfigChange if True trigger a new build upon any change in this BuildConfig CR (optional)
	ConfigChange *bool `json:"configChange,omitempty"`
	// WebHook defines the way to trigger a build using a REST call (optional)
	WebHook *buildv1.WebHookTrigger `json:"webHook,omitempty"`
	// TemplateConfigChange if True trigger a new build upon any change to associated BuildConfigTemplate CR (optional).
	// Default: True.
	TemplateConfigChange *bool `json:"templateConfigChange,omitempty"`
}

func (*BuildTriggers) DeepCopy

func (in *BuildTriggers) DeepCopy() *BuildTriggers

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

func (*BuildTriggers) DeepCopyInto

func (in *BuildTriggers) DeepCopyInto(out *BuildTriggers)

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

type ComposerConfig

type ComposerConfig struct {
	// PSQL is the configuration of the DB server (optional)
	// +kubebuilder:validation:Optional
	PSQL *ComposerDBConfig `json:"psql,omitempty"`
}

func (*ComposerConfig) DeepCopy

func (in *ComposerConfig) DeepCopy() *ComposerConfig

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

func (*ComposerConfig) DeepCopyInto

func (in *ComposerConfig) DeepCopyInto(out *ComposerConfig)

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

type ComposerDBConfig

type ComposerDBConfig struct {
	// RedHatCredsSecretReference is a reference to a secret in the same namespace,
	// containing the connection details to the PSQL service
	// The expected keys are: host, port, dbname, user, password
	ConnectionSecretReference buildv1.SecretLocalReference `json:"connectionSecretReference"`
	// SSLMode is the SSL mode to use when connecting to the PSQL server
	// As defined here: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLMODE
	// (optional - default is prefer)
	// +kubebuilder:validation:Optional
	SSLMode *DBSSLMode `json:"sslMode,omitempty"`
}

func (*ComposerDBConfig) DeepCopy

func (in *ComposerDBConfig) DeepCopy() *ComposerDBConfig

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

func (*ComposerDBConfig) DeepCopyInto

func (in *ComposerDBConfig) DeepCopyInto(out *ComposerDBConfig)

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

type Condition

type Condition struct {
	// Type of status
	Type ConditionType `json:"type" description:"type of condition"`

	// Status of the condition, one of True, False, Unknown
	Status metav1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"`

	// A human-readable message indicating details about last transition
	// +kubebuilder:optional
	Message *string `json:"message,omitempty" description:"one-word CamelCase reason for the condition's last transition"`

	// The last time the condition transit from one status to another
	// +optional
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty" description:"last time the condition transit from one status to another"`
}

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionType

type ConditionType string
const (
	// Whether the resource is ready
	ConditionReady ConditionType = "Ready"
	// Whether the resource is in progress
	ConditionInProgress ConditionType = "InProgress"
	// Whether the resource failed
	ConditionFailed ConditionType = "Failed"
)

These are the resource condition types

type ContainerRegistryServiceConfig

type ContainerRegistryServiceConfig struct {
	// Domain is the URL of the Container Image Registry service
	// +kubebuilder:validation:Required
	Domain string `json:"domain"`
	// PathPrefix is the account URI
	// +kubebuilder:validation:Required
	PathPrefix string `json:"pathPrefix"`
	// CredsSecretReference is a reference to a secret in the same namespace of type kubernetes.io/dockerconfigjson,
	// containing the connection credentials for the Container Registry service
	// +kubebuilder:validation:Required
	CredsSecretReference buildv1.SecretLocalReference `json:"credsSecretReference"`
	// CABundleSecretReference is a reference to a secret in the same namespace,
	// containing the CA certificate to use when connecting to the Container Registry service (optional, default empty)
	// If provided the required key is ca-bundle
	// +kubebuilder:validation:Optional
	CABundleSecretReference *buildv1.SecretLocalReference `json:"caBundleSecretReference,omitempty"`
	// SkipSSLVerification when set to true the SSL certificate will not be verified (optional, default False)
	// +kubebuilder:validation:Optional
	SkipSSLVerification *bool `json:"skipSSLVerification,omitempty"`
}

func (*ContainerRegistryServiceConfig) DeepCopy

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

func (*ContainerRegistryServiceConfig) DeepCopyInto

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

type Customizations

type Customizations struct {
	// Packages is a list of RPM packages to install (optional)
	Packages []string `json:"packages,omitempty"`
	// Users is the list of Users to add to the image (optional)
	Users []User `json:"users,omitempty"`
	// Services defines the services to enable or disable (optional)
	Services *Services `json:"services,omitempty"`
}

Customizations defines the changes to be applied on top of the base image

func (*Customizations) DeepCopy

func (in *Customizations) DeepCopy() *Customizations

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

func (*Customizations) DeepCopyInto

func (in *Customizations) DeepCopyInto(out *Customizations)

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

type DBSSLMode

type DBSSLMode string

+kubebuilder:validation:Enum=disable;allow;prefer;require;verify-ca;verify-full

type EdgeInstallerBuildDetails

type EdgeInstallerBuildDetails struct {
	// Distribution is the name of the O/S distribution
	Distribution string `json:"distribution"`
	// OSTree is the OSTree configuration of the build (optional)
	OSTree OSTreeConfig `json:"osTree"`
	// Kickstart is a reference to a configmap that may store content of a
	// kickstart file to be used in the target image
	Kickstart *NameRef `json:"kickstart,omitempty" protobuf:"bytes,2,opt,name=kickstart"`
}

EdgeInstallerBuildDetails includes all the information needed to build the edge-installer image

func (*EdgeInstallerBuildDetails) DeepCopy

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

func (*EdgeInstallerBuildDetails) DeepCopyInto

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

type ExternalWorkerConfig

type ExternalWorkerConfig struct {
	// Address is the hostname or IP address of the external worker machine
	// +kubebuilder:validation:Required
	Address string `json:"address"`
	// User is the user to connect with to external worker machine
	// +kubebuilder:validation:Required
	User string `json:"user"`
	// SSHKeySecretReference is a reference to a secret in the same namespace,
	// containing the private key that may be used to connect to the external worker machine
	// the expected key is ssh-privatekey
	// +kubebuilder:validation:Required
	SSHKeySecretReference buildv1.SecretLocalReference `json:"sshKeySecretReference"`
}

func (*ExternalWorkerConfig) DeepCopy

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

func (*ExternalWorkerConfig) DeepCopyInto

func (in *ExternalWorkerConfig) DeepCopyInto(out *ExternalWorkerConfig)

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

type GenericS3ServiceConfig

type GenericS3ServiceConfig struct {
	*AWSS3ServiceConfig `json:",inline"`

	// Endpoint is the Url of the S3 service
	// +kubebuilder:validation:Required
	Endpoint string `json:"endpoint"`
	// CABundleSecretReference is a reference to a secret in the same namespace,
	// containing the CA certificate to use when connecting to the S3 service (optional, default empty)
	// If provided the required key is ca-bundle
	// +kubebuilder:validation:Optional
	CABundleSecretReference *buildv1.SecretLocalReference `json:"caBundleSecretReference,omitempty"`
	// SkipSSLVerification when set to true the SSL certificate will not be verified (optional, default False)
	// +kubebuilder:validation:Optional
	SkipSSLVerification *bool `json:"skipSSLVerification,omitempty"`
}

func (*GenericS3ServiceConfig) DeepCopy

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

func (*GenericS3ServiceConfig) DeepCopyInto

func (in *GenericS3ServiceConfig) DeepCopyInto(out *GenericS3ServiceConfig)

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

type IsoConfiguration

type IsoConfiguration struct {
	// Kickstart provides content of Kickstart file that has to be added to the target ISO
	Kickstart *KickstartFile `json:"kickstart,omitempty"`
}

func (*IsoConfiguration) DeepCopy

func (in *IsoConfiguration) DeepCopy() *IsoConfiguration

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

func (*IsoConfiguration) DeepCopyInto

func (in *IsoConfiguration) DeepCopyInto(out *IsoConfiguration)

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

type KickstartFile

type KickstartFile struct {
	// Raw inline content of the Kickstart file
	Raw *string `json:"raw,omitempty"`
	// ConfigMapName name of a config map containing the Kickstart file under `kickstart` key
	ConfigMapName *string `json:"configMapName,omitempty"`
}

func (*KickstartFile) DeepCopy

func (in *KickstartFile) DeepCopy() *KickstartFile

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

func (*KickstartFile) DeepCopyInto

func (in *KickstartFile) DeepCopyInto(out *KickstartFile)

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

type NameRef

type NameRef struct {
	// The ConfigMap to select from.
	Name string `json:"name"`
}

func (*NameRef) DeepCopy

func (in *NameRef) DeepCopy() *NameRef

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

func (*NameRef) DeepCopyInto

func (in *NameRef) DeepCopyInto(out *NameRef)

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

type OSBuild

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

	Spec   OSBuildSpec   `json:"spec,omitempty"`
	Status OSBuildStatus `json:"status,omitempty"`
}

OSBuild is the Schema for the osbuilds API

func (*OSBuild) DeepCopy

func (in *OSBuild) DeepCopy() *OSBuild

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

func (*OSBuild) DeepCopyInto

func (in *OSBuild) DeepCopyInto(out *OSBuild)

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

func (*OSBuild) DeepCopyObject

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

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

type OSBuildConfig

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

	Spec   OSBuildConfigSpec   `json:"spec,omitempty"`
	Status OSBuildConfigStatus `json:"status,omitempty"`
}

OSBuildConfig is the Schema for the osbuildconfigs API

func (*OSBuildConfig) DeepCopy

func (in *OSBuildConfig) DeepCopy() *OSBuildConfig

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

func (*OSBuildConfig) DeepCopyInto

func (in *OSBuildConfig) DeepCopyInto(out *OSBuildConfig)

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

func (*OSBuildConfig) DeepCopyObject

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

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

func (*OSBuildConfig) Default

func (r *OSBuildConfig) Default()

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

func (*OSBuildConfig) SetupWebhookWithManager

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

func (*OSBuildConfig) ValidateCreate

func (r *OSBuildConfig) ValidateCreate() error

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

func (*OSBuildConfig) ValidateDelete

func (r *OSBuildConfig) ValidateDelete() error

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

func (*OSBuildConfig) ValidateUpdate

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

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

type OSBuildConfigList

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

OSBuildConfigList contains a list of OSBuildConfig

func (*OSBuildConfigList) DeepCopy

func (in *OSBuildConfigList) DeepCopy() *OSBuildConfigList

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

func (*OSBuildConfigList) DeepCopyInto

func (in *OSBuildConfigList) DeepCopyInto(out *OSBuildConfigList)

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

func (*OSBuildConfigList) DeepCopyObject

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

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

type OSBuildConfigSpec

type OSBuildConfigSpec struct {

	// Details defines what to build
	Details BuildDetails `json:"details"`
	// Triggers defines when to build
	Triggers BuildTriggers `json:"triggers"`
	// Template specifying template configuration to use
	Template *Template `json:"template,omitempty"`
}

OSBuildConfigSpec defines the desired state of OSBuildConfig

func (*OSBuildConfigSpec) DeepCopy

func (in *OSBuildConfigSpec) DeepCopy() *OSBuildConfigSpec

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

func (*OSBuildConfigSpec) DeepCopyInto

func (in *OSBuildConfigSpec) DeepCopyInto(out *OSBuildConfigSpec)

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

type OSBuildConfigStatus

type OSBuildConfigStatus struct {
	//LastKnownUserConfiguration denotes the last user configuration to be compared when a new reconcile call was triggered
	LastKnownUserConfiguration *UserConfiguration `json:"lastKnownUserConfiguration,omitempty"`

	// Last webhook trigger time stamp
	LastWebhookTriggerTS string `json:"lastWebhookTriggerTS,omitempty"`

	// LastVersion denotes the number of the last OSBuild CR created for this OSBuildConfig CR
	LastVersion *int `json:"lastVersion,omitempty"`

	// LastBuildType denotes the TargetImageType of the last OSBuild CR created for this OSBuildConfig CR
	LastBuildType *TargetImageType `json:"lastBuildType,omitempty"`

	// LastTemplateResourceVersion denotes the version of the last OSBuildConfigTemplate resource used by this
	// OSBuildConfig (value of OSBuildConfigTemplate's metadata.resourceVersion) to generate an OSBuild.
	LastTemplateResourceVersion *string `json:"LastTemplateResourceVersion,omitempty"`

	// CurrentTemplateResourceVersion denotes the most current version of the OSBuildConfigTemplate resource used by this
	// OSBuildConfig (value of OSBuildConfigTemplate's metadata.resourceVersion).
	CurrentTemplateResourceVersion *string `json:"CurrentTemplateResourceVersion,omitempty"`
}

OSBuildConfigStatus defines the observed state of OSBuildConfig

func (*OSBuildConfigStatus) DeepCopy

func (in *OSBuildConfigStatus) DeepCopy() *OSBuildConfigStatus

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

func (*OSBuildConfigStatus) DeepCopyInto

func (in *OSBuildConfigStatus) DeepCopyInto(out *OSBuildConfigStatus)

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

type OSBuildConfigTemplate

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

	Spec   OSBuildConfigTemplateSpec   `json:"spec,omitempty"`
	Status OSBuildConfigTemplateStatus `json:"status,omitempty"`
}

OSBuildConfigTemplate is the Schema for the osbuildconfigtemplates API

func (*OSBuildConfigTemplate) DeepCopy

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

func (*OSBuildConfigTemplate) DeepCopyInto

func (in *OSBuildConfigTemplate) DeepCopyInto(out *OSBuildConfigTemplate)

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

func (*OSBuildConfigTemplate) DeepCopyObject

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

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

type OSBuildConfigTemplateList

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

OSBuildConfigTemplateList contains a list of OSBuildConfigTemplate

func (*OSBuildConfigTemplateList) DeepCopy

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

func (*OSBuildConfigTemplateList) DeepCopyInto

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

func (*OSBuildConfigTemplateList) DeepCopyObject

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

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

type OSBuildConfigTemplateSpec

type OSBuildConfigTemplateSpec struct {

	// Customizations defines the changes to be applied on top of the base image (optional)
	Customizations *Customizations `json:"customizations,omitempty"`

	// Iso specifies ISO-level customizations
	Iso *IsoConfiguration `json:"iso,omitempty"`

	// Parameters that are required by the template configuration (i.e. kickstart content)
	Parameters []Parameter `json:"parameters,omitempty"`
}

OSBuildConfigTemplateSpec defines the desired state of OSBuildConfigTemplate

func (*OSBuildConfigTemplateSpec) DeepCopy

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

func (*OSBuildConfigTemplateSpec) DeepCopyInto

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

type OSBuildConfigTemplateStatus

type OSBuildConfigTemplateStatus struct {
}

OSBuildConfigTemplateStatus defines the observed state of OSBuildConfigTemplate

func (*OSBuildConfigTemplateStatus) DeepCopy

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

func (*OSBuildConfigTemplateStatus) DeepCopyInto

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

type OSBuildEnvConfig

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

	Spec   OSBuildEnvConfigSpec   `json:"spec,omitempty"`
	Status OSBuildEnvConfigStatus `json:"status,omitempty"`
}

OSBuildEnvConfig is the Schema for the osbuildenvconfigs API

func (*OSBuildEnvConfig) DeepCopy

func (in *OSBuildEnvConfig) DeepCopy() *OSBuildEnvConfig

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

func (*OSBuildEnvConfig) DeepCopyInto

func (in *OSBuildEnvConfig) DeepCopyInto(out *OSBuildEnvConfig)

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

func (*OSBuildEnvConfig) DeepCopyObject

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

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

func (*OSBuildEnvConfig) Default

func (r *OSBuildEnvConfig) Default()

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

func (*OSBuildEnvConfig) SetupWebhookWithManager

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

func (*OSBuildEnvConfig) ValidateCreate

func (r *OSBuildEnvConfig) ValidateCreate() error

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

func (*OSBuildEnvConfig) ValidateDelete

func (r *OSBuildEnvConfig) ValidateDelete() error

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

func (*OSBuildEnvConfig) ValidateUpdate

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

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

type OSBuildEnvConfigList

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

OSBuildEnvConfigList contains a list of OSBuildEnvConfig

func (*OSBuildEnvConfigList) DeepCopy

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

func (*OSBuildEnvConfigList) DeepCopyInto

func (in *OSBuildEnvConfigList) DeepCopyInto(out *OSBuildEnvConfigList)

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

func (*OSBuildEnvConfigList) DeepCopyObject

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

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

type OSBuildEnvConfigSpec

type OSBuildEnvConfigSpec struct {
	// Composer contains all the required configuration values for the Composer service
	// +kubebuilder:validation:Optional
	Composer *ComposerConfig `json:"composer"`
	// Workers is a list of WorkerConfig each providing the configuration required for a worker
	// +kubebuilder:validation:Required
	Workers WorkersConfig `json:"workers"`
	// RedHatCredsSecretReference is a reference to a secret in the same namespace,
	// containing the RedHat Portal credentials to be used by the Worker machines
	// The expected keys are username and password
	// +kubebuilder:validation:Required
	RedHatCredsSecretReference buildv1.SecretLocalReference `json:"redHatCredsSecretReference"`
	// S3Service holds the configuration needed to connect to the S3 service
	// +kubebuilder:validation:Required
	S3Service S3ServiceConfig `json:"s3Service"`
	// ContainerRegistryService holds the configuration needed to upload container images to the registry
	// +kubebuilder:validation:Required
	ContainerRegistryService ContainerRegistryServiceConfig `json:"containerRegistryService"`
}

OSBuildEnvConfigSpec defines the desired state of OSBuildEnvConfig

func (*OSBuildEnvConfigSpec) DeepCopy

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

func (*OSBuildEnvConfigSpec) DeepCopyInto

func (in *OSBuildEnvConfigSpec) DeepCopyInto(out *OSBuildEnvConfigSpec)

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

type OSBuildEnvConfigStatus

type OSBuildEnvConfigStatus struct {
}

OSBuildEnvConfigStatus defines the observed state of OSBuildEnvConfig

func (*OSBuildEnvConfigStatus) DeepCopy

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

func (*OSBuildEnvConfigStatus) DeepCopyInto

func (in *OSBuildEnvConfigStatus) DeepCopyInto(out *OSBuildEnvConfigStatus)

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

type OSBuildList

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

OSBuildList contains a list of OSBuild

func (*OSBuildList) DeepCopy

func (in *OSBuildList) DeepCopy() *OSBuildList

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

func (*OSBuildList) DeepCopyInto

func (in *OSBuildList) DeepCopyInto(out *OSBuildList)

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

func (*OSBuildList) DeepCopyObject

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

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

type OSBuildSpec

type OSBuildSpec struct {
	// Details defines what to build
	Details *BuildDetails `json:"details,omitempty"`

	// EdgeInstallerDetails defines relevant properties for building edge-installer image
	EdgeInstallerDetails *EdgeInstallerBuildDetails `json:"edgeInstallerDetails,omitempty"`

	// TriggeredBy explains what triggered the build out
	TriggeredBy TriggeredBy `json:"triggeredBy"`
}

OSBuildSpec defines the desired state of OSBuild

func (*OSBuildSpec) DeepCopy

func (in *OSBuildSpec) DeepCopy() *OSBuildSpec

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

func (*OSBuildSpec) DeepCopyInto

func (in *OSBuildSpec) DeepCopyInto(out *OSBuildSpec)

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

type OSBuildStatus

type OSBuildStatus struct {
	// The conditions present the latest available observations of a build's current state
	Conditions []Condition `json:"conditions,omitempty"`

	// +optional
	Output *string `json:"output,omitempty"`

	// ComposeId presents compose id that was already started, for tracking a job of edge-container
	// +optional
	ComposeId string `json:"containerComposeId,omitempty"`

	// AccessUrl presents the url of the image in S3 bucket
	// +optional
	AccessUrl string `json:"accessUrl,omitempty"`

	// +optional
	// ComposerIso is the URL for the iso that composer build returns before
	// packaing with the kickstart
	ComposerIso string `json:"composer_iso,omitempty"`
}

OSBuildStatus defines the observed state of OSBuild

func (*OSBuildStatus) DeepCopy

func (in *OSBuildStatus) DeepCopy() *OSBuildStatus

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

func (*OSBuildStatus) DeepCopyInto

func (in *OSBuildStatus) DeepCopyInto(out *OSBuildStatus)

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

type OSTreeConfig

type OSTreeConfig struct {
	// Parent is the ref of the parent of target build (Optional)
	Parent *string `json:"parent,omitempty"`
	// Ref is the ref of the target build (Optional)
	Ref *string `json:"ref,omitempty"`
	// Url is the Url of the target build (Optional)
	Url *string `json:"url,omitempty"`
}

OSTreeConfig defines the OSTree ref details

func (*OSTreeConfig) DeepCopy

func (in *OSTreeConfig) DeepCopy() *OSTreeConfig

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

func (*OSTreeConfig) DeepCopyInto

func (in *OSTreeConfig) DeepCopyInto(out *OSTreeConfig)

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

type Parameter

type Parameter struct {
	// Name of the parameter
	Name string `json:"name"`
	// Type of the parameter. Allowed values: string, int, bool.
	// +kubebuilder:validation:Enum={string,int,bool}
	Type string `json:"type"`
	// DefaultValue specifies what parameter value should be used, if the parameter is not provided
	DefaultValue string `json:"defaultValue"`
}

func (*Parameter) DeepCopy

func (in *Parameter) DeepCopy() *Parameter

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

func (*Parameter) DeepCopyInto

func (in *Parameter) DeepCopyInto(out *Parameter)

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

type ParameterValue

type ParameterValue struct {
	// Name of a parameter
	Name string `json:"name"`
	// Value of a parameter
	Value string `json:"value"`
}

ParameterValue specifies a name-value pair

func (*ParameterValue) DeepCopy

func (in *ParameterValue) DeepCopy() *ParameterValue

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

func (*ParameterValue) DeepCopyInto

func (in *ParameterValue) DeepCopyInto(out *ParameterValue)

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

type Repository

type Repository struct {
	Baseurl  *string `json:"baseurl,omitempty"`
	CheckGpg *bool   `json:"check_gpg,omitempty"`

	// GPG key used to sign packages in this repository.
	Gpgkey     *string `json:"gpgkey,omitempty"`
	IgnoreSsl  *bool   `json:"ignore_ssl,omitempty"`
	Metalink   *string `json:"metalink,omitempty"`
	Mirrorlist *string `json:"mirrorlist,omitempty"`

	// Naming package sets for a repository assigns it to a specific part
	// (pipeline) of the build process.
	PackageSets *[]string `json:"package_sets,omitempty"`

	// Determines whether a valid subscription is required to access this repository.
	Rhsm *bool `json:"rhsm,omitempty"`
}

Repository defines the RPM Repository details.

func (*Repository) DeepCopy

func (in *Repository) DeepCopy() *Repository

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

func (*Repository) DeepCopyInto

func (in *Repository) DeepCopyInto(out *Repository)

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

type S3ServiceConfig

type S3ServiceConfig struct {
	// AWSS3ServiceConfig hold the configuration needed to connect to AWS S3
	//
	// +kubebuilder:validation:OneOf
	AWS *AWSS3ServiceConfig `json:"awsS3ServiceConfig,omitempty"`

	// GenericS3ServiceConfig hold the configuration needed to connect to a generic S3 service
	//
	// +kubebuilder:validation:OneOf
	GenericS3 *GenericS3ServiceConfig `json:"genericS3ServiceConfig,omitempty"`
}

func (*S3ServiceConfig) DeepCopy

func (in *S3ServiceConfig) DeepCopy() *S3ServiceConfig

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

func (*S3ServiceConfig) DeepCopyInto

func (in *S3ServiceConfig) DeepCopyInto(out *S3ServiceConfig)

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

type Services

type Services struct {
	// List of services to disable by default
	Disabled []string `json:"disabled,omitempty"`
	// List of services to enable by default
	Enabled []string `json:"enabled,omitempty"`
}

func (*Services) DeepCopy

func (in *Services) DeepCopy() *Services

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

func (*Services) DeepCopyInto

func (in *Services) DeepCopyInto(out *Services)

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

type TargetImage

type TargetImage struct {
	// Architecture defines target architecture of the image
	Architecture Architecture `json:"architecture"`
	// TargetImageType defines the target image type
	// +kubebuilder:validation:Enum=edge-container;edge-installer;guest-image
	TargetImageType TargetImageType `json:"targetImageType"`
	// OSTree is the OSTree configuration of the build (optional)
	OSTree *OSTreeConfig `json:"osTree,omitempty"`
	// Repositories is the list of additional custom RPM repositories to use when building the image (optional)
	Repositories *[]Repository `json:"repositorys,omitempty"`
}

func (*TargetImage) DeepCopy

func (in *TargetImage) DeepCopy() *TargetImage

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

func (*TargetImage) DeepCopyInto

func (in *TargetImage) DeepCopyInto(out *TargetImage)

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

type TargetImageType

type TargetImageType string
const (
	EdgeContainerImageType TargetImageType = "edge-container"
	EdgeInstallerImageType TargetImageType = "edge-installer"
	GuestImageImageType    TargetImageType = "guest-image"
)

type Template

type Template struct {
	// OSBuildConfigTemplateRef specifies the name of OSBuildConfigTemplate resource
	OSBuildConfigTemplateRef string `json:"osBuildConfigTemplateRef"`
	// Parameters list parameter values for OS Build Config processing
	Parameters []ParameterValue `json:"parameters,omitempty"`
}

Template contains OSBuildConfigTemplate configuration

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.

type TriggeredBy

type TriggeredBy string

+kubebuilder:validation:Enum=UpdateCR;Webhook

type User

type User struct {
	// Groups is the groups to add the user to (optional)
	Groups *[]string `json:"groups,omitempty"`
	// Key is the user's SSH public key (optional)
	Key *string `json:"key,omitempty"`
	// Name is the username for the new user
	Name string `json:"name"`
}

User defines a single user to be configured

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

type UserConfiguration

type UserConfiguration struct {
	Customizations *Customizations `json:"customizations,omitempty"`
	Template       *Template       `json:"template,omitempty"`
}

func (*UserConfiguration) DeepCopy

func (in *UserConfiguration) DeepCopy() *UserConfiguration

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

func (*UserConfiguration) DeepCopyInto

func (in *UserConfiguration) DeepCopyInto(out *UserConfiguration)

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

type VMWorkerConfig

type VMWorkerConfig struct {
	// Architecture defines the architecture of the worker machine
	// +kubebuilder:validation:Optional
	Architecture *Architecture `json:"architecture,omitempty"`
	// DataVolumeSource is the src of the data for the Worker VM RootFS
	// +kubebuilder:validation:Required
	DataVolumeSource cdiv1v1beta1.DataVolumeSource `json:"dataVolumeSource"`
}

func (*VMWorkerConfig) DeepCopy

func (in *VMWorkerConfig) DeepCopy() *VMWorkerConfig

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

func (*VMWorkerConfig) DeepCopyInto

func (in *VMWorkerConfig) DeepCopyInto(out *VMWorkerConfig)

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

type WorkerConfig

type WorkerConfig struct {
	// Name is a unique identifier for the Worker
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// VMWorkerConfig hold the configuration needed to start a managed VM to act as a Worker
	//
	// +kubebuilder:validation:OneOf
	VMWorkerConfig *VMWorkerConfig `json:"vmWorkerConfig,omitempty"`

	// ExternalWorkerConfig hold the configuration needed to configure an existing machine to act as a Worker
	//
	// +kubebuilder:validation:OneOf
	ExternalWorkerConfig *ExternalWorkerConfig `json:"externalWorkerConfig,omitempty"`
}

func (*WorkerConfig) DeepCopy

func (in *WorkerConfig) DeepCopy() *WorkerConfig

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

func (*WorkerConfig) DeepCopyInto

func (in *WorkerConfig) DeepCopyInto(out *WorkerConfig)

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

type WorkersConfig

type WorkersConfig []WorkerConfig

+kubebuilder:validation:MinItems=1

func (WorkersConfig) DeepCopy

func (in WorkersConfig) DeepCopy() WorkersConfig

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

func (WorkersConfig) DeepCopyInto

func (in WorkersConfig) DeepCopyInto(out *WorkersConfig)

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