v1alpha1

package
v0.0.0-...-c22f6ad Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=nomad.nomad.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "nomad.nomad.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	Config_Kind             = "Config"
	Config_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Config_Kind}.String()
	Config_KindAPIVersion   = Config_Kind + "." + CRDGroupVersion.String()
	Config_GroupVersionKind = CRDGroupVersion.WithKind(Config_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Job_Kind             = "Job"
	Job_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Job_Kind}.String()
	Job_KindAPIVersion   = Job_Kind + "." + CRDGroupVersion.String()
	Job_GroupVersionKind = CRDGroupVersion.WithKind(Job_Kind)
)

Repository type metadata.

View Source
var (
	NomadNamespace_Kind             = "NomadNamespace"
	NomadNamespace_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: NomadNamespace_Kind}.String()
	NomadNamespace_KindAPIVersion   = NomadNamespace_Kind + "." + CRDGroupVersion.String()
	NomadNamespace_GroupVersionKind = CRDGroupVersion.WithKind(NomadNamespace_Kind)
)

Repository type metadata.

View Source
var (
	Policy_Kind             = "Policy"
	Policy_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Policy_Kind}.String()
	Policy_KindAPIVersion   = Policy_Kind + "." + CRDGroupVersion.String()
	Policy_GroupVersionKind = CRDGroupVersion.WithKind(Policy_Kind)
)

Repository type metadata.

View Source
var (
	Specification_Kind             = "Specification"
	Specification_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Specification_Kind}.String()
	Specification_KindAPIVersion   = Specification_Kind + "." + CRDGroupVersion.String()
	Specification_GroupVersionKind = CRDGroupVersion.WithKind(Specification_Kind)
)

Repository type metadata.

View Source
var (
	Volume_Kind             = "Volume"
	Volume_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Volume_Kind}.String()
	Volume_KindAPIVersion   = Volume_Kind + "." + CRDGroupVersion.String()
	Volume_GroupVersionKind = CRDGroupVersion.WithKind(Volume_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type CapabilitiesObservation

type CapabilitiesObservation struct {

	// Task drivers disabled for the namespace.
	// Disabled task drivers for the namespace.
	DisabledTaskDrivers []*string `json:"disabledTaskDrivers,omitempty" tf:"disabled_task_drivers,omitempty"`

	// Task drivers enabled for the namespace.
	// Enabled task drivers for the namespace.
	EnabledTaskDrivers []*string `json:"enabledTaskDrivers,omitempty" tf:"enabled_task_drivers,omitempty"`
}

func (*CapabilitiesObservation) DeepCopy

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

func (*CapabilitiesObservation) DeepCopyInto

func (in *CapabilitiesObservation) DeepCopyInto(out *CapabilitiesObservation)

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

type CapabilitiesParameters

type CapabilitiesParameters struct {

	// Task drivers disabled for the namespace.
	// Disabled task drivers for the namespace.
	// +kubebuilder:validation:Optional
	DisabledTaskDrivers []*string `json:"disabledTaskDrivers,omitempty" tf:"disabled_task_drivers,omitempty"`

	// Task drivers enabled for the namespace.
	// Enabled task drivers for the namespace.
	// +kubebuilder:validation:Optional
	EnabledTaskDrivers []*string `json:"enabledTaskDrivers,omitempty" tf:"enabled_task_drivers,omitempty"`
}

func (*CapabilitiesParameters) DeepCopy

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

func (*CapabilitiesParameters) DeepCopyInto

func (in *CapabilitiesParameters) DeepCopyInto(out *CapabilitiesParameters)

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

type CapabilityObservation

type CapabilityObservation struct {

	// Deprecated. Use capability block instead. Defines whether a volume should be available concurrently. Possible values are:
	// Defines whether a volume should be available concurrently.
	AccessMode *string `json:"accessMode,omitempty" tf:"access_mode,omitempty"`

	// Deprecated. Use capability block instead. The storage API that will be used by the volume.
	// The storage API that will be used by the volume.
	AttachmentMode *string `json:"attachmentMode,omitempty" tf:"attachment_mode,omitempty"`
}

func (*CapabilityObservation) DeepCopy

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

func (*CapabilityObservation) DeepCopyInto

func (in *CapabilityObservation) DeepCopyInto(out *CapabilityObservation)

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

type CapabilityParameters

type CapabilityParameters struct {

	// Deprecated. Use capability block instead. Defines whether a volume should be available concurrently. Possible values are:
	// Defines whether a volume should be available concurrently.
	// +kubebuilder:validation:Required
	AccessMode *string `json:"accessMode" tf:"access_mode,omitempty"`

	// Deprecated. Use capability block instead. The storage API that will be used by the volume.
	// The storage API that will be used by the volume.
	// +kubebuilder:validation:Required
	AttachmentMode *string `json:"attachmentMode" tf:"attachment_mode,omitempty"`
}

func (*CapabilityParameters) DeepCopy

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

func (*CapabilityParameters) DeepCopyInto

func (in *CapabilityParameters) DeepCopyInto(out *CapabilityParameters)

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

type Config

type Config struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ConfigSpec   `json:"spec"`
	Status            ConfigStatus `json:"status,omitempty"`
}

Config is the Schema for the Configs API. Manages scheduler configuration on the Nomad server. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,nomad}

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

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

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

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

func (*Config) DeepCopyObject

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

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

func (*Config) GetCondition

func (mg *Config) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Config.

func (*Config) GetConnectionDetailsMapping

func (tr *Config) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Config

func (*Config) GetDeletionPolicy

func (mg *Config) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Config.

func (*Config) GetID

func (tr *Config) GetID() string

GetID returns ID of underlying Terraform resource of this Config

func (*Config) GetManagementPolicy

func (mg *Config) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this Config.

func (*Config) GetObservation

func (tr *Config) GetObservation() (map[string]any, error)

GetObservation of this Config

func (*Config) GetParameters

func (tr *Config) GetParameters() (map[string]any, error)

GetParameters of this Config

func (*Config) GetProviderConfigReference

func (mg *Config) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Config.

func (*Config) GetProviderReference

func (mg *Config) GetProviderReference() *xpv1.Reference

GetProviderReference of this Config. Deprecated: Use GetProviderConfigReference.

func (*Config) GetPublishConnectionDetailsTo

func (mg *Config) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Config.

func (*Config) GetTerraformResourceType

func (mg *Config) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Config

func (*Config) GetTerraformSchemaVersion

func (tr *Config) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Config) GetWriteConnectionSecretToReference

func (mg *Config) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Config.

func (*Config) LateInitialize

func (tr *Config) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Config using its observed tfState. returns True if there are any spec changes for the resource.

func (*Config) SetConditions

func (mg *Config) SetConditions(c ...xpv1.Condition)

SetConditions of this Config.

func (*Config) SetDeletionPolicy

func (mg *Config) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Config.

func (*Config) SetManagementPolicy

func (mg *Config) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this Config.

func (*Config) SetObservation

func (tr *Config) SetObservation(obs map[string]any) error

SetObservation for this Config

func (*Config) SetParameters

func (tr *Config) SetParameters(params map[string]any) error

SetParameters for this Config

func (*Config) SetProviderConfigReference

func (mg *Config) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Config.

func (*Config) SetProviderReference

func (mg *Config) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Config. Deprecated: Use SetProviderConfigReference.

func (*Config) SetPublishConnectionDetailsTo

func (mg *Config) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Config.

func (*Config) SetWriteConnectionSecretToReference

func (mg *Config) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Config.

type ConfigList

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

ConfigList contains a list of Configs

func (*ConfigList) DeepCopy

func (in *ConfigList) DeepCopy() *ConfigList

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

func (*ConfigList) DeepCopyInto

func (in *ConfigList) DeepCopyInto(out *ConfigList)

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

func (*ConfigList) DeepCopyObject

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

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

func (*ConfigList) GetItems

func (l *ConfigList) GetItems() []resource.Managed

GetItems of this ConfigList.

type ConfigObservation

type ConfigObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// When true, tasks may exceed their reserved memory limit.
	// When true, tasks may exceed their reserved memory limit.
	MemoryOversubscriptionEnabled *bool `json:"memoryOversubscriptionEnabled,omitempty" tf:"memory_oversubscription_enabled,omitempty"`

	// Options to enable preemption for various schedulers.
	// Options to enable preemption for various schedulers.
	PreemptionConfig map[string]*bool `json:"preemptionConfig,omitempty" tf:"preemption_config,omitempty"`

	// Specifies whether scheduler binpacks or spreads allocations on available nodes. Possible values are binpack and spread.
	// Specifies whether scheduler binpacks or spreads allocations on available nodes.
	SchedulerAlgorithm *string `json:"schedulerAlgorithm,omitempty" tf:"scheduler_algorithm,omitempty"`
}

func (*ConfigObservation) DeepCopy

func (in *ConfigObservation) DeepCopy() *ConfigObservation

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

func (*ConfigObservation) DeepCopyInto

func (in *ConfigObservation) DeepCopyInto(out *ConfigObservation)

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

type ConfigParameters

type ConfigParameters struct {

	// When true, tasks may exceed their reserved memory limit.
	// When true, tasks may exceed their reserved memory limit.
	// +kubebuilder:validation:Optional
	MemoryOversubscriptionEnabled *bool `json:"memoryOversubscriptionEnabled,omitempty" tf:"memory_oversubscription_enabled,omitempty"`

	// Options to enable preemption for various schedulers.
	// Options to enable preemption for various schedulers.
	// +kubebuilder:validation:Optional
	PreemptionConfig map[string]*bool `json:"preemptionConfig,omitempty" tf:"preemption_config,omitempty"`

	// Specifies whether scheduler binpacks or spreads allocations on available nodes. Possible values are binpack and spread.
	// Specifies whether scheduler binpacks or spreads allocations on available nodes.
	// +kubebuilder:validation:Optional
	SchedulerAlgorithm *string `json:"schedulerAlgorithm,omitempty" tf:"scheduler_algorithm,omitempty"`
}

func (*ConfigParameters) DeepCopy

func (in *ConfigParameters) DeepCopy() *ConfigParameters

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

func (*ConfigParameters) DeepCopyInto

func (in *ConfigParameters) DeepCopyInto(out *ConfigParameters)

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

type ConfigSpec

type ConfigSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ConfigParameters `json:"forProvider"`
}

ConfigSpec defines the desired state of Config

func (*ConfigSpec) DeepCopy

func (in *ConfigSpec) DeepCopy() *ConfigSpec

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

func (*ConfigSpec) DeepCopyInto

func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec)

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

type ConfigStatus

type ConfigStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        ConfigObservation `json:"atProvider,omitempty"`
}

ConfigStatus defines the observed state of Config.

func (*ConfigStatus) DeepCopy

func (in *ConfigStatus) DeepCopy() *ConfigStatus

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

func (*ConfigStatus) DeepCopyInto

func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus)

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

type Hcl2Observation

type Hcl2Observation struct {

	// Set this to true to be able to use
	// HCL2 filesystem functions
	// If true, HCL2 file system functions will be enabled when parsing the `jobspec`.
	AllowFs *bool `json:"allowFs,omitempty" tf:"allow_fs,omitempty"`

	// Set this to true if your jobspec uses the HCL2
	// format instead of the default HCL.
	// If true, the `jobspec` will be parsed as HCL2 instead of HCL.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// Additional variables to use when templating the job with HCL2
	Vars map[string]*string `json:"vars,omitempty" tf:"vars,omitempty"`
}

func (*Hcl2Observation) DeepCopy

func (in *Hcl2Observation) DeepCopy() *Hcl2Observation

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

func (*Hcl2Observation) DeepCopyInto

func (in *Hcl2Observation) DeepCopyInto(out *Hcl2Observation)

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

type Hcl2Parameters

type Hcl2Parameters struct {

	// Set this to true to be able to use
	// HCL2 filesystem functions
	// If true, HCL2 file system functions will be enabled when parsing the `jobspec`.
	// +kubebuilder:validation:Optional
	AllowFs *bool `json:"allowFs,omitempty" tf:"allow_fs,omitempty"`

	// Set this to true if your jobspec uses the HCL2
	// format instead of the default HCL.
	// If true, the `jobspec` will be parsed as HCL2 instead of HCL.
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// Additional variables to use when templating the job with HCL2
	// +kubebuilder:validation:Optional
	Vars map[string]*string `json:"vars,omitempty" tf:"vars,omitempty"`
}

func (*Hcl2Parameters) DeepCopy

func (in *Hcl2Parameters) DeepCopy() *Hcl2Parameters

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

func (*Hcl2Parameters) DeepCopyInto

func (in *Hcl2Parameters) DeepCopyInto(out *Hcl2Parameters)

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

type Job

type Job struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.jobspec)",message="jobspec is a required parameter"
	Spec   JobSpec   `json:"spec"`
	Status JobStatus `json:"status,omitempty"`
}

Job is the Schema for the Jobs API. Manages the lifecycle of registering and deregistering Nomad jobs (applications). +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,nomad}

func (*Job) DeepCopy

func (in *Job) DeepCopy() *Job

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

func (*Job) DeepCopyInto

func (in *Job) DeepCopyInto(out *Job)

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

func (*Job) DeepCopyObject

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

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

func (*Job) GetCondition

func (mg *Job) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Job.

func (*Job) GetConnectionDetailsMapping

func (tr *Job) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Job

func (*Job) GetDeletionPolicy

func (mg *Job) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Job.

func (*Job) GetID

func (tr *Job) GetID() string

GetID returns ID of underlying Terraform resource of this Job

func (*Job) GetManagementPolicy

func (mg *Job) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this Job.

func (*Job) GetObservation

func (tr *Job) GetObservation() (map[string]any, error)

GetObservation of this Job

func (*Job) GetParameters

func (tr *Job) GetParameters() (map[string]any, error)

GetParameters of this Job

func (*Job) GetProviderConfigReference

func (mg *Job) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Job.

func (*Job) GetProviderReference

func (mg *Job) GetProviderReference() *xpv1.Reference

GetProviderReference of this Job. Deprecated: Use GetProviderConfigReference.

func (*Job) GetPublishConnectionDetailsTo

func (mg *Job) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Job.

func (*Job) GetTerraformResourceType

func (mg *Job) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Job

func (*Job) GetTerraformSchemaVersion

func (tr *Job) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Job) GetWriteConnectionSecretToReference

func (mg *Job) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Job.

func (*Job) LateInitialize

func (tr *Job) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Job using its observed tfState. returns True if there are any spec changes for the resource.

func (*Job) SetConditions

func (mg *Job) SetConditions(c ...xpv1.Condition)

SetConditions of this Job.

func (*Job) SetDeletionPolicy

func (mg *Job) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Job.

func (*Job) SetManagementPolicy

func (mg *Job) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this Job.

func (*Job) SetObservation

func (tr *Job) SetObservation(obs map[string]any) error

SetObservation for this Job

func (*Job) SetParameters

func (tr *Job) SetParameters(params map[string]any) error

SetParameters for this Job

func (*Job) SetProviderConfigReference

func (mg *Job) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Job.

func (*Job) SetProviderReference

func (mg *Job) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Job. Deprecated: Use SetProviderConfigReference.

func (*Job) SetPublishConnectionDetailsTo

func (mg *Job) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Job.

func (*Job) SetWriteConnectionSecretToReference

func (mg *Job) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Job.

type JobList

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

JobList contains a list of Jobs

func (*JobList) DeepCopy

func (in *JobList) DeepCopy() *JobList

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

func (*JobList) DeepCopyInto

func (in *JobList) DeepCopyInto(out *JobList)

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

func (*JobList) DeepCopyObject

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

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

func (*JobList) GetItems

func (l *JobList) GetItems() []resource.Managed

GetItems of this JobList.

type JobObservation

type JobObservation struct {

	// The IDs for allocations associated with this job.
	AllocationIds []*string `json:"allocationIds,omitempty" tf:"allocation_ids,omitempty"`

	// The target datacenters for the job, as derived from the jobspec.
	Datacenters []*string `json:"datacenters,omitempty" tf:"datacenters,omitempty"`

	// If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
	DeploymentID *string `json:"deploymentId,omitempty" tf:"deployment_id,omitempty"`

	// If detach = false, the status for the deployment associated with the last job create/update, if one exists.
	DeploymentStatus *string `json:"deploymentStatus,omitempty" tf:"deployment_status,omitempty"`

	// If true, the job will be deregistered on destroy.
	DeregisterOnDestroy *bool `json:"deregisterOnDestroy,omitempty" tf:"deregister_on_destroy,omitempty"`

	// Determines if the job will be
	// deregistered if the ID of the job in the jobspec changes.
	// If true, the job will be deregistered when the job ID changes.
	DeregisterOnIDChange *bool `json:"deregisterOnIdChange,omitempty" tf:"deregister_on_id_change,omitempty"`

	// If true, the provider will return immediately
	// after creating or updating, instead of monitoring.
	// If true, the provider will return immediately after creating or updating, instead of monitoring.
	Detach *bool `json:"detach,omitempty" tf:"detach,omitempty"`

	// Options for the HCL2 jobspec parser.
	// Configuration for the HCL2 jobspec parser.
	Hcl2 []Hcl2Observation `json:"hcl2,omitempty" tf:"hcl2,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Set this to true if your jobspec is structured with
	// JSON instead of the default HCL.
	// If true, the `jobspec` will be parsed as json instead of HCL.
	JSON *bool `json:"json,omitempty" tf:"json,omitempty"`

	// The contents of the jobspec to register.
	// Job specification. If you want to point to a file use the file() function.
	Jobspec *string `json:"jobspec,omitempty" tf:"jobspec,omitempty"`

	// Integer that increments for each change. Used to detect any changes between plan and apply.
	ModifyIndex *string `json:"modifyIndex,omitempty" tf:"modify_index,omitempty"`

	// The name of the job, as derived from the jobspec.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The namespace of the job, as derived from the jobspec.
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// Determines if the job will override any
	// soft-mandatory Sentinel policies and register even if they fail.
	// Override any soft-mandatory Sentinel policies that fail.
	PolicyOverride *bool `json:"policyOverride,omitempty" tf:"policy_override,omitempty"`

	// Set this to true if you want the job to
	// be purged when the resource is destroyed.
	// Whether to purge the job when the resource is destroyed.
	PurgeOnDestroy *bool `json:"purgeOnDestroy,omitempty" tf:"purge_on_destroy,omitempty"`

	// The target region for the job, as derived from the jobspec.
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	TaskGroups []TaskGroupsObservation `json:"taskGroups,omitempty" tf:"task_groups,omitempty"`

	// The type of the job, as derived from the jobspec.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*JobObservation) DeepCopy

func (in *JobObservation) DeepCopy() *JobObservation

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

func (*JobObservation) DeepCopyInto

func (in *JobObservation) DeepCopyInto(out *JobObservation)

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

type JobParameters

type JobParameters struct {

	// Consul token used when registering this job.
	// Will fallback to the value declared in Nomad provider configuration, if any.
	// The Consul token used to submit this job.
	// +kubebuilder:validation:Optional
	ConsulTokenSecretRef *v1.SecretKeySelector `json:"consulTokenSecretRef,omitempty" tf:"-"`

	// If true, the job will be deregistered on destroy.
	// +kubebuilder:validation:Optional
	DeregisterOnDestroy *bool `json:"deregisterOnDestroy,omitempty" tf:"deregister_on_destroy,omitempty"`

	// Determines if the job will be
	// deregistered if the ID of the job in the jobspec changes.
	// If true, the job will be deregistered when the job ID changes.
	// +kubebuilder:validation:Optional
	DeregisterOnIDChange *bool `json:"deregisterOnIdChange,omitempty" tf:"deregister_on_id_change,omitempty"`

	// If true, the provider will return immediately
	// after creating or updating, instead of monitoring.
	// If true, the provider will return immediately after creating or updating, instead of monitoring.
	// +kubebuilder:validation:Optional
	Detach *bool `json:"detach,omitempty" tf:"detach,omitempty"`

	// Options for the HCL2 jobspec parser.
	// Configuration for the HCL2 jobspec parser.
	// +kubebuilder:validation:Optional
	Hcl2 []Hcl2Parameters `json:"hcl2,omitempty" tf:"hcl2,omitempty"`

	// Set this to true if your jobspec is structured with
	// JSON instead of the default HCL.
	// If true, the `jobspec` will be parsed as json instead of HCL.
	// +kubebuilder:validation:Optional
	JSON *bool `json:"json,omitempty" tf:"json,omitempty"`

	// The contents of the jobspec to register.
	// Job specification. If you want to point to a file use the file() function.
	// +kubebuilder:validation:Optional
	Jobspec *string `json:"jobspec,omitempty" tf:"jobspec,omitempty"`

	// Determines if the job will override any
	// soft-mandatory Sentinel policies and register even if they fail.
	// Override any soft-mandatory Sentinel policies that fail.
	// +kubebuilder:validation:Optional
	PolicyOverride *bool `json:"policyOverride,omitempty" tf:"policy_override,omitempty"`

	// Set this to true if you want the job to
	// be purged when the resource is destroyed.
	// Whether to purge the job when the resource is destroyed.
	// +kubebuilder:validation:Optional
	PurgeOnDestroy *bool `json:"purgeOnDestroy,omitempty" tf:"purge_on_destroy,omitempty"`

	// Vault token used when registering this job.
	// Will fallback to the value declared in Nomad provider configuration, if any.
	// The Vault token used to submit this job.
	// +kubebuilder:validation:Optional
	VaultTokenSecretRef *v1.SecretKeySelector `json:"vaultTokenSecretRef,omitempty" tf:"-"`
}

func (*JobParameters) DeepCopy

func (in *JobParameters) DeepCopy() *JobParameters

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

func (*JobParameters) DeepCopyInto

func (in *JobParameters) DeepCopyInto(out *JobParameters)

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

type JobSpec

type JobSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     JobParameters `json:"forProvider"`
}

JobSpec defines the desired state of Job

func (*JobSpec) DeepCopy

func (in *JobSpec) DeepCopy() *JobSpec

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

func (*JobSpec) DeepCopyInto

func (in *JobSpec) DeepCopyInto(out *JobSpec)

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

type JobStatus

type JobStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        JobObservation `json:"atProvider,omitempty"`
}

JobStatus defines the observed state of Job.

func (*JobStatus) DeepCopy

func (in *JobStatus) DeepCopy() *JobStatus

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

func (*JobStatus) DeepCopyInto

func (in *JobStatus) DeepCopyInto(out *JobStatus)

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

type LimitsObservation

type LimitsObservation struct {

	// The region these limits should apply to.
	// Region in which this limit has affect.
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// The limits to enforce. This block
	// may only be specified once in the limits block. Its structure is
	// documented below.
	// The limit applied to this region.
	RegionLimit []RegionLimitObservation `json:"regionLimit,omitempty" tf:"region_limit,omitempty"`
}

func (*LimitsObservation) DeepCopy

func (in *LimitsObservation) DeepCopy() *LimitsObservation

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

func (*LimitsObservation) DeepCopyInto

func (in *LimitsObservation) DeepCopyInto(out *LimitsObservation)

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

type LimitsParameters

type LimitsParameters struct {

	// The region these limits should apply to.
	// Region in which this limit has affect.
	// +kubebuilder:validation:Required
	Region *string `json:"region" tf:"region,omitempty"`

	// The limits to enforce. This block
	// may only be specified once in the limits block. Its structure is
	// documented below.
	// The limit applied to this region.
	// +kubebuilder:validation:Required
	RegionLimit []RegionLimitParameters `json:"regionLimit" tf:"region_limit,omitempty"`
}

func (*LimitsParameters) DeepCopy

func (in *LimitsParameters) DeepCopy() *LimitsParameters

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

func (*LimitsParameters) DeepCopyInto

func (in *LimitsParameters) DeepCopyInto(out *LimitsParameters)

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

type MountOptionsObservation

type MountOptionsObservation struct {

	// The file system type.
	// The file system type.
	FsType *string `json:"fsType,omitempty" tf:"fs_type,omitempty"`

	// The flags passed to mount.
	// The flags passed to mount.
	MountFlags []*string `json:"mountFlags,omitempty" tf:"mount_flags,omitempty"`
}

func (*MountOptionsObservation) DeepCopy

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

func (*MountOptionsObservation) DeepCopyInto

func (in *MountOptionsObservation) DeepCopyInto(out *MountOptionsObservation)

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

type MountOptionsParameters

type MountOptionsParameters struct {

	// The file system type.
	// The file system type.
	// +kubebuilder:validation:Optional
	FsType *string `json:"fsType,omitempty" tf:"fs_type,omitempty"`

	// The flags passed to mount.
	// The flags passed to mount.
	// +kubebuilder:validation:Optional
	MountFlags []*string `json:"mountFlags,omitempty" tf:"mount_flags,omitempty"`
}

func (*MountOptionsParameters) DeepCopy

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

func (*MountOptionsParameters) DeepCopyInto

func (in *MountOptionsParameters) DeepCopyInto(out *MountOptionsParameters)

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

type NomadNamespace

type NomadNamespace struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NomadNamespaceSpec   `json:"spec"`
	Status            NomadNamespaceStatus `json:"status,omitempty"`
}

NomadNamespace is the Schema for the NomadNamespaces API. Provisions a namespace within a Nomad cluster. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,nomad}

func (*NomadNamespace) DeepCopy

func (in *NomadNamespace) DeepCopy() *NomadNamespace

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

func (*NomadNamespace) DeepCopyInto

func (in *NomadNamespace) DeepCopyInto(out *NomadNamespace)

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

func (*NomadNamespace) DeepCopyObject

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

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

func (*NomadNamespace) GetCondition

func (mg *NomadNamespace) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this NomadNamespace.

func (*NomadNamespace) GetConnectionDetailsMapping

func (tr *NomadNamespace) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this NomadNamespace

func (*NomadNamespace) GetDeletionPolicy

func (mg *NomadNamespace) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this NomadNamespace.

func (*NomadNamespace) GetID

func (tr *NomadNamespace) GetID() string

GetID returns ID of underlying Terraform resource of this NomadNamespace

func (*NomadNamespace) GetManagementPolicy

func (mg *NomadNamespace) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this NomadNamespace.

func (*NomadNamespace) GetObservation

func (tr *NomadNamespace) GetObservation() (map[string]any, error)

GetObservation of this NomadNamespace

func (*NomadNamespace) GetParameters

func (tr *NomadNamespace) GetParameters() (map[string]any, error)

GetParameters of this NomadNamespace

func (*NomadNamespace) GetProviderConfigReference

func (mg *NomadNamespace) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this NomadNamespace.

func (*NomadNamespace) GetProviderReference

func (mg *NomadNamespace) GetProviderReference() *xpv1.Reference

GetProviderReference of this NomadNamespace. Deprecated: Use GetProviderConfigReference.

func (*NomadNamespace) GetPublishConnectionDetailsTo

func (mg *NomadNamespace) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this NomadNamespace.

func (*NomadNamespace) GetTerraformResourceType

func (mg *NomadNamespace) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this NomadNamespace

func (*NomadNamespace) GetTerraformSchemaVersion

func (tr *NomadNamespace) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*NomadNamespace) GetWriteConnectionSecretToReference

func (mg *NomadNamespace) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this NomadNamespace.

func (*NomadNamespace) LateInitialize

func (tr *NomadNamespace) LateInitialize(attrs []byte) (bool, error)

LateInitialize this NomadNamespace using its observed tfState. returns True if there are any spec changes for the resource.

func (*NomadNamespace) SetConditions

func (mg *NomadNamespace) SetConditions(c ...xpv1.Condition)

SetConditions of this NomadNamespace.

func (*NomadNamespace) SetDeletionPolicy

func (mg *NomadNamespace) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this NomadNamespace.

func (*NomadNamespace) SetManagementPolicy

func (mg *NomadNamespace) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this NomadNamespace.

func (*NomadNamespace) SetObservation

func (tr *NomadNamespace) SetObservation(obs map[string]any) error

SetObservation for this NomadNamespace

func (*NomadNamespace) SetParameters

func (tr *NomadNamespace) SetParameters(params map[string]any) error

SetParameters for this NomadNamespace

func (*NomadNamespace) SetProviderConfigReference

func (mg *NomadNamespace) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this NomadNamespace.

func (*NomadNamespace) SetProviderReference

func (mg *NomadNamespace) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this NomadNamespace. Deprecated: Use SetProviderConfigReference.

func (*NomadNamespace) SetPublishConnectionDetailsTo

func (mg *NomadNamespace) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this NomadNamespace.

func (*NomadNamespace) SetWriteConnectionSecretToReference

func (mg *NomadNamespace) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this NomadNamespace.

type NomadNamespaceList

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

NomadNamespaceList contains a list of NomadNamespaces

func (*NomadNamespaceList) DeepCopy

func (in *NomadNamespaceList) DeepCopy() *NomadNamespaceList

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

func (*NomadNamespaceList) DeepCopyInto

func (in *NomadNamespaceList) DeepCopyInto(out *NomadNamespaceList)

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

func (*NomadNamespaceList) DeepCopyObject

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

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

func (*NomadNamespaceList) GetItems

func (l *NomadNamespaceList) GetItems() []resource.Managed

GetItems of this NomadNamespaceList.

type NomadNamespaceObservation

type NomadNamespaceObservation struct {

	// A block of capabilities for the namespace. Can't
	// be repeated. See below for the structure of this block.
	// Capabilities of the namespace.
	Capabilities []CapabilitiesObservation `json:"capabilities,omitempty" tf:"capabilities,omitempty"`

	// A description of the namespace.
	// Description for this namespace.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Specifies arbitrary KV metadata to associate with the namespace.
	// Metadata associated with the namespace.
	Meta map[string]*string `json:"meta,omitempty" tf:"meta,omitempty"`

	// A resource quota to attach to the namespace.
	// Quota to set for this namespace.
	Quota *string `json:"quota,omitempty" tf:"quota,omitempty"`
}

func (*NomadNamespaceObservation) DeepCopy

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

func (*NomadNamespaceObservation) DeepCopyInto

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

type NomadNamespaceParameters

type NomadNamespaceParameters struct {

	// A block of capabilities for the namespace. Can't
	// be repeated. See below for the structure of this block.
	// Capabilities of the namespace.
	// +kubebuilder:validation:Optional
	Capabilities []CapabilitiesParameters `json:"capabilities,omitempty" tf:"capabilities,omitempty"`

	// A description of the namespace.
	// Description for this namespace.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Specifies arbitrary KV metadata to associate with the namespace.
	// Metadata associated with the namespace.
	// +kubebuilder:validation:Optional
	Meta map[string]*string `json:"meta,omitempty" tf:"meta,omitempty"`

	// A resource quota to attach to the namespace.
	// Quota to set for this namespace.
	// +kubebuilder:validation:Optional
	Quota *string `json:"quota,omitempty" tf:"quota,omitempty"`
}

func (*NomadNamespaceParameters) DeepCopy

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

func (*NomadNamespaceParameters) DeepCopyInto

func (in *NomadNamespaceParameters) DeepCopyInto(out *NomadNamespaceParameters)

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

type NomadNamespaceSpec

type NomadNamespaceSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     NomadNamespaceParameters `json:"forProvider"`
}

NomadNamespaceSpec defines the desired state of NomadNamespace

func (*NomadNamespaceSpec) DeepCopy

func (in *NomadNamespaceSpec) DeepCopy() *NomadNamespaceSpec

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

func (*NomadNamespaceSpec) DeepCopyInto

func (in *NomadNamespaceSpec) DeepCopyInto(out *NomadNamespaceSpec)

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

type NomadNamespaceStatus

type NomadNamespaceStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        NomadNamespaceObservation `json:"atProvider,omitempty"`
}

NomadNamespaceStatus defines the observed state of NomadNamespace.

func (*NomadNamespaceStatus) DeepCopy

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

func (*NomadNamespaceStatus) DeepCopyInto

func (in *NomadNamespaceStatus) DeepCopyInto(out *NomadNamespaceStatus)

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

type Policy

type Policy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.enforcementLevel)",message="enforcementLevel is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.policy)",message="policy is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.scope)",message="scope is a required parameter"
	Spec   PolicySpec   `json:"spec"`
	Status PolicyStatus `json:"status,omitempty"`
}

Policy is the Schema for the Policys API. Manages a Sentinel policy registered on the Nomad server. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,nomad}

func (*Policy) DeepCopy

func (in *Policy) DeepCopy() *Policy

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

func (*Policy) DeepCopyInto

func (in *Policy) DeepCopyInto(out *Policy)

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

func (*Policy) DeepCopyObject

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

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

func (*Policy) GetCondition

func (mg *Policy) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Policy.

func (*Policy) GetConnectionDetailsMapping

func (tr *Policy) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Policy

func (*Policy) GetDeletionPolicy

func (mg *Policy) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Policy.

func (*Policy) GetID

func (tr *Policy) GetID() string

GetID returns ID of underlying Terraform resource of this Policy

func (*Policy) GetManagementPolicy

func (mg *Policy) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this Policy.

func (*Policy) GetObservation

func (tr *Policy) GetObservation() (map[string]any, error)

GetObservation of this Policy

func (*Policy) GetParameters

func (tr *Policy) GetParameters() (map[string]any, error)

GetParameters of this Policy

func (*Policy) GetProviderConfigReference

func (mg *Policy) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Policy.

func (*Policy) GetProviderReference

func (mg *Policy) GetProviderReference() *xpv1.Reference

GetProviderReference of this Policy. Deprecated: Use GetProviderConfigReference.

func (*Policy) GetPublishConnectionDetailsTo

func (mg *Policy) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Policy.

func (*Policy) GetTerraformResourceType

func (mg *Policy) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Policy

func (*Policy) GetTerraformSchemaVersion

func (tr *Policy) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Policy) GetWriteConnectionSecretToReference

func (mg *Policy) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Policy.

func (*Policy) LateInitialize

func (tr *Policy) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Policy using its observed tfState. returns True if there are any spec changes for the resource.

func (*Policy) SetConditions

func (mg *Policy) SetConditions(c ...xpv1.Condition)

SetConditions of this Policy.

func (*Policy) SetDeletionPolicy

func (mg *Policy) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Policy.

func (*Policy) SetManagementPolicy

func (mg *Policy) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this Policy.

func (*Policy) SetObservation

func (tr *Policy) SetObservation(obs map[string]any) error

SetObservation for this Policy

func (*Policy) SetParameters

func (tr *Policy) SetParameters(params map[string]any) error

SetParameters for this Policy

func (*Policy) SetProviderConfigReference

func (mg *Policy) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Policy.

func (*Policy) SetProviderReference

func (mg *Policy) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Policy. Deprecated: Use SetProviderConfigReference.

func (*Policy) SetPublishConnectionDetailsTo

func (mg *Policy) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Policy.

func (*Policy) SetWriteConnectionSecretToReference

func (mg *Policy) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Policy.

type PolicyList

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

PolicyList contains a list of Policys

func (*PolicyList) DeepCopy

func (in *PolicyList) DeepCopy() *PolicyList

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

func (*PolicyList) DeepCopyInto

func (in *PolicyList) DeepCopyInto(out *PolicyList)

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

func (*PolicyList) DeepCopyObject

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

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

func (*PolicyList) GetItems

func (l *PolicyList) GetItems() []resource.Managed

GetItems of this PolicyList.

type PolicyObservation

type PolicyObservation struct {

	// A description of the policy.
	// Description for this policy.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The enforcement level
	// for this policy.
	// Specifies the enforcement level of the policy.
	EnforcementLevel *string `json:"enforcementLevel,omitempty" tf:"enforcement_level,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The contents of the policy to register.
	// The Sentinel policy.
	Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`

	// The scope for this policy.
	// Specifies the scope for this policy. Only 'submit-job' is currently supported.
	Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
}

func (*PolicyObservation) DeepCopy

func (in *PolicyObservation) DeepCopy() *PolicyObservation

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

func (*PolicyObservation) DeepCopyInto

func (in *PolicyObservation) DeepCopyInto(out *PolicyObservation)

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

type PolicyParameters

type PolicyParameters struct {

	// A description of the policy.
	// Description for this policy.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The enforcement level
	// for this policy.
	// Specifies the enforcement level of the policy.
	// +kubebuilder:validation:Optional
	EnforcementLevel *string `json:"enforcementLevel,omitempty" tf:"enforcement_level,omitempty"`

	// The contents of the policy to register.
	// The Sentinel policy.
	// +kubebuilder:validation:Optional
	Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`

	// The scope for this policy.
	// Specifies the scope for this policy. Only 'submit-job' is currently supported.
	// +kubebuilder:validation:Optional
	Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
}

func (*PolicyParameters) DeepCopy

func (in *PolicyParameters) DeepCopy() *PolicyParameters

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

func (*PolicyParameters) DeepCopyInto

func (in *PolicyParameters) DeepCopyInto(out *PolicyParameters)

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

type PolicySpec

type PolicySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     PolicyParameters `json:"forProvider"`
}

PolicySpec defines the desired state of Policy

func (*PolicySpec) DeepCopy

func (in *PolicySpec) DeepCopy() *PolicySpec

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

func (*PolicySpec) DeepCopyInto

func (in *PolicySpec) DeepCopyInto(out *PolicySpec)

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

type PolicyStatus

type PolicyStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        PolicyObservation `json:"atProvider,omitempty"`
}

PolicyStatus defines the observed state of Policy.

func (*PolicyStatus) DeepCopy

func (in *PolicyStatus) DeepCopy() *PolicyStatus

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

func (*PolicyStatus) DeepCopyInto

func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus)

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

type RegionLimitObservation

type RegionLimitObservation struct {

	// The amount of CPU to limit allocations to. A value of zero
	// is treated as unlimited, and a negative value is treated as fully disallowed.
	CPU *float64 `json:"cpu,omitempty" tf:"cpu,omitempty"`

	// The amount of memory (in megabytes) to limit
	// allocations to. A value of zero is treated as unlimited, and a negative value
	// is treated as fully disallowed.
	MemoryMb *float64 `json:"memoryMb,omitempty" tf:"memory_mb,omitempty"`
}

func (*RegionLimitObservation) DeepCopy

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

func (*RegionLimitObservation) DeepCopyInto

func (in *RegionLimitObservation) DeepCopyInto(out *RegionLimitObservation)

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

type RegionLimitParameters

type RegionLimitParameters struct {

	// The amount of CPU to limit allocations to. A value of zero
	// is treated as unlimited, and a negative value is treated as fully disallowed.
	// +kubebuilder:validation:Optional
	CPU *float64 `json:"cpu,omitempty" tf:"cpu,omitempty"`

	// The amount of memory (in megabytes) to limit
	// allocations to. A value of zero is treated as unlimited, and a negative value
	// is treated as fully disallowed.
	// +kubebuilder:validation:Optional
	MemoryMb *float64 `json:"memoryMb,omitempty" tf:"memory_mb,omitempty"`
}

func (*RegionLimitParameters) DeepCopy

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

func (*RegionLimitParameters) DeepCopyInto

func (in *RegionLimitParameters) DeepCopyInto(out *RegionLimitParameters)

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

type RequiredObservation

type RequiredObservation struct {

	// Defines the location for the volume.
	// Defines the location for the volume.
	Topology []TopologyObservation `json:"topology,omitempty" tf:"topology,omitempty"`
}

func (*RequiredObservation) DeepCopy

func (in *RequiredObservation) DeepCopy() *RequiredObservation

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

func (*RequiredObservation) DeepCopyInto

func (in *RequiredObservation) DeepCopyInto(out *RequiredObservation)

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

type RequiredParameters

type RequiredParameters struct {

	// Defines the location for the volume.
	// Defines the location for the volume.
	// +kubebuilder:validation:Required
	Topology []TopologyParameters `json:"topology" tf:"topology,omitempty"`
}

func (*RequiredParameters) DeepCopy

func (in *RequiredParameters) DeepCopy() *RequiredParameters

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

func (*RequiredParameters) DeepCopyInto

func (in *RequiredParameters) DeepCopyInto(out *RequiredParameters)

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

type Specification

type Specification struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.limits)",message="limits is a required parameter"
	Spec   SpecificationSpec   `json:"spec"`
	Status SpecificationStatus `json:"status,omitempty"`
}

Specification is the Schema for the Specifications API. Manages a quota specification in a Nomad cluster. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,nomad}

func (*Specification) DeepCopy

func (in *Specification) DeepCopy() *Specification

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

func (*Specification) DeepCopyInto

func (in *Specification) DeepCopyInto(out *Specification)

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

func (*Specification) DeepCopyObject

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

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

func (*Specification) GetCondition

func (mg *Specification) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Specification.

func (*Specification) GetConnectionDetailsMapping

func (tr *Specification) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Specification

func (*Specification) GetDeletionPolicy

func (mg *Specification) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Specification.

func (*Specification) GetID

func (tr *Specification) GetID() string

GetID returns ID of underlying Terraform resource of this Specification

func (*Specification) GetManagementPolicy

func (mg *Specification) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this Specification.

func (*Specification) GetObservation

func (tr *Specification) GetObservation() (map[string]any, error)

GetObservation of this Specification

func (*Specification) GetParameters

func (tr *Specification) GetParameters() (map[string]any, error)

GetParameters of this Specification

func (*Specification) GetProviderConfigReference

func (mg *Specification) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Specification.

func (*Specification) GetProviderReference

func (mg *Specification) GetProviderReference() *xpv1.Reference

GetProviderReference of this Specification. Deprecated: Use GetProviderConfigReference.

func (*Specification) GetPublishConnectionDetailsTo

func (mg *Specification) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Specification.

func (*Specification) GetTerraformResourceType

func (mg *Specification) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Specification

func (*Specification) GetTerraformSchemaVersion

func (tr *Specification) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Specification) GetWriteConnectionSecretToReference

func (mg *Specification) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Specification.

func (*Specification) LateInitialize

func (tr *Specification) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Specification using its observed tfState. returns True if there are any spec changes for the resource.

func (*Specification) SetConditions

func (mg *Specification) SetConditions(c ...xpv1.Condition)

SetConditions of this Specification.

func (*Specification) SetDeletionPolicy

func (mg *Specification) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Specification.

func (*Specification) SetManagementPolicy

func (mg *Specification) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this Specification.

func (*Specification) SetObservation

func (tr *Specification) SetObservation(obs map[string]any) error

SetObservation for this Specification

func (*Specification) SetParameters

func (tr *Specification) SetParameters(params map[string]any) error

SetParameters for this Specification

func (*Specification) SetProviderConfigReference

func (mg *Specification) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Specification.

func (*Specification) SetProviderReference

func (mg *Specification) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Specification. Deprecated: Use SetProviderConfigReference.

func (*Specification) SetPublishConnectionDetailsTo

func (mg *Specification) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Specification.

func (*Specification) SetWriteConnectionSecretToReference

func (mg *Specification) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Specification.

type SpecificationList

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

SpecificationList contains a list of Specifications

func (*SpecificationList) DeepCopy

func (in *SpecificationList) DeepCopy() *SpecificationList

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

func (*SpecificationList) DeepCopyInto

func (in *SpecificationList) DeepCopyInto(out *SpecificationList)

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

func (*SpecificationList) DeepCopyObject

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

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

func (*SpecificationList) GetItems

func (l *SpecificationList) GetItems() []resource.Managed

GetItems of this SpecificationList.

type SpecificationObservation

type SpecificationObservation struct {

	// A description of the quota specification.
	// Description for this quota specification.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// A block of quota limits to enforce. Can
	// be repeated. See below for the structure of this block.
	// Limits encapsulated by this quota specification.
	Limits []LimitsObservation `json:"limits,omitempty" tf:"limits,omitempty"`
}

func (*SpecificationObservation) DeepCopy

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

func (*SpecificationObservation) DeepCopyInto

func (in *SpecificationObservation) DeepCopyInto(out *SpecificationObservation)

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

type SpecificationParameters

type SpecificationParameters struct {

	// A description of the quota specification.
	// Description for this quota specification.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// A block of quota limits to enforce. Can
	// be repeated. See below for the structure of this block.
	// Limits encapsulated by this quota specification.
	// +kubebuilder:validation:Optional
	Limits []LimitsParameters `json:"limits,omitempty" tf:"limits,omitempty"`
}

func (*SpecificationParameters) DeepCopy

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

func (*SpecificationParameters) DeepCopyInto

func (in *SpecificationParameters) DeepCopyInto(out *SpecificationParameters)

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

type SpecificationSpec

type SpecificationSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     SpecificationParameters `json:"forProvider"`
}

SpecificationSpec defines the desired state of Specification

func (*SpecificationSpec) DeepCopy

func (in *SpecificationSpec) DeepCopy() *SpecificationSpec

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

func (*SpecificationSpec) DeepCopyInto

func (in *SpecificationSpec) DeepCopyInto(out *SpecificationSpec)

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

type SpecificationStatus

type SpecificationStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        SpecificationObservation `json:"atProvider,omitempty"`
}

SpecificationStatus defines the observed state of Specification.

func (*SpecificationStatus) DeepCopy

func (in *SpecificationStatus) DeepCopy() *SpecificationStatus

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

func (*SpecificationStatus) DeepCopyInto

func (in *SpecificationStatus) DeepCopyInto(out *SpecificationStatus)

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

type TaskGroupsObservation

type TaskGroupsObservation struct {
	Count *float64 `json:"count,omitempty" tf:"count,omitempty"`

	Meta map[string]*string `json:"meta,omitempty" tf:"meta,omitempty"`

	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	Task []TaskObservation `json:"task,omitempty" tf:"task,omitempty"`

	Volumes []VolumesObservation `json:"volumes,omitempty" tf:"volumes,omitempty"`
}

func (*TaskGroupsObservation) DeepCopy

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

func (*TaskGroupsObservation) DeepCopyInto

func (in *TaskGroupsObservation) DeepCopyInto(out *TaskGroupsObservation)

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

type TaskGroupsParameters

type TaskGroupsParameters struct {
}

func (*TaskGroupsParameters) DeepCopy

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

func (*TaskGroupsParameters) DeepCopyInto

func (in *TaskGroupsParameters) DeepCopyInto(out *TaskGroupsParameters)

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

type TaskObservation

type TaskObservation struct {
	Driver *string `json:"driver,omitempty" tf:"driver,omitempty"`

	Meta map[string]*string `json:"meta,omitempty" tf:"meta,omitempty"`

	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	VolumeMounts []VolumeMountsObservation `json:"volumeMounts,omitempty" tf:"volume_mounts,omitempty"`
}

func (*TaskObservation) DeepCopy

func (in *TaskObservation) DeepCopy() *TaskObservation

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

func (*TaskObservation) DeepCopyInto

func (in *TaskObservation) DeepCopyInto(out *TaskObservation)

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

type TaskParameters

type TaskParameters struct {
}

func (*TaskParameters) DeepCopy

func (in *TaskParameters) DeepCopy() *TaskParameters

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

func (*TaskParameters) DeepCopyInto

func (in *TaskParameters) DeepCopyInto(out *TaskParameters)

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

type TopologiesObservation

type TopologiesObservation struct {

	// Define the attributes for the topology request.
	Segments map[string]*string `json:"segments,omitempty" tf:"segments,omitempty"`
}

func (*TopologiesObservation) DeepCopy

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

func (*TopologiesObservation) DeepCopyInto

func (in *TopologiesObservation) DeepCopyInto(out *TopologiesObservation)

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

type TopologiesParameters

type TopologiesParameters struct {
}

func (*TopologiesParameters) DeepCopy

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

func (*TopologiesParameters) DeepCopyInto

func (in *TopologiesParameters) DeepCopyInto(out *TopologiesParameters)

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

type TopologyObservation

type TopologyObservation struct {

	// Define the attributes for the topology request.
	// Define attributes for the topology request.
	Segments map[string]*string `json:"segments,omitempty" tf:"segments,omitempty"`
}

func (*TopologyObservation) DeepCopy

func (in *TopologyObservation) DeepCopy() *TopologyObservation

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

func (*TopologyObservation) DeepCopyInto

func (in *TopologyObservation) DeepCopyInto(out *TopologyObservation)

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

type TopologyParameters

type TopologyParameters struct {

	// Define the attributes for the topology request.
	// Define attributes for the topology request.
	// +kubebuilder:validation:Required
	Segments map[string]*string `json:"segments" tf:"segments,omitempty"`
}

func (*TopologyParameters) DeepCopy

func (in *TopologyParameters) DeepCopy() *TopologyParameters

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

func (*TopologyParameters) DeepCopyInto

func (in *TopologyParameters) DeepCopyInto(out *TopologyParameters)

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

type TopologyRequestObservation

type TopologyRequestObservation struct {

	// Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
	// Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
	Required []RequiredObservation `json:"required,omitempty" tf:"required,omitempty"`
}

func (*TopologyRequestObservation) DeepCopy

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

func (*TopologyRequestObservation) DeepCopyInto

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

type TopologyRequestParameters

type TopologyRequestParameters struct {

	// Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
	// Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
	// +kubebuilder:validation:Optional
	Required []RequiredParameters `json:"required,omitempty" tf:"required,omitempty"`
}

func (*TopologyRequestParameters) DeepCopy

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

func (*TopologyRequestParameters) DeepCopyInto

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

type Volume

type Volume struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.externalId)",message="externalId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.pluginId)",message="pluginId is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.volumeId)",message="volumeId is a required parameter"
	Spec   VolumeSpec   `json:"spec"`
	Status VolumeStatus `json:"status,omitempty"`
}

Volume is the Schema for the Volumes API. Manages the lifecycle of registering and deregistering Nomad volumes. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,nomad}

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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

func (*Volume) DeepCopyObject

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

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

func (*Volume) GetCondition

func (mg *Volume) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Volume.

func (*Volume) GetConnectionDetailsMapping

func (tr *Volume) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Volume

func (*Volume) GetDeletionPolicy

func (mg *Volume) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Volume.

func (*Volume) GetID

func (tr *Volume) GetID() string

GetID returns ID of underlying Terraform resource of this Volume

func (*Volume) GetManagementPolicy

func (mg *Volume) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this Volume.

func (*Volume) GetObservation

func (tr *Volume) GetObservation() (map[string]any, error)

GetObservation of this Volume

func (*Volume) GetParameters

func (tr *Volume) GetParameters() (map[string]any, error)

GetParameters of this Volume

func (*Volume) GetProviderConfigReference

func (mg *Volume) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Volume.

func (*Volume) GetProviderReference

func (mg *Volume) GetProviderReference() *xpv1.Reference

GetProviderReference of this Volume. Deprecated: Use GetProviderConfigReference.

func (*Volume) GetPublishConnectionDetailsTo

func (mg *Volume) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Volume.

func (*Volume) GetTerraformResourceType

func (mg *Volume) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Volume

func (*Volume) GetTerraformSchemaVersion

func (tr *Volume) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Volume) GetWriteConnectionSecretToReference

func (mg *Volume) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Volume.

func (*Volume) LateInitialize

func (tr *Volume) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Volume using its observed tfState. returns True if there are any spec changes for the resource.

func (*Volume) SetConditions

func (mg *Volume) SetConditions(c ...xpv1.Condition)

SetConditions of this Volume.

func (*Volume) SetDeletionPolicy

func (mg *Volume) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Volume.

func (*Volume) SetManagementPolicy

func (mg *Volume) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this Volume.

func (*Volume) SetObservation

func (tr *Volume) SetObservation(obs map[string]any) error

SetObservation for this Volume

func (*Volume) SetParameters

func (tr *Volume) SetParameters(params map[string]any) error

SetParameters for this Volume

func (*Volume) SetProviderConfigReference

func (mg *Volume) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Volume.

func (*Volume) SetProviderReference

func (mg *Volume) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Volume. Deprecated: Use SetProviderConfigReference.

func (*Volume) SetPublishConnectionDetailsTo

func (mg *Volume) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Volume.

func (*Volume) SetWriteConnectionSecretToReference

func (mg *Volume) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Volume.

type VolumeList

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

VolumeList contains a list of Volumes

func (*VolumeList) DeepCopy

func (in *VolumeList) DeepCopy() *VolumeList

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

func (*VolumeList) DeepCopyInto

func (in *VolumeList) DeepCopyInto(out *VolumeList)

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

func (*VolumeList) DeepCopyObject

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

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

func (*VolumeList) GetItems

func (l *VolumeList) GetItems() []resource.Managed

GetItems of this VolumeList.

type VolumeMountsObservation

type VolumeMountsObservation struct {
	Destination *string `json:"destination,omitempty" tf:"destination,omitempty"`

	ReadOnly *bool `json:"readOnly,omitempty" tf:"read_only,omitempty"`

	Volume *string `json:"volume,omitempty" tf:"volume,omitempty"`
}

func (*VolumeMountsObservation) DeepCopy

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

func (*VolumeMountsObservation) DeepCopyInto

func (in *VolumeMountsObservation) DeepCopyInto(out *VolumeMountsObservation)

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

type VolumeMountsParameters

type VolumeMountsParameters struct {
}

func (*VolumeMountsParameters) DeepCopy

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

func (*VolumeMountsParameters) DeepCopyInto

func (in *VolumeMountsParameters) DeepCopyInto(out *VolumeMountsParameters)

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

type VolumeObservation

type VolumeObservation struct {

	// Deprecated. Use capability block instead. Defines whether a volume should be available concurrently. Possible values are:
	// Defines whether a volume should be available concurrently.
	AccessMode *string `json:"accessMode,omitempty" tf:"access_mode,omitempty"`

	// Deprecated. Use capability block instead. The storage API that will be used by the volume.
	// The storage API that will be used by the volume.
	AttachmentMode *string `json:"attachmentMode,omitempty" tf:"attachment_mode,omitempty"`

	// Options for validating the capability of a volume.
	// Capabilities intended to be used in a job. At least one capability must be provided.
	Capability []CapabilityObservation `json:"capability,omitempty" tf:"capability,omitempty"`

	// An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
	// An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
	Context map[string]*string `json:"context,omitempty" tf:"context,omitempty"`

	// : (boolean)
	ControllerRequired *bool `json:"controllerRequired,omitempty" tf:"controller_required,omitempty"`

	// : (integer)
	ControllersExpected *float64 `json:"controllersExpected,omitempty" tf:"controllers_expected,omitempty"`

	// : (integer)
	ControllersHealthy *float64 `json:"controllersHealthy,omitempty" tf:"controllers_healthy,omitempty"`

	// If true, the volume will be deregistered on destroy.
	// If true, the volume will be deregistered on destroy.
	DeregisterOnDestroy *bool `json:"deregisterOnDestroy,omitempty" tf:"deregister_on_destroy,omitempty"`

	// The ID of the physical volume from the storage provider.
	// The ID of the physical volume from the storage provider.
	ExternalID *string `json:"externalId,omitempty" tf:"external_id,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// device volumes without a pre-formatted file system.
	// Options for mounting 'block-device' volumes without a pre-formatted file system.
	MountOptions []MountOptionsObservation `json:"mountOptions,omitempty" tf:"mount_options,omitempty"`

	// The namespace in which to register the volume.
	// The namespace in which to create the volume.
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// : (integer)
	NodesExpected *float64 `json:"nodesExpected,omitempty" tf:"nodes_expected,omitempty"`

	// : (integer)
	NodesHealthy *float64 `json:"nodesHealthy,omitempty" tf:"nodes_healthy,omitempty"`

	// An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
	// An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
	Parameters map[string]*string `json:"parameters,omitempty" tf:"parameters,omitempty"`

	// The ID of the Nomad plugin for registering this volume.
	// The ID of the CSI plugin that manages this volume.
	PluginID *string `json:"pluginId,omitempty" tf:"plugin_id,omitempty"`

	// : (string)
	PluginProvider *string `json:"pluginProvider,omitempty" tf:"plugin_provider,omitempty"`

	// : (string)
	PluginProviderVersion *string `json:"pluginProviderVersion,omitempty" tf:"plugin_provider_version,omitempty"`

	// : (boolean)
	Schedulable *bool `json:"schedulable,omitempty" tf:"schedulable,omitempty"`

	// : (List of topologies)
	Topologies []TopologiesObservation `json:"topologies,omitempty" tf:"topologies,omitempty"`

	// Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
	// Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
	TopologyRequest []TopologyRequestObservation `json:"topologyRequest,omitempty" tf:"topology_request,omitempty"`

	// The type of the volume. Currently, only csi is supported.
	// The type of the volume. Currently, only 'csi' is supported.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// The unique ID of the volume.
	// The unique ID of the volume, how jobs will refer to the volume.
	VolumeID *string `json:"volumeId,omitempty" tf:"volume_id,omitempty"`
}

func (*VolumeObservation) DeepCopy

func (in *VolumeObservation) DeepCopy() *VolumeObservation

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

func (*VolumeObservation) DeepCopyInto

func (in *VolumeObservation) DeepCopyInto(out *VolumeObservation)

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

type VolumeParameters

type VolumeParameters struct {

	// Deprecated. Use capability block instead. Defines whether a volume should be available concurrently. Possible values are:
	// Defines whether a volume should be available concurrently.
	// +kubebuilder:validation:Optional
	AccessMode *string `json:"accessMode,omitempty" tf:"access_mode,omitempty"`

	// Deprecated. Use capability block instead. The storage API that will be used by the volume.
	// The storage API that will be used by the volume.
	// +kubebuilder:validation:Optional
	AttachmentMode *string `json:"attachmentMode,omitempty" tf:"attachment_mode,omitempty"`

	// Options for validating the capability of a volume.
	// Capabilities intended to be used in a job. At least one capability must be provided.
	// +kubebuilder:validation:Optional
	Capability []CapabilityParameters `json:"capability,omitempty" tf:"capability,omitempty"`

	// An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
	// An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
	// +kubebuilder:validation:Optional
	Context map[string]*string `json:"context,omitempty" tf:"context,omitempty"`

	// If true, the volume will be deregistered on destroy.
	// If true, the volume will be deregistered on destroy.
	// +kubebuilder:validation:Optional
	DeregisterOnDestroy *bool `json:"deregisterOnDestroy,omitempty" tf:"deregister_on_destroy,omitempty"`

	// The ID of the physical volume from the storage provider.
	// The ID of the physical volume from the storage provider.
	// +kubebuilder:validation:Optional
	ExternalID *string `json:"externalId,omitempty" tf:"external_id,omitempty"`

	// device volumes without a pre-formatted file system.
	// Options for mounting 'block-device' volumes without a pre-formatted file system.
	// +kubebuilder:validation:Optional
	MountOptions []MountOptionsParameters `json:"mountOptions,omitempty" tf:"mount_options,omitempty"`

	// The namespace in which to register the volume.
	// The namespace in which to create the volume.
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`

	// An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
	// An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
	// +kubebuilder:validation:Optional
	Parameters map[string]*string `json:"parameters,omitempty" tf:"parameters,omitempty"`

	// The ID of the Nomad plugin for registering this volume.
	// The ID of the CSI plugin that manages this volume.
	// +kubebuilder:validation:Optional
	PluginID *string `json:"pluginId,omitempty" tf:"plugin_id,omitempty"`

	// An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
	// An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
	// +kubebuilder:validation:Optional
	SecretsSecretRef *v1.SecretReference `json:"secretsSecretRef,omitempty" tf:"-"`

	// Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
	// Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
	// +kubebuilder:validation:Optional
	TopologyRequest []TopologyRequestParameters `json:"topologyRequest,omitempty" tf:"topology_request,omitempty"`

	// The type of the volume. Currently, only csi is supported.
	// The type of the volume. Currently, only 'csi' is supported.
	// +kubebuilder:validation:Optional
	Type *string `json:"type,omitempty" tf:"type,omitempty"`

	// The unique ID of the volume.
	// The unique ID of the volume, how jobs will refer to the volume.
	// +kubebuilder:validation:Optional
	VolumeID *string `json:"volumeId,omitempty" tf:"volume_id,omitempty"`
}

func (*VolumeParameters) DeepCopy

func (in *VolumeParameters) DeepCopy() *VolumeParameters

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

func (*VolumeParameters) DeepCopyInto

func (in *VolumeParameters) DeepCopyInto(out *VolumeParameters)

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

type VolumeSpec

type VolumeSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     VolumeParameters `json:"forProvider"`
}

VolumeSpec defines the desired state of Volume

func (*VolumeSpec) DeepCopy

func (in *VolumeSpec) DeepCopy() *VolumeSpec

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

func (*VolumeSpec) DeepCopyInto

func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec)

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

type VolumeStatus

type VolumeStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        VolumeObservation `json:"atProvider,omitempty"`
}

VolumeStatus defines the observed state of Volume.

func (*VolumeStatus) DeepCopy

func (in *VolumeStatus) DeepCopy() *VolumeStatus

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

func (*VolumeStatus) DeepCopyInto

func (in *VolumeStatus) DeepCopyInto(out *VolumeStatus)

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

type VolumesObservation

type VolumesObservation struct {
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	ReadOnly *bool `json:"readOnly,omitempty" tf:"read_only,omitempty"`

	Source *string `json:"source,omitempty" tf:"source,omitempty"`

	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*VolumesObservation) DeepCopy

func (in *VolumesObservation) DeepCopy() *VolumesObservation

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

func (*VolumesObservation) DeepCopyInto

func (in *VolumesObservation) DeepCopyInto(out *VolumesObservation)

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

type VolumesParameters

type VolumesParameters struct {
}

func (*VolumesParameters) DeepCopy

func (in *VolumesParameters) DeepCopy() *VolumesParameters

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

func (*VolumesParameters) DeepCopyInto

func (in *VolumesParameters) DeepCopyInto(out *VolumesParameters)

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