v1alpha1

package
v0.0.0-...-34451c6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: AGPL-3.0, Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the deployments v1alpha1 API group +kubebuilder:object:generate=true +groupName=deployments.plural.sh

Index

Constants

View Source
const (
	// GroupName uniquely identifies this API group
	GroupName = "deployments.plural.sh"
)

Variables

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

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func PolicyBindings

func PolicyBindings(bindings []Binding) []*console.PolicyBindingAttributes

Types

type Binding

type Binding struct {
	// +kubebuilder:validation:Optional
	ID *string `json:"id,omitempty"`

	// +kubebuilder:validation:Optional
	UserID *string `json:"UserID,omitempty"`

	// +kubebuilder:validation:Optional
	UserEmail *string `json:"userEmail,omitempty"`

	// +kubebuilder:validation:Optional
	GroupID *string `json:"groupID,omitempty"`

	// +kubebuilder:validation:Optional
	GroupName *string `json:"groupName,omitempty"`
}

Binding ...

func (*Binding) Attributes

func (b *Binding) Attributes() *console.PolicyBindingAttributes

func (*Binding) DeepCopy

func (in *Binding) DeepCopy() *Binding

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

func (*Binding) DeepCopyInto

func (in *Binding) DeepCopyInto(out *Binding)

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

type Bindings

type Bindings struct {
	// Read bindings.
	// +kubebuilder:validation:Optional
	Read []Binding `json:"read,omitempty"`

	// Write bindings.
	// +kubebuilder:validation:Optional
	Write []Binding `json:"write,omitempty"`
}

Bindings represents a policy bindings that can be used to define read/write permissions to this resource for users/groups in the system.

func (*Bindings) DeepCopy

func (in *Bindings) DeepCopy() *Bindings

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

func (*Bindings) DeepCopyInto

func (in *Bindings) DeepCopyInto(out *Bindings)

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

type Cascade

type Cascade struct {
	// Whether you want to delete owned resources in Plural but leave kubernetes objects in-place
	// +kubebuilder:validation:Optional
	Detach *bool `json:"detach,omitempty"`

	// Whether you want to delete owned resources in Plural and in the targeted k8s cluster
	// +kubebuilder:validation:Optional
	Delete *bool `json:"delete,omitempty"`
}

Cascade is a specification for deletion behavior of owned resources

func (*Cascade) Attributes

func (c *Cascade) Attributes() *console.CascadeAttributes

func (*Cascade) DeepCopy

func (in *Cascade) DeepCopy() *Cascade

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

func (*Cascade) DeepCopyInto

func (in *Cascade) DeepCopyInto(out *Cascade)

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

type CloudProvider

type CloudProvider string
const (
	AWS   CloudProvider = "aws"
	Azure CloudProvider = "azure"
	GCP   CloudProvider = "gcp"
)

func (CloudProvider) Attribute

func (c CloudProvider) Attribute() *string

type CloudProviderSettings

type CloudProviderSettings struct {
	// +kubebuilder:validation:Optional
	AWS *v1.SecretReference `json:"aws,omitempty"`
	// +kubebuilder:validation:Optional
	Azure *v1.SecretReference `json:"azure,omitempty"`
	// +kubebuilder:validation:Optional
	GCP *v1.SecretReference `json:"gcp,omitempty"`
}

CloudProviderSettings ...

func (*CloudProviderSettings) DeepCopy

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

func (*CloudProviderSettings) DeepCopyInto

func (in *CloudProviderSettings) DeepCopyInto(out *CloudProviderSettings)

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

type CloudSettingsGetter

CloudSettingsGetter is just a helper function that can be implemented to properly build Console API attributes +kubebuilder:object:generate:=false

type Cluster

type Cluster struct {
	metav1.TypeMeta `json:",inline"`

	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ClusterSpec `json:"spec,omitempty"`

	Status ClusterStatus `json:"status,omitempty"`
}

Cluster ... +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="CurrentVersion",type="string",JSONPath=".status.currentVersion",description="Current Kubernetes version" +kubebuilder:printcolumn:name="Id",type="string",JSONPath=".status.id",description="Console ID"

func (*Cluster) Attributes

func (c *Cluster) Attributes(providerId, projectId *string) console.ClusterAttributes

func (*Cluster) ConsoleID

func (c *Cluster) ConsoleID() *string

ConsoleID implements PluralResource interface

func (*Cluster) ConsoleName

func (c *Cluster) ConsoleName() string

ConsoleName implements PluralResource interface

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (*Cluster) SetCondition

func (c *Cluster) SetCondition(condition metav1.Condition)

func (*Cluster) TagUpdateAttributes

func (c *Cluster) TagUpdateAttributes() console.ClusterUpdateAttributes

func (*Cluster) UpdateAttributes

func (c *Cluster) UpdateAttributes() console.ClusterUpdateAttributes

type ClusterAWSCloudSettings

type ClusterAWSCloudSettings struct {
	// Region in AWS to deploy this cluster to.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Region string `json:"region"`
}

func (*ClusterAWSCloudSettings) Attributes

func (*ClusterAWSCloudSettings) DeepCopy

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

func (*ClusterAWSCloudSettings) DeepCopyInto

func (in *ClusterAWSCloudSettings) DeepCopyInto(out *ClusterAWSCloudSettings)

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

type ClusterAzureCloudSettings

type ClusterAzureCloudSettings struct {
	// ResourceGroup is a name for the Azure resource group for this cluster.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:example:=myresourcegroup
	ResourceGroup string `json:"resourceGroup"`

	// Network is a name for the Azure virtual network for this cluster.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:example:=mynetwork
	Network string `json:"network"`

	// SubscriptionId is GUID of the Azure subscription to hold this cluster.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	SubscriptionId string `json:"subscriptionId"`

	// Location in Azure to deploy this cluster to.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:example:=eastus
	Location string `json:"location"`
}

func (*ClusterAzureCloudSettings) Attributes

func (*ClusterAzureCloudSettings) DeepCopy

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

func (*ClusterAzureCloudSettings) DeepCopyInto

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

type ClusterCloudSettings

type ClusterCloudSettings struct {
	// AWS cluster customizations.
	// +kubebuilder:validation:Optional
	AWS *ClusterAWSCloudSettings `json:"aws,omitempty"`

	// Azure cluster customizations.
	// +kubebuilder:validation:Optional
	Azure *ClusterAzureCloudSettings `json:"azure,omitempty"`

	// GCP cluster customizations.
	// +kubebuilder:validation:Optional
	GCP *ClusterGCPCloudSettings `json:"gcp,omitempty"`
}

func (*ClusterCloudSettings) Attributes

func (*ClusterCloudSettings) DeepCopy

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

func (*ClusterCloudSettings) DeepCopyInto

func (in *ClusterCloudSettings) DeepCopyInto(out *ClusterCloudSettings)

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

type ClusterGCPCloudSettings

type ClusterGCPCloudSettings struct {
	// Project in GCP to deploy cluster to.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Project string `json:"project"`

	// Network in GCP to use when creating the cluster.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Network string `json:"network"`

	// Region in GCP to deploy cluster to.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Region string `json:"region"`
}

func (*ClusterGCPCloudSettings) Attributes

func (*ClusterGCPCloudSettings) DeepCopy

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

func (*ClusterGCPCloudSettings) DeepCopyInto

func (in *ClusterGCPCloudSettings) DeepCopyInto(out *ClusterGCPCloudSettings)

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

type ClusterList

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

ClusterList ... +kubebuilder:object:root=true

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterNodePool

type ClusterNodePool struct {
	// Name of the node pool. Must be unique.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Name string `json:"name"`

	// InstanceType contains the type of node to use. Usually cloud-specific.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	InstanceType string `json:"instanceType"`

	// MinSize is minimum number of instances in this node pool.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	MinSize int64 `json:"minSize"`

	// MaxSize is maximum number of instances in this node pool.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	MaxSize int64 `json:"maxSize"`

	// Labels to apply to the nodes in this pool. Useful for node selectors.
	// +kubebuilder:validation:Optional
	Labels map[string]string `json:"labels,omitempty"`

	// Taints you'd want to apply to a node, i.e. for preventing scheduling on spot instances.
	// +kubebuilder:validation:Optional
	Taints []Taint `json:"taints,omitempty"`

	// CloudSettings contains cloud-specific settings for this node pool.
	// +kubebuilder:validation:Optional
	// +structType=atomic
	CloudSettings *ClusterNodePoolCloudSettings `json:"cloudSettings,omitempty"`
}

func (*ClusterNodePool) Attributes

func (np *ClusterNodePool) Attributes() *console.NodePoolAttributes

func (*ClusterNodePool) DeepCopy

func (in *ClusterNodePool) DeepCopy() *ClusterNodePool

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

func (*ClusterNodePool) DeepCopyInto

func (in *ClusterNodePool) DeepCopyInto(out *ClusterNodePool)

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

type ClusterNodePoolAWSCloudSettings

type ClusterNodePoolAWSCloudSettings struct {
	// LaunchTemplateId is an ID of custom launch template for your nodes. Useful for Golden AMI setups.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	LaunchTemplateId *string `json:"launchTemplateId,omitempty"`
}

func (*ClusterNodePoolAWSCloudSettings) Attributes

func (*ClusterNodePoolAWSCloudSettings) DeepCopy

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

func (*ClusterNodePoolAWSCloudSettings) DeepCopyInto

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

type ClusterNodePoolCloudSettings

type ClusterNodePoolCloudSettings struct {
	// AWS node pool customizations.
	// +kubebuilder:validation:Optional
	AWS *ClusterNodePoolAWSCloudSettings `json:"aws,omitempty"`
}

func (*ClusterNodePoolCloudSettings) Attributes

func (*ClusterNodePoolCloudSettings) DeepCopy

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

func (*ClusterNodePoolCloudSettings) DeepCopyInto

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

type ClusterRestore

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

	Spec   ClusterRestoreSpec   `json:"spec,omitempty"`
	Status ClusterRestoreStatus `json:"status,omitempty"`
}

ClusterRestore is the Schema for the clusterrestores API

func (*ClusterRestore) DeepCopy

func (in *ClusterRestore) DeepCopy() *ClusterRestore

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

func (*ClusterRestore) DeepCopyInto

func (in *ClusterRestore) DeepCopyInto(out *ClusterRestore)

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

func (*ClusterRestore) DeepCopyObject

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

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

func (*ClusterRestore) SetCondition

func (s *ClusterRestore) SetCondition(condition metav1.Condition)

type ClusterRestoreList

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

ClusterRestoreList contains a list of ClusterRestore

func (*ClusterRestoreList) DeepCopy

func (in *ClusterRestoreList) DeepCopy() *ClusterRestoreList

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

func (*ClusterRestoreList) DeepCopyInto

func (in *ClusterRestoreList) DeepCopyInto(out *ClusterRestoreList)

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

func (*ClusterRestoreList) DeepCopyObject

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

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

type ClusterRestoreSpec

type ClusterRestoreSpec struct {
	// BackupID is an ID of the backup to restore.
	// If BackupID is specified, then BackupName, BackupNamespace and BackupClusterRef are not needed.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="BackupID is immutable"
	BackupID *string `json:"backupID"`

	// BackupName is a name of the backup to restore.
	// BackupNamespace and BackupClusterRef have to be specified as well with it.
	// If BackupName, BackupNamespace and BackupCluster are specified, then BackupID is not needed.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="BackupName is immutable"
	BackupName *string `json:"backupName"`

	// BackupNamespace is a namespace of the backup to restore.
	// BackupName and BackupClusterRef have to be specified as well with it.
	// If BackupName, BackupNamespace and BackupCluster are specified, then BackupID is not needed.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="BackupNamespace is immutable"
	BackupNamespace *string `json:"backupNamespace"`

	// BackupClusterID is an ID of a cluster where the backup to restore is located.
	// BackupName and BackupNamespace have to be specified as well with it.
	// If BackupName, BackupNamespace and BackupClusterRef are specified, then BackupID is not needed.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="BackupClusterRef is immutable"
	BackupClusterRef *corev1.ObjectReference `json:"backupClusterRef"`
}

ClusterRestoreSpec defines the desired state of ClusterRestore

func (*ClusterRestoreSpec) DeepCopy

func (in *ClusterRestoreSpec) DeepCopy() *ClusterRestoreSpec

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

func (*ClusterRestoreSpec) DeepCopyInto

func (in *ClusterRestoreSpec) DeepCopyInto(out *ClusterRestoreSpec)

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

func (*ClusterRestoreSpec) GetBackupID

func (p *ClusterRestoreSpec) GetBackupID() string

func (*ClusterRestoreSpec) HasBackupID

func (p *ClusterRestoreSpec) HasBackupID() bool

type ClusterRestoreStatus

type ClusterRestoreStatus struct {
	// ID of the cluster restore in the Console API.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	ID *string `json:"id,omitempty"`

	// +kubebuilder:validation:Enum=CREATED;PENDING;SUCCESSFUL;FAILED
	Status console.RestoreStatus `json:"status,omitempty"`

	// Represents the observations of ClusterRestore current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ClusterRestoreStatus defines the observed state of ClusterRestore

func (*ClusterRestoreStatus) DeepCopy

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

func (*ClusterRestoreStatus) DeepCopyInto

func (in *ClusterRestoreStatus) DeepCopyInto(out *ClusterRestoreStatus)

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

func (*ClusterRestoreStatus) GetID

func (p *ClusterRestoreStatus) GetID() string

func (*ClusterRestoreStatus) HasID

func (p *ClusterRestoreStatus) HasID() bool

type ClusterRestoreTrigger

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

	Spec   ClusterRestoreTriggerSpec `json:"spec,omitempty"`
	Status Status                    `json:"status,omitempty"`
}

ClusterRestoreTrigger is the Schema for the clusterrestoretriggers API

func (*ClusterRestoreTrigger) DeepCopy

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

func (*ClusterRestoreTrigger) DeepCopyInto

func (in *ClusterRestoreTrigger) DeepCopyInto(out *ClusterRestoreTrigger)

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

func (*ClusterRestoreTrigger) DeepCopyObject

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

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

func (*ClusterRestoreTrigger) SetCondition

func (p *ClusterRestoreTrigger) SetCondition(condition metav1.Condition)

type ClusterRestoreTriggerList

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

ClusterRestoreTriggerList contains a list of ClusterRestoreTrigger

func (*ClusterRestoreTriggerList) DeepCopy

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

func (*ClusterRestoreTriggerList) DeepCopyInto

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

func (*ClusterRestoreTriggerList) DeepCopyObject

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

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

type ClusterRestoreTriggerSpec

type ClusterRestoreTriggerSpec struct {
	// ClusterRestoreRef pointing to source ClusterRestore.
	// +kubebuilder:validation:Optional
	ClusterRestoreRef *corev1.ObjectReference `json:"clusterRestoreRef,omitempty"`
}

ClusterRestoreTriggerSpec defines the desired state of ClusterRestoreTrigger

func (*ClusterRestoreTriggerSpec) DeepCopy

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

func (*ClusterRestoreTriggerSpec) DeepCopyInto

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

type ClusterSpec

type ClusterSpec struct {
	// Handle is a short, unique human-readable name used to identify this cluster.
	// Does not necessarily map to the cloud resource name.
	// This has to be specified in order to adopt existing cluster.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:example:=myclusterhandle
	Handle *string `json:"handle,omitempty"`

	// Version of Kubernetes to use for this cluster. Can be skipped only for BYOK.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:example:="1.25.11"
	Version *string `json:"version,omitempty"`

	// ProviderRef references provider to use for this cluster. Can be skipped only for BYOK.
	// +kubebuilder:validation:Optional
	ProviderRef *corev1.ObjectReference `json:"providerRef,omitempty"`

	// ProjectRef references project this cluster belongs to.
	// If not provided, it will use the default project.
	// +kubebuilder:validation:Optional
	ProjectRef *corev1.ObjectReference `json:"projectRef,omitempty"`

	// Cloud provider to use for this cluster.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:validation:Enum=aws;azure;gcp;byok
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Cloud is immutable"
	// +kubebuilder:example:=azure
	Cloud string `json:"cloud"`

	// Protect cluster from being deleted.
	// +kubebuilder:validation:Optional
	// +kubebuilder:example:=false
	Protect *bool `json:"protect,omitempty"`

	// Tags used to filter clusters.
	// +kubebuilder:validation:Optional
	Tags map[string]string `json:"tags,omitempty"`

	// Metadata for the cluster
	// +kubebuilder:validation:Optional
	Metadata *runtime.RawExtension `json:"metadata,omitempty"`

	// Bindings contain read and write policies of this cluster
	// +kubebuilder:validation:Optional
	Bindings *Bindings `json:"bindings,omitempty"`

	// CloudSettings contains cloud-specific settings for this cluster.
	// +kubebuilder:validation:Optional
	// +structType=atomic
	CloudSettings *ClusterCloudSettings `json:"cloudSettings,omitempty"`

	// NodePools contains specs of node pools managed by this cluster.
	// +kubebuilder:validation:Optional
	NodePools []ClusterNodePool `json:"nodePools"`
}

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

func (*ClusterSpec) HasHandle

func (cs *ClusterSpec) HasHandle() bool

func (*ClusterSpec) HasProjectRef

func (cs *ClusterSpec) HasProjectRef() bool

func (*ClusterSpec) HasProviderRef

func (cs *ClusterSpec) HasProviderRef() bool

func (*ClusterSpec) IsProviderRefRequired

func (cs *ClusterSpec) IsProviderRefRequired() bool

type ClusterStatus

type ClusterStatus struct {
	Status `json:",inline"`

	// CurrentVersion contains current Kubernetes version this cluster is using.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	CurrentVersion *string `json:"currentVersion,omitempty"`

	// KasURL contains KAS URL.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	KasURL *string `json:"kasURL,omitempty"`

	// PingedAt contains timestamp of last successful cluster ping.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	PingedAt *string `json:"pingedAt,omitempty"`
}

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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

type ClusterTarget

type ClusterTarget struct {
	// Tags the cluster tags to target
	// +kubebuilder:validation:Optional
	Tags map[string]string `json:"tags,omitempty"`
	// Distro kubernetes distribution to target
	// +kubebuilder:validation:Optional
	Distro *console.ClusterDistro `json:"distro,omitempty"`
}

A spec for targeting clusters

func (*ClusterTarget) DeepCopy

func (in *ClusterTarget) DeepCopy() *ClusterTarget

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

func (*ClusterTarget) DeepCopyInto

func (in *ClusterTarget) DeepCopyInto(out *ClusterTarget)

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

type CommandAttributes

type CommandAttributes struct {
	// the command this hook will execute
	Cmd string `json:"cmd"`
	// optional arguments to pass to the command
	// +kubebuilder:validation:Optional
	Args []string `json:"args,omitempty"`
	// +kubebuilder:validation:Optional
	Dir *string `json:"dir,omitempty"`
}

func (*CommandAttributes) Attributes

func (in *CommandAttributes) Attributes() *console.CommandAttributes

func (*CommandAttributes) DeepCopy

func (in *CommandAttributes) DeepCopy() *CommandAttributes

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

func (*CommandAttributes) DeepCopyInto

func (in *CommandAttributes) DeepCopyInto(out *CommandAttributes)

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

type ComponentState

type ComponentState string
const (
	ComponentStateRunning ComponentState = "RUNNING"
	ComponentStatePending ComponentState = "PENDING"
	ComponentStateFailed  ComponentState = "FAILED"
)

type Condition

type Condition struct {
	// +kubebuilder:validation:Required
	Field string `json:"field"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=NOT;GT;LT;EQ;GTE;LTE;PREFIX;SUFFIX
	console.Operation `json:"operation"`

	// +kubebuilder:validation:Optional
	Value *string `json:"value,omitempty"`
}

Condition ...

func (*Condition) Attributes

func (in *Condition) Attributes() *console.ConditionAttributes

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

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

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

type ConditionMessage

type ConditionMessage string
const (
	ReadonlyTrueConditionMessage          ConditionMessage = "Running in read-only mode"
	SynchronizedNotFoundConditionMessage  ConditionMessage = "Could not find resource in Console API"
	NamespacedCredentialsConditionMessage ConditionMessage = "Using default credentials"
)

func (ConditionMessage) String

func (c ConditionMessage) String() string

type ConditionReason

type ConditionReason string
const (
	ReadonlyConditionReason             ConditionReason = "Readonly"
	ReadyConditionReason                ConditionReason = "Ready"
	ReadyConditionReasonDeleting        ConditionReason = "Deleting"
	SynchronizedConditionReason         ConditionReason = "Synchronized"
	SynchronizedConditionReasonError    ConditionReason = "Error"
	SynchronizedConditionReasonNotFound ConditionReason = "NotFound"
	SynchronizedConditionReasonDeleting ConditionReason = "Deleting"
	ReadyTokenConditionReason           ConditionReason = "Ready"
	ReadyTokenConditionReasonError      ConditionReason = "Error"
	NamespacedCredentialsReason         ConditionReason = "NamespacedCredentials"
	NamespacedCredentialsReasonDefault  ConditionReason = "DefaultCredentials"
)

func (ConditionReason) String

func (c ConditionReason) String() string

type ConditionType

type ConditionType string
const (
	ReadonlyConditionType              ConditionType = "Readonly"
	ReadyConditionType                 ConditionType = "Ready"
	ReadyTokenConditionType            ConditionType = "ReadyToken"
	SynchronizedConditionType          ConditionType = "Synchronized"
	NamespacedCredentialsConditionType ConditionType = "NamespacedCredentials"
)

func (ConditionType) String

func (c ConditionType) String() string

type Container

type Container struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Image string `json:"image"`

	// +kubebuilder:validation:Optional
	Args []*string `json:"args,omitempty"`

	// +kubebuilder:validation:Optional
	Env []*Env `json:"env,omitempty"`

	// +kubebuilder:validation:Optional
	EnvFrom []*EnvFrom `json:"envFrom,omitempty"`
}

func (*Container) DeepCopy

func (in *Container) DeepCopy() *Container

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

func (*Container) DeepCopyInto

func (in *Container) DeepCopyInto(out *Container)

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

type CustomRunStep

type CustomRunStep struct {
	// Args allow you to provide any additional
	// args that should be passed to the custom
	// run step.
	// +kubebuilder:validation:Required
	Args []string `json:"args,omitempty"`

	// Cmd defines what command should be executed
	// as part of your custom run step.
	// +kubebuilder:validation:Required
	Cmd string `json:"cmd"`

	// RequireApproval controls whether this custom run step
	// will require an approval to proceed.
	// +kubebuilder:validation:Optional
	RequireApproval *bool `json:"requireApproval,omitempty"`

	// Stage controls at which stage should this custom run
	// step be executed.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=PLAN;VERIFY;APPLY;INIT;DESTROY
	Stage console.StepStage `json:"stage"`
}

func (*CustomRunStep) DeepCopy

func (in *CustomRunStep) DeepCopy() *CustomRunStep

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

func (*CustomRunStep) DeepCopyInto

func (in *CustomRunStep) DeepCopyInto(out *CustomRunStep)

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

type CustomStackRun

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

	Spec   CustomStackRunSpec `json:"spec,omitempty"`
	Status Status             `json:"status,omitempty"`
}

CustomStackRun is the Schema for the customstackruns API

func (*CustomStackRun) CustomStackRunName

func (p *CustomStackRun) CustomStackRunName() string

func (*CustomStackRun) DeepCopy

func (in *CustomStackRun) DeepCopy() *CustomStackRun

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

func (*CustomStackRun) DeepCopyInto

func (in *CustomStackRun) DeepCopyInto(out *CustomStackRun)

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

func (*CustomStackRun) DeepCopyObject

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

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

func (*CustomStackRun) SetCondition

func (p *CustomStackRun) SetCondition(condition metav1.Condition)

type CustomStackRunList

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

CustomStackRunList contains a list of CustomStackRun

func (*CustomStackRunList) DeepCopy

func (in *CustomStackRunList) DeepCopy() *CustomStackRunList

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

func (*CustomStackRunList) DeepCopyInto

func (in *CustomStackRunList) DeepCopyInto(out *CustomStackRunList)

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

func (*CustomStackRunList) DeepCopyObject

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

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

type CustomStackRunSpec

type CustomStackRunSpec struct {
	// Name of this CustomStackRun. If not provided CustomStackRun's own name from CustomStackRun.ObjectMeta will be used.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty"`

	// +kubebuilder:validation:Optional
	StackRef *corev1.LocalObjectReference `json:"stackRef,omitempty"`

	// Documentation to explain what this will do
	// +kubebuilder:validation:Optional
	Documentation *string `json:"documentation,omitempty"`

	// Commands the commands for this custom run
	Commands []CommandAttributes `json:"commands,omitempty"`
	// Configuration self-service configuration which will be presented in UI before triggering
	Configuration []PrAutomationConfiguration `json:"configuration,omitempty"`
}

CustomStackRunSpec defines the desired state of CustomStackRun

func (*CustomStackRunSpec) DeepCopy

func (in *CustomStackRunSpec) DeepCopy() *CustomStackRunSpec

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

func (*CustomStackRunSpec) DeepCopyInto

func (in *CustomStackRunSpec) DeepCopyInto(out *CustomStackRunSpec)

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

type DeploymentSettings

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

	Spec   DeploymentSettingsSpec `json:"spec,omitempty"`
	Status Status                 `json:"status,omitempty"`
}

DeploymentSettings is the Schema for the deploymentsettings API

func (*DeploymentSettings) DeepCopy

func (in *DeploymentSettings) DeepCopy() *DeploymentSettings

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

func (*DeploymentSettings) DeepCopyInto

func (in *DeploymentSettings) DeepCopyInto(out *DeploymentSettings)

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

func (*DeploymentSettings) DeepCopyObject

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

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

func (*DeploymentSettings) SetCondition

func (p *DeploymentSettings) SetCondition(condition metav1.Condition)

type DeploymentSettingsBindings

type DeploymentSettingsBindings struct {
	// Read bindings.
	// +kubebuilder:validation:Optional
	Read []Binding `json:"read,omitempty"`

	// Write bindings.
	// +kubebuilder:validation:Optional
	Write []Binding `json:"write,omitempty"`

	// Create bindings.
	// +kubebuilder:validation:Optional
	Create []Binding `json:"create,omitempty"`

	// Git bindings.
	// +kubebuilder:validation:Optional
	Git []Binding `json:"git,omitempty"`
}

func (*DeploymentSettingsBindings) DeepCopy

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

func (*DeploymentSettingsBindings) DeepCopyInto

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

type DeploymentSettingsList

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

DeploymentSettingsList contains a list of DeploymentSettings

func (*DeploymentSettingsList) DeepCopy

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

func (*DeploymentSettingsList) DeepCopyInto

func (in *DeploymentSettingsList) DeepCopyInto(out *DeploymentSettingsList)

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

func (*DeploymentSettingsList) DeepCopyObject

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

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

type DeploymentSettingsSpec

type DeploymentSettingsSpec struct {
	// AgentHelmValues custom helm values to apply to all agents (useful for things like adding customary annotations/labels)
	// +kubebuilder:validation:Optional
	AgentHelmValues *runtime.RawExtension `json:"agentHelmValues,omitempty"`

	// Stacks global configuration for stack execution
	Stacks *StackSettings `json:"stacks,omitempty"`

	// Bindings
	// +kubebuilder:validation:Optional
	Bindings *DeploymentSettingsBindings `json:"bindings,omitempty"`

	// PrometheusConnection connection details for a prometheus instance to use
	PrometheusConnection *HTTPConnection `json:"prometheusConnection,omitempty"`

	// connection details for a loki instance to use
	LokiConnection *HTTPConnection `json:"lokiConnection,omitempty"`
}

DeploymentSettingsSpec defines the desired state of DeploymentSettings

func (*DeploymentSettingsSpec) DeepCopy

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

func (*DeploymentSettingsSpec) DeepCopyInto

func (in *DeploymentSettingsSpec) DeepCopyInto(out *DeploymentSettingsSpec)

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

type Env

type Env struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Name string `json:"name"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Value string `json:"value"`
}

func (*Env) DeepCopy

func (in *Env) DeepCopy() *Env

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

func (*Env) DeepCopyInto

func (in *Env) DeepCopyInto(out *Env)

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

type EnvFrom

type EnvFrom struct {
	// +kubebuilder:validation:Type:=string
	Secret string `json:"secret"`

	// +kubebuilder:validation:Type:=string
	ConfigMap string `json:"configMap"`
}

func (*EnvFrom) DeepCopy

func (in *EnvFrom) DeepCopy() *EnvFrom

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

func (*EnvFrom) DeepCopyInto

func (in *EnvFrom) DeepCopyInto(out *EnvFrom)

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

type GateSpec

type GateSpec struct {
	// +kubebuilder:validation:Optional
	Job *JobSpec `json:"job,omitempty"`
}

GateSpec is a more refined spec for parameters needed for complex gates.

func (*GateSpec) DeepCopy

func (in *GateSpec) DeepCopy() *GateSpec

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

func (*GateSpec) DeepCopyInto

func (in *GateSpec) DeepCopyInto(out *GateSpec)

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

type GitHealth

type GitHealth string
const (
	GitHealthPullable GitHealth = "PULLABLE"
	GitHealthFailed   GitHealth = "FAILED"
)

type GitRef

type GitRef struct {
	// Folder ...
	// +kubebuilder:validation:Required
	Folder string `json:"folder"`

	// Ref ...
	// +kubebuilder:validation:Required
	Ref string `json:"ref"`

	// Optional files to add to the manifests for this service
	// +kubebuilder:validation:Optional
	Files []string `json:"files,omitempty"`
}

GitRef ...

func (*GitRef) Attributes

func (in *GitRef) Attributes() *console.GitRefAttributes

func (*GitRef) DeepCopy

func (in *GitRef) DeepCopy() *GitRef

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

func (*GitRef) DeepCopyInto

func (in *GitRef) DeepCopyInto(out *GitRef)

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

type GitRepository

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

	Spec   GitRepositorySpec   `json:"spec,omitempty"`
	Status GitRepositoryStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Health",type="string",JSONPath=".status.health",description="Repo health status" +kubebuilder:printcolumn:name="Id",type="string",JSONPath=".status.id",description="Console repo Id"

func (*GitRepository) ConsoleID

func (in *GitRepository) ConsoleID() *string

ConsoleID implements PluralResource interface

func (*GitRepository) ConsoleName

func (in *GitRepository) ConsoleName() string

ConsoleName implements PluralResource interface

func (*GitRepository) DeepCopy

func (in *GitRepository) DeepCopy() *GitRepository

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

func (*GitRepository) DeepCopyInto

func (in *GitRepository) DeepCopyInto(out *GitRepository)

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

func (*GitRepository) DeepCopyObject

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

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

func (*GitRepository) SetCondition

func (in *GitRepository) SetCondition(condition metav1.Condition)

type GitRepositoryList

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

func (*GitRepositoryList) DeepCopy

func (in *GitRepositoryList) DeepCopy() *GitRepositoryList

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

func (*GitRepositoryList) DeepCopyInto

func (in *GitRepositoryList) DeepCopyInto(out *GitRepositoryList)

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

func (*GitRepositoryList) DeepCopyObject

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

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

type GitRepositorySpec

type GitRepositorySpec struct {
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Url is immutable"
	Url string `json:"url"`

	// Reference a ScmConnection to reuse its credentials for this GitRepository's authentication
	// +kubebuilder:validation:Optional
	ConnectionRef *corev1.ObjectReference `json:"connectionRef,omitempty"`

	// CredentialsRef is a secret reference which should contain privateKey, passphrase, username and password.
	// +kubebuilder:validation:Optional
	CredentialsRef *corev1.SecretReference `json:"credentialsRef,omitempty"`
}

func (*GitRepositorySpec) DeepCopy

func (in *GitRepositorySpec) DeepCopy() *GitRepositorySpec

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

func (*GitRepositorySpec) DeepCopyInto

func (in *GitRepositorySpec) DeepCopyInto(out *GitRepositorySpec)

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

type GitRepositoryStatus

type GitRepositoryStatus struct {
	Status `json:",inline"`

	// Health status.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum:=PULLABLE;FAILED
	Health GitHealth `json:"health,omitempty"`
	// Message indicating details about last transition.
	// +kubebuilder:validation:Optional
	Message *string `json:"message,omitempty"`
}

func (*GitRepositoryStatus) DeepCopy

func (in *GitRepositoryStatus) DeepCopy() *GitRepositoryStatus

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

func (*GitRepositoryStatus) DeepCopyInto

func (in *GitRepositoryStatus) DeepCopyInto(out *GitRepositoryStatus)

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

type GlobalService

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

	Spec   GlobalServiceSpec `json:"spec,omitempty"`
	Status Status            `json:"status,omitempty"`
}

GlobalService is the Schema for the globalservices API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Id",type="string",JSONPath=".status.id",description="Global service Id"

func (*GlobalService) Attributes

func (gs *GlobalService) Attributes(providerId, projectId *string) console.GlobalServiceAttributes

func (*GlobalService) DeepCopy

func (in *GlobalService) DeepCopy() *GlobalService

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

func (*GlobalService) DeepCopyInto

func (in *GlobalService) DeepCopyInto(out *GlobalService)

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

func (*GlobalService) DeepCopyObject

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

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

func (*GlobalService) SetCondition

func (p *GlobalService) SetCondition(condition metav1.Condition)

type GlobalServiceList

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

GlobalServiceList contains a list of GlobalService +kubebuilder:object:root=true

func (*GlobalServiceList) DeepCopy

func (in *GlobalServiceList) DeepCopy() *GlobalServiceList

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

func (*GlobalServiceList) DeepCopyInto

func (in *GlobalServiceList) DeepCopyInto(out *GlobalServiceList)

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

func (*GlobalServiceList) DeepCopyObject

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

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

type GlobalServiceSpec

type GlobalServiceSpec struct {
	// Tags a set of tags to select clusters for this global service
	// +kubebuilder:validation:Optional
	Tags map[string]string `json:"tags,omitempty"`

	// Whether you'd want this global service to take ownership of existing Plural services
	// +kubebuilder:validation:Optional
	Reparent *bool `json:"reparent,omitempty"`

	// Cascade deletion options for this global service
	// +kubebuilder:validation:Optional
	Cascade *Cascade `json:"cascade,omitempty"`

	// Distro of kubernetes this cluster is running
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=GENERIC;EKS;AKS;GKE;RKE;K3S
	Distro *console.ClusterDistro `json:"distro,omitempty"`

	// ServiceRef to replicate across clusters
	// +kubebuilder:validation:Optional
	ServiceRef *corev1.ObjectReference `json:"serviceRef,omitempty"`
	// ProviderRef apply to clusters with this provider
	// +kubebuilder:validation:Optional
	ProviderRef *corev1.ObjectReference `json:"providerRef,omitempty"`

	// ProjectRef allows a global service to span a specific project only
	// +kubebuilder:validation:Optional
	ProjectRef *corev1.ObjectReference `json:"projectRef,omitempty"`

	// +kubebuilder:validation:Optional
	Template *ServiceTemplate `json:"template,omitempty"`
}

GlobalServiceSpec defines the desired state of GlobalService

func (*GlobalServiceSpec) DeepCopy

func (in *GlobalServiceSpec) DeepCopy() *GlobalServiceSpec

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

func (*GlobalServiceSpec) DeepCopyInto

func (in *GlobalServiceSpec) DeepCopyInto(out *GlobalServiceSpec)

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

func (*GlobalServiceSpec) TagsAttribute

func (gss *GlobalServiceSpec) TagsAttribute() []*console.TagAttributes

type HTTPConnection

type HTTPConnection struct {
	Host string `json:"host"`
	// user to connect with basic auth
	User *string `json:"user,omitempty"`
	// password to connect w/ for basic auth
	Password *string `json:"password,omitempty"`
}

func (*HTTPConnection) Attributes

func (*HTTPConnection) DeepCopy

func (in *HTTPConnection) DeepCopy() *HTTPConnection

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

func (*HTTPConnection) DeepCopyInto

func (in *HTTPConnection) DeepCopyInto(out *HTTPConnection)

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

type Hasher

type Hasher func(interface{}) (string, error)

Hasher +kubebuilder:object:generate:=false

type InfrastructureStack

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

	Spec   InfrastructureStackSpec `json:"spec,omitempty"`
	Status Status                  `json:"status,omitempty"`
}

InfrastructureStack is the Schema for the infrastructurestacks API +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="ID of the InfrastructureStack in the Console API."

func (*InfrastructureStack) DeepCopy

func (in *InfrastructureStack) DeepCopy() *InfrastructureStack

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

func (*InfrastructureStack) DeepCopyInto

func (in *InfrastructureStack) DeepCopyInto(out *InfrastructureStack)

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

func (*InfrastructureStack) DeepCopyObject

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

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

func (*InfrastructureStack) HasProjectRef

func (p *InfrastructureStack) HasProjectRef() bool

func (*InfrastructureStack) HasStackDefinitionRef

func (p *InfrastructureStack) HasStackDefinitionRef() bool

func (*InfrastructureStack) ProjectName

func (p *InfrastructureStack) ProjectName() string

func (*InfrastructureStack) SetCondition

func (p *InfrastructureStack) SetCondition(condition metav1.Condition)

func (*InfrastructureStack) StackDefinitionObjectKey

func (p *InfrastructureStack) StackDefinitionObjectKey() client.ObjectKey

func (*InfrastructureStack) StackName

func (p *InfrastructureStack) StackName() string

type InfrastructureStackList

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

InfrastructureStackList contains a list of InfrastructureStack +kubebuilder:object:root=true

func (*InfrastructureStackList) DeepCopy

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

func (*InfrastructureStackList) DeepCopyInto

func (in *InfrastructureStackList) DeepCopyInto(out *InfrastructureStackList)

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

func (*InfrastructureStackList) DeepCopyObject

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

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

type InfrastructureStackSpec

type InfrastructureStackSpec struct {
	// Name of this Stack. If not provided InfrastructureStack's own name from InfrastructureStack.ObjectMeta will be used.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty"`

	// Type specifies the tool to use to apply it
	// +kubebuilder:validation:Enum=TERRAFORM;ANSIBLE;CUSTOM
	// +kubebuilder:validation:Required
	Type console.StackType `json:"type"`

	// RepositoryRef to source IaC from
	// +kubebuilder:validation:Required
	RepositoryRef corev1.ObjectReference `json:"repositoryRef"`

	// +kubebuilder:validation:Required
	ClusterRef corev1.ObjectReference `json:"clusterRef"`

	// ProjectRef references project this stack belongs to.
	// If not provided, it will use the default project.
	// +kubebuilder:validation:Optional
	ProjectRef *corev1.ObjectReference `json:"projectRef,omitempty"`

	// Git reference w/in the repository where the IaC lives
	Git GitRef `json:"git"`

	// ManageState - whether you want Plural to manage the state of this stack
	// +kubebuilder:validation:Optional
	ManageState *bool `json:"manageState,omitempty"`

	// Workdir - the working directory within the git spec you want to run commands in (useful for projects with external modules)
	// +kubebuilder:validation:Optional
	Workdir *string `json:"workdir,omitempty"`

	// JobSpec optional k8s job configuration for the job that will apply this stack
	// +kubebuilder:validation:Optional
	JobSpec *JobSpec `json:"jobSpec,omitempty"`

	// Configuration version/image config for the tool you're using
	// +kubebuilder:validation:Required
	Configuration StackConfiguration `json:"configuration"`

	// Configuration for cron generation of stack runs
	// +kubebuilder:validation:Optional
	Cron *StackCron `json:"cron,omitempty"`

	// Approval whether to require approval
	// +kubebuilder:validation:Optional
	Approval *bool `json:"approval,omitempty"`

	// Bindings contain read and write policies of this cluster
	// +kubebuilder:validation:Optional
	Bindings *Bindings `json:"bindings,omitempty"`

	// +kubebuilder:validation:Optional
	Environment []StackEnvironment `json:"environment,omitempty"`

	// Files reference to Secret with a key as a part of mount path and value as a content
	// +kubebuilder:validation:Optional
	Files []StackFile `json:"files,omitempty"`

	// Detach if true, detach the stack on CR deletion, leaving all cloud resources in-place.
	// +kubebuilder:validation:Optional
	Detach bool `json:"detach,omitempty"`

	// Actor - user email to use for default Plural authentication in this stack.
	// +kubebuilder:validation:Optional
	Actor *string `json:"actor,omitempty"`

	// +kubebuilder:validation:Optional
	ScmConnectionRef *corev1.ObjectReference `json:"scmConnectionRef,omitempty"`

	// +kubebuilder:validation:Optional
	StackDefinitionRef *corev1.ObjectReference `json:"stackDefinitionRef,omitempty"`

	// Tags used to filter stacks.
	// +kubebuilder:validation:Optional
	Tags map[string]string `json:"tags,omitempty"`
}

InfrastructureStackSpec defines the desired state of InfrastructureStack

func (*InfrastructureStackSpec) DeepCopy

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

func (*InfrastructureStackSpec) DeepCopyInto

func (in *InfrastructureStackSpec) DeepCopyInto(out *InfrastructureStackSpec)

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

type JobSpec

type JobSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Namespace string `json:"namespace"`

	// +kubebuilder:validation:Optional
	Containers []*Container `json:"containers,omitempty"`

	// +kubebuilder:validation:Optional
	Labels map[string]string `json:"labels,omitempty"`

	// +kubebuilder:validation:Optional
	Annotations map[string]string `json:"annotations,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	ServiceAccount *string `json:"serviceAccount,omitempty"`

	// Raw can be used if you'd rather define the job spec via straight Kubernetes manifest file.
	// +kubebuilder:validation:Optional
	Raw *batchv1.JobSpec `json:"raw,omitempty"`
}

JobSpec is a spec for a job gate.

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 ManagedNamespace

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

	Spec   ManagedNamespaceSpec `json:"spec,omitempty"`
	Status Status               `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Id",type="string",JSONPath=".status.id",description="ManagedNamespace ID" ManagedNamespace is the Schema for the managednamespaces API

func (*ManagedNamespace) DeepCopy

func (in *ManagedNamespace) DeepCopy() *ManagedNamespace

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

func (*ManagedNamespace) DeepCopyInto

func (in *ManagedNamespace) DeepCopyInto(out *ManagedNamespace)

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

func (*ManagedNamespace) DeepCopyObject

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

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

func (*ManagedNamespace) NamespaceName

func (p *ManagedNamespace) NamespaceName() string

func (*ManagedNamespace) SetCondition

func (p *ManagedNamespace) SetCondition(condition metav1.Condition)

type ManagedNamespaceList

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

ManagedNamespaceList contains a list of ManagedNamespace

func (*ManagedNamespaceList) DeepCopy

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

func (*ManagedNamespaceList) DeepCopyInto

func (in *ManagedNamespaceList) DeepCopyInto(out *ManagedNamespaceList)

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

func (*ManagedNamespaceList) DeepCopyObject

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

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

type ManagedNamespaceSpec

type ManagedNamespaceSpec struct {
	// Name of this namespace once its placed on a cluster. If not provided ManagedNamespace's own name from ManagedNamespace.ObjectMeta will be used.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty"`
	// Description a short description of the purpose of this namespace
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty"`

	// Cascade specifies how owned resources are deleted
	Cascade *Cascade `json:"cascade,omitempty"`

	// Labels for this namespace
	// +kubebuilder:validation:Optional
	Labels map[string]string `json:"labels,omitempty"`
	// Annotations for this namespace
	// +kubebuilder:validation:Optional
	Annotations map[string]string `json:"annotations,omitempty"`
	// PullSecrets a list of pull secrets to attach to this namespace
	// +kubebuilder:validation:Optional
	PullSecrets []string `json:"pullSecrets,omitempty"`
	// +kubebuilder:validation:Optional
	Service *ServiceTemplate `json:"service,omitempty"`
	// +kubebuilder:validation:Optional
	Target *ClusterTarget `json:"target,omitempty"`

	// ProjectRef allows a managed namespace to span a specific project only
	// +kubebuilder:validation:Optional
	ProjectRef *corev1.ObjectReference `json:"projectRef,omitempty"`
}

ManagedNamespaceSpec defines the desired state of ManagedNamespace

func (*ManagedNamespaceSpec) DeepCopy

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

func (*ManagedNamespaceSpec) DeepCopyInto

func (in *ManagedNamespaceSpec) DeepCopyInto(out *ManagedNamespaceSpec)

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

type NamespaceCredentials

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

	// +kubebuilder:validation:Required
	Spec NamespaceCredentialsSpec `json:"spec"`

	// +kubebuilder:validation:Optional
	Status NamespaceCredentialsStatus `json:"status,omitempty"`
}

NamespaceCredentials connects namespaces with credentials from secret ref, which are then used by other controllers during reconciling. +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status

func (*NamespaceCredentials) DeepCopy

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

func (*NamespaceCredentials) DeepCopyInto

func (in *NamespaceCredentials) DeepCopyInto(out *NamespaceCredentials)

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

func (*NamespaceCredentials) DeepCopyObject

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

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

func (*NamespaceCredentials) SetCondition

func (in *NamespaceCredentials) SetCondition(condition metav1.Condition)

type NamespaceCredentialsList

type NamespaceCredentialsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []NamespaceCredentials `json:"items"`
}

NamespaceCredentialsList contains a list of NamespaceCredentials. +kubebuilder:object:root=true

func (*NamespaceCredentialsList) DeepCopy

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

func (*NamespaceCredentialsList) DeepCopyInto

func (in *NamespaceCredentialsList) DeepCopyInto(out *NamespaceCredentialsList)

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

func (*NamespaceCredentialsList) DeepCopyObject

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

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

type NamespaceCredentialsSpec

type NamespaceCredentialsSpec struct {
	// Namespaces that will be connected with credentials from SecretRef.
	// +kubebuilder:validation:Required
	Namespaces []string `json:"namespaces"`

	// SecretRef contains reference to secret with credentials.
	// +kubebuilder:validation:Required
	SecretRef corev1.SecretReference `json:"secretRef,omitempty"`
}

func (*NamespaceCredentialsSpec) DeepCopy

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

func (*NamespaceCredentialsSpec) DeepCopyInto

func (in *NamespaceCredentialsSpec) DeepCopyInto(out *NamespaceCredentialsSpec)

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

type NamespaceCredentialsStatus

type NamespaceCredentialsStatus struct {
	// TokenSHA contains SHA of last token seen.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	TokenSHA *string `json:"tokenSHA,omitempty"`

	// Conditions represent the observations of a NamespaceCredentials current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*NamespaceCredentialsStatus) DeepCopy

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

func (*NamespaceCredentialsStatus) DeepCopyInto

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

func (*NamespaceCredentialsStatus) IsStatusConditionTrue

func (p *NamespaceCredentialsStatus) IsStatusConditionTrue(condition ConditionType) bool

type NamespacedName

type NamespacedName struct {
	// Name is a resource name.
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// Namespace is a resource namespace.
	// +kubebuilder:validation:Required
	Namespace string `json:"namespace"`
}

NamespacedName is the same as types.NamespacedName with the addition of kubebuilder/json annotations for better schema support.

func (*NamespacedName) DeepCopy

func (in *NamespacedName) DeepCopy() *NamespacedName

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

func (*NamespacedName) DeepCopyInto

func (in *NamespacedName) DeepCopyInto(out *NamespacedName)

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

type NamespacedPluralResource

type NamespacedPluralResource interface {
	PluralResource

	// ConsoleNamespace returns a resource namespace read from the Console API
	ConsoleNamespace() string
}

NamespacedPluralResource ... +k8s:deepcopy-gen=false

type NotificationRouter

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

	Spec   NotificationRouterSpec `json:"spec,omitempty"`
	Status Status                 `json:"status,omitempty"`
}

NotificationRouter is the Schema for the notificationrouters API

func (*NotificationRouter) DeepCopy

func (in *NotificationRouter) DeepCopy() *NotificationRouter

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

func (*NotificationRouter) DeepCopyInto

func (in *NotificationRouter) DeepCopyInto(out *NotificationRouter)

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

func (*NotificationRouter) DeepCopyObject

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

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

func (*NotificationRouter) NotificationName

func (p *NotificationRouter) NotificationName() string

NotificationName implements NamespacedPluralResource interface

func (*NotificationRouter) SetCondition

func (p *NotificationRouter) SetCondition(condition metav1.Condition)

type NotificationRouterList

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

NotificationRouterList contains a list of NotificationRouter

func (*NotificationRouterList) DeepCopy

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

func (*NotificationRouterList) DeepCopyInto

func (in *NotificationRouterList) DeepCopyInto(out *NotificationRouterList)

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

func (*NotificationRouterList) DeepCopyObject

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

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

type NotificationRouterSpec

type NotificationRouterSpec struct {
	// Name the name of this router, if not provided NotificationRouter's own name from NotificationRouter.ObjectMeta will be used.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty"`

	// Events the events to trigger, or use * for any
	Events []string `json:"events,omitempty"`

	// Filters filters by object type
	// +kubebuilder:validation:Optional
	Filters []RouterFilters `json:"filters,omitempty"`

	// Sinks notification sinks to deliver notifications to
	// +kubebuilder:validation:Optional
	Sinks []corev1.ObjectReference `json:"sinks,omitempty"`
}

NotificationRouterSpec defines the desired state of NotificationRouter

func (*NotificationRouterSpec) DeepCopy

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

func (*NotificationRouterSpec) DeepCopyInto

func (in *NotificationRouterSpec) DeepCopyInto(out *NotificationRouterSpec)

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

func (*NotificationRouterSpec) HasName

func (p *NotificationRouterSpec) HasName() bool

type NotificationSink

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

	Spec   NotificationSinkSpec `json:"spec,omitempty"`
	Status Status               `json:"status,omitempty"`
}

NotificationSink is the Schema for the notificationsinks API

func (*NotificationSink) DeepCopy

func (in *NotificationSink) DeepCopy() *NotificationSink

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

func (*NotificationSink) DeepCopyInto

func (in *NotificationSink) DeepCopyInto(out *NotificationSink)

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

func (*NotificationSink) DeepCopyObject

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

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

func (*NotificationSink) NotificationName

func (p *NotificationSink) NotificationName() string

NotificationName implements NamespacedPluralResource interface

func (*NotificationSink) SetCondition

func (p *NotificationSink) SetCondition(condition metav1.Condition)

type NotificationSinkList

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

NotificationSinkList contains a list of NotificationSink

func (*NotificationSinkList) DeepCopy

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

func (*NotificationSinkList) DeepCopyInto

func (in *NotificationSinkList) DeepCopyInto(out *NotificationSinkList)

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

func (*NotificationSinkList) DeepCopyObject

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

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

type NotificationSinkSpec

type NotificationSinkSpec struct {
	// Name the name of this service, if not provided NotificationSink's own name from NotificationSink.ObjectMeta will be used.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty"`

	// Type the channel type of this sink.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=SLACK;TEAMS
	Type console.SinkType `json:"type"`

	// Configuration for the specific type
	// +kubebuilder:validation:Optional
	Configuration SinkConfiguration `json:"configuration"`
}

NotificationSinkSpec defines the desired state of NotificationSink

func (*NotificationSinkSpec) DeepCopy

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

func (*NotificationSinkSpec) DeepCopyInto

func (in *NotificationSinkSpec) DeepCopyInto(out *NotificationSinkSpec)

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

func (*NotificationSinkSpec) HasName

func (p *NotificationSinkSpec) HasName() bool

type Pipeline

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

	Spec   PipelineSpec `json:"spec,omitempty"`
	Status Status       `json:"status,omitempty"`
}

Pipeline is the Schema for the pipelines API +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Console ID"

func (*Pipeline) DeepCopy

func (in *Pipeline) DeepCopy() *Pipeline

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

func (*Pipeline) DeepCopyInto

func (in *Pipeline) DeepCopyInto(out *Pipeline)

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

func (*Pipeline) DeepCopyObject

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

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

func (*Pipeline) HasProjectRef

func (p *Pipeline) HasProjectRef() bool

func (*Pipeline) ProjectName

func (p *Pipeline) ProjectName() string

func (*Pipeline) SetCondition

func (p *Pipeline) SetCondition(condition metav1.Condition)

type PipelineContext

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

	Spec   PipelineContextSpec `json:"spec,omitempty"`
	Status Status              `json:"status,omitempty"`
}

PipelineContext is the Schema for the pipelinecontexts API

func (*PipelineContext) DeepCopy

func (in *PipelineContext) DeepCopy() *PipelineContext

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

func (*PipelineContext) DeepCopyInto

func (in *PipelineContext) DeepCopyInto(out *PipelineContext)

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

func (*PipelineContext) DeepCopyObject

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

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

func (*PipelineContext) SetCondition

func (p *PipelineContext) SetCondition(condition metav1.Condition)

type PipelineContextList

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

PipelineContextList contains a list of PipelineContext

func (*PipelineContextList) DeepCopy

func (in *PipelineContextList) DeepCopy() *PipelineContextList

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

func (*PipelineContextList) DeepCopyInto

func (in *PipelineContextList) DeepCopyInto(out *PipelineContextList)

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

func (*PipelineContextList) DeepCopyObject

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

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

type PipelineContextSpec

type PipelineContextSpec struct {
	// PipelineRef pointing to source Pipeline.
	// +kubebuilder:validation:Optional
	PipelineRef *corev1.ObjectReference `json:"pipelineRef,omitempty"`

	// Context is a Pipeline context
	Context runtime.RawExtension `json:"context,omitempty"`
}

PipelineContextSpec defines the desired state of PipelineContext

func (*PipelineContextSpec) DeepCopy

func (in *PipelineContextSpec) DeepCopy() *PipelineContextSpec

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

func (*PipelineContextSpec) DeepCopyInto

func (in *PipelineContextSpec) DeepCopyInto(out *PipelineContextSpec)

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

type PipelineEdge

type PipelineEdge struct {
	// FromID is stage ID the edge is from, can also be specified by name.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	FromID *string `json:"fromId,omitempty"`

	// ToID is stage ID the edge is to, can also be specified by name.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	ToID *string `json:"toId,omitempty"`

	// From is the name of the pipeline stage this edge emits from.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	From *string `json:"from,omitempty"`

	// To is the name of the pipeline stage this edge points to.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	To *string `json:"to,omitempty"`

	// Gates are any optional promotion gates you wish to configure.
	// +kubebuilder:validation:Optional
	Gates []PipelineGate `json:"gates,omitempty"`
}

PipelineEdge is a specification of an edge between two pipeline stages.

func (*PipelineEdge) DeepCopy

func (in *PipelineEdge) DeepCopy() *PipelineEdge

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

func (*PipelineEdge) DeepCopyInto

func (in *PipelineEdge) DeepCopyInto(out *PipelineEdge)

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

type PipelineGate

type PipelineGate struct {
	// Name of this gate.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Name string `json:"name"`

	// Type of gate this is.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=APPROVAL;WINDOW;JOB
	Type console.GateType `json:"type"`

	// ClusterRef of a Cluster this gate will execute on.
	// +kubebuilder:validation:Optional
	ClusterRef *v1.ObjectReference `json:"clusterRef,omitempty"`

	// Spec contains specification for more complex gate types.
	// +kubebuilder:validation:Optional
	Spec *GateSpec `json:"spec,omitempty"`
}

PipelineGate will configure a promotion gate for a pipeline.

func (*PipelineGate) DeepCopy

func (in *PipelineGate) DeepCopy() *PipelineGate

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

func (*PipelineGate) DeepCopyInto

func (in *PipelineGate) DeepCopyInto(out *PipelineGate)

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

type PipelineList

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

PipelineList contains a list of Pipeline +kubebuilder:object:root=true

func (*PipelineList) DeepCopy

func (in *PipelineList) DeepCopy() *PipelineList

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

func (*PipelineList) DeepCopyInto

func (in *PipelineList) DeepCopyInto(out *PipelineList)

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

func (*PipelineList) DeepCopyObject

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

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

type PipelineSpec

type PipelineSpec struct {
	// Stages of a pipeline.
	Stages []PipelineStage `json:"stages,omitempty"`

	// Edges of a pipeline.
	Edges []PipelineEdge `json:"edges,omitempty"`

	// ProjectRef references project this stack belongs to.
	// If not provided, it will use the default project.
	// +kubebuilder:validation:Optional
	ProjectRef *v1.ObjectReference `json:"projectRef,omitempty"`
}

PipelineSpec defines the desired state of Pipeline.

func (*PipelineSpec) DeepCopy

func (in *PipelineSpec) DeepCopy() *PipelineSpec

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

func (*PipelineSpec) DeepCopyInto

func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)

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

type PipelineStage

type PipelineStage struct {
	// Name of this stage.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	Name string `json:"name"`

	// Services including optional promotion criteria.
	Services []PipelineStageService `json:"services,omitempty"`
}

PipelineStage defines the Pipeline stage.

func (*PipelineStage) DeepCopy

func (in *PipelineStage) DeepCopy() *PipelineStage

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

func (*PipelineStage) DeepCopyInto

func (in *PipelineStage) DeepCopyInto(out *PipelineStage)

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

type PipelineStageService

type PipelineStageService struct {
	ServiceRef *v1.ObjectReference `json:"serviceRef,omitempty"`

	// +kubebuilder:validation:Optional
	Criteria *PipelineStageServicePromotionCriteria `json:"criteria,omitempty"`
}

PipelineStageService is the configuration of a service within a pipeline stage, including optional promotion criteria.

func (*PipelineStageService) DeepCopy

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

func (*PipelineStageService) DeepCopyInto

func (in *PipelineStageService) DeepCopyInto(out *PipelineStageService)

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

type PipelineStageServicePromotionCriteria

type PipelineStageServicePromotionCriteria struct {
	// ServiceRef pointing to source service to promote from.
	// +kubebuilder:validation:Optional
	ServiceRef *v1.ObjectReference `json:"serviceRef,omitempty"`

	// PrAutomationRef pointing to source PR automation to promote from.
	// +kubebuilder:validation:Optional
	PrAutomationRef *v1.ObjectReference `json:"prAutomationRef,omitempty"`

	// The repository slug the pr automation will use (eg pluralsh/console if you will pr against https://github.com/pluralsh/console)
	// +kubebuilder:validation:Optional
	Repository *string `json:"repository,omitempty"`

	// Secrets to copy over in a promotion.
	// +kubebuilder:validation:Optional
	Secrets []*string `json:"secrets,omitempty"`
}

PipelineStageServicePromotionCriteria represents actions to perform if this stage service were promoted.

func (*PipelineStageServicePromotionCriteria) DeepCopy

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

func (*PipelineStageServicePromotionCriteria) DeepCopyInto

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

type PluralResource

type PluralResource interface {
	client.Object

	// ConsoleID returns a resource id read from the Console API
	ConsoleID() *string
	// ConsoleName returns a resource name read from the Console API
	ConsoleName() string
}

PluralResource ... +k8s:deepcopy-gen=false

type PrAutomation

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

	// Spec ...
	// +kubebuilder:validation:Required
	Spec PrAutomationSpec `json:"spec"`

	// Status ...
	// +kubebuilder:validation:Optional
	Status Status `json:"status,omitempty"`
}

PrAutomation ... +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="ID of the pr automation in the Console API."

func (*PrAutomation) Attributes

func (in *PrAutomation) Attributes(clusterID *string, serviceID *string, connectionID *string, repositoryID *string) *console.PrAutomationAttributes

func (*PrAutomation) ConsoleID

func (in *PrAutomation) ConsoleID() *string

ConsoleID implements PluralResource interface

func (*PrAutomation) ConsoleName

func (in *PrAutomation) ConsoleName() string

ConsoleName implements PluralResource interface

func (*PrAutomation) DeepCopy

func (in *PrAutomation) DeepCopy() *PrAutomation

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

func (*PrAutomation) DeepCopyInto

func (in *PrAutomation) DeepCopyInto(out *PrAutomation)

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

func (*PrAutomation) DeepCopyObject

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

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

func (*PrAutomation) Diff

func (in *PrAutomation) Diff(hasher Hasher) (changed bool, sha string, err error)

func (*PrAutomation) SetCondition

func (in *PrAutomation) SetCondition(condition metav1.Condition)

type PrAutomationBindings

type PrAutomationBindings struct {
	// Create bindings.
	// +kubebuilder:validation:Optional
	Create []Binding `json:"create,omitempty"`

	// Write bindings.
	// +kubebuilder:validation:Optional
	Write []Binding `json:"write,omitempty"`
}

PrAutomationBindings ...

func (*PrAutomationBindings) DeepCopy

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

func (*PrAutomationBindings) DeepCopyInto

func (in *PrAutomationBindings) DeepCopyInto(out *PrAutomationBindings)

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

type PrAutomationConfiguration

type PrAutomationConfiguration struct {
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=STRING;INT;BOOL;DOMAIN;BUCKET;FILE;FUNCTION;PASSWORD;ENUM
	Type console.ConfigurationType `json:"type"`

	// +kubebuilder:validation:Optional
	*Condition `json:"condition,omitempty"`

	// +kubebuilder:validation:Optional
	Default *string `json:"default,omitempty"`

	// +kubebuilder:validation:Optional
	Documentation *string `json:"documentation,omitempty"`

	// +kubebuilder:validation:Optional
	Longform *string `json:"longform,omitempty"`

	// +kubebuilder:validation:Optional
	Optional *bool `json:"optional,omitempty"`

	// +kubebuilder:validation:Optional
	Placeholder *string `json:"placeholder,omitempty"`

	// +kubebuilder:validation:Optional
	Values []*string `json:"values,omitempty"`
}

PrAutomationConfiguration ...

func (*PrAutomationConfiguration) Attributes

func (*PrAutomationConfiguration) DeepCopy

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

func (*PrAutomationConfiguration) DeepCopyInto

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

type PrAutomationCreateConfiguration

type PrAutomationCreateConfiguration struct {
	// Git Location to source external files from
	// +kubebuilder:validation:Optional
	Git *GitRef `json:"git,omitempty"`

	// Template files to use to generate file content
	// +kubebuilder:validation:Optional
	Templates []PrAutomationTemplate `json:"templates,omitempty"`
}

PrAutomationCreateConfiguration ...

func (*PrAutomationCreateConfiguration) Attributes

func (*PrAutomationCreateConfiguration) DeepCopy

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

func (*PrAutomationCreateConfiguration) DeepCopyInto

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

type PrAutomationDeleteConfiguration

type PrAutomationDeleteConfiguration struct {
	// Individual files to delete
	// +kubebuilder:validation:Optional
	Files []string `json:"files"`

	// Entire folders to delete
	// +kubebuilder:validation:Optional
	Folders []string `json:"folders"`
}

func (*PrAutomationDeleteConfiguration) Attributes

func (*PrAutomationDeleteConfiguration) DeepCopy

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

func (*PrAutomationDeleteConfiguration) DeepCopyInto

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

type PrAutomationList

type PrAutomationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []PrAutomation `json:"items"`
}

PrAutomationList ... +kubebuilder:object:root=true

func (*PrAutomationList) DeepCopy

func (in *PrAutomationList) DeepCopy() *PrAutomationList

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

func (*PrAutomationList) DeepCopyInto

func (in *PrAutomationList) DeepCopyInto(out *PrAutomationList)

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

func (*PrAutomationList) DeepCopyObject

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

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

type PrAutomationSpec

type PrAutomationSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=CLUSTER;SERVICE;PIPELINE;UPDATE;UPGRADE
	Role *console.PrRole `json:"role,omitempty"`

	// Addon is a link to an addon name
	// +kubebuilder:validation:Optional
	Addon *string `json:"addon,omitempty"`

	// The base branch this pr will be based on (defaults to the repo's main branch)
	// +kubebuilder:validation:Optional
	Branch *string `json:"branch,omitempty"`

	// Documentation ...
	// +kubebuilder:validation:Optional
	Documentation *string `json:"documentation,omitempty"`

	// Identifier is a string referencing the repository, i.e. for GitHub it would be "<organization>/<repositoryName>"
	// +kubebuilder:validation:Optional
	Identifier *string `json:"identifier,omitempty"`

	// Message the commit message this pr will incorporate
	// +kubebuilder:validation:Optional
	Message *string `json:"message,omitempty"`

	// Name name of the automation in the console api (defaults to metadata.name)
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty"`

	// Title the title of the generated pr
	// +kubebuilder:validation:Optional
	Title *string `json:"title,omitempty"`

	// ClusterRef a cluster this pr works on
	// +kubebuilder:validation:Optional
	ClusterRef *corev1.ObjectReference `json:"clusterRef,omitempty"`

	// ScmConnectionRef the SCM connection to use for generating this PR
	// +kubebuilder:validation:Required
	ScmConnectionRef corev1.ObjectReference `json:"scmConnectionRef,omitempty"`

	// RepositoryRef ...
	// +kubebuilder:validation:Optional
	RepositoryRef *corev1.ObjectReference `json:"repositoryRef,omitempty"`

	// ServiceRef the service this PR acts on
	// +kubebuilder:validation:Optional
	ServiceRef *corev1.ObjectReference `json:"serviceRef,omitempty"`

	// Bindings contain read and write policies of pr automation
	// +kubebuilder:validation:Optional
	Bindings *PrAutomationBindings `json:"bindings,omitempty"`

	// Configuration self-service configuration for the UI wizard generating this PR
	// +kubebuilder:validation:Optional
	Configuration []PrAutomationConfiguration `json:"configuration,omitempty"`

	// Specs for files to be templated and created
	// +kubebuilder:validation:Optional
	Creates *PrAutomationCreateConfiguration `json:"creates,omitempty"`

	// Spec for files to be updated, using regex replacement
	// +kubebuilder:validation:Optional
	Updates *PrAutomationUpdateConfiguration `json:"updates,omitempty"`

	// Spec for files and folders to be deleted
	// +kubebuilder:validation:Optional
	Deletes *PrAutomationDeleteConfiguration `json:"deletes,omitempty"`
}

PrAutomationSpec ...

func (*PrAutomationSpec) DeepCopy

func (in *PrAutomationSpec) DeepCopy() *PrAutomationSpec

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

func (*PrAutomationSpec) DeepCopyInto

func (in *PrAutomationSpec) DeepCopyInto(out *PrAutomationSpec)

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

type PrAutomationTemplate

type PrAutomationTemplate struct {
	// The destination to write the file to
	// +kubebuilder:validation:Required
	Destination string `json:"destination"`

	// Whether it is being sourced from an external git repository
	// +kubebuilder:validation:Required
	External bool `json:"external"`

	// The source file to use for templating
	// +kubebuilder:validation:Optional
	Source string `json:"source"`
}

PrAutomationTemplate ...

func (*PrAutomationTemplate) Attributes

func (*PrAutomationTemplate) DeepCopy

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

func (*PrAutomationTemplate) DeepCopyInto

func (in *PrAutomationTemplate) DeepCopyInto(out *PrAutomationTemplate)

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

type PrAutomationTrigger

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

	Spec   PrAutomationTriggerSpec `json:"spec,omitempty"`
	Status Status                  `json:"status,omitempty"`
}

PrAutomationTrigger is the Schema for the prautomationtriggers API

func (*PrAutomationTrigger) DeepCopy

func (in *PrAutomationTrigger) DeepCopy() *PrAutomationTrigger

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

func (*PrAutomationTrigger) DeepCopyInto

func (in *PrAutomationTrigger) DeepCopyInto(out *PrAutomationTrigger)

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

func (*PrAutomationTrigger) DeepCopyObject

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

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

func (*PrAutomationTrigger) SetCondition

func (p *PrAutomationTrigger) SetCondition(condition metav1.Condition)

type PrAutomationTriggerList

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

PrAutomationTriggerList contains a list of PrAutomationTrigger

func (*PrAutomationTriggerList) DeepCopy

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

func (*PrAutomationTriggerList) DeepCopyInto

func (in *PrAutomationTriggerList) DeepCopyInto(out *PrAutomationTriggerList)

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

func (*PrAutomationTriggerList) DeepCopyObject

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

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

type PrAutomationTriggerSpec

type PrAutomationTriggerSpec struct {
	// PrAutomationRef pointing to source PrAutomation.
	// +kubebuilder:validation:Optional
	PrAutomationRef *corev1.ObjectReference `json:"prAutomationRef,omitempty"`

	// Context is a PrAutomation context
	Context runtime.RawExtension `json:"context,omitempty"`
}

PrAutomationTriggerSpec defines the desired state of PrAutomationTrigger

func (*PrAutomationTriggerSpec) DeepCopy

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

func (*PrAutomationTriggerSpec) DeepCopyInto

func (in *PrAutomationTriggerSpec) DeepCopyInto(out *PrAutomationTriggerSpec)

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

type PrAutomationUpdateConfiguration

type PrAutomationUpdateConfiguration struct {
	// Files to update
	// +kubebuilder:validation:Optional
	Files []*string `json:"files,omitempty"`

	// MatchStrategy, see enum for behavior
	// +kubebuilder:validation:Optional
	MatchStrategy *console.MatchStrategy `json:"matchStrategy,omitempty"`

	// Full regex + replacement structs in case there is different behavior per regex
	// +kubebuilder:validation:Optional
	RegexReplacements []RegexReplacement `json:"regexReplacements,omitempty"`

	// The regexes to apply on each file
	// +kubebuilder:validation:Optional
	Regexes []*string `json:"regexes,omitempty"`

	// The template to use when replacing a regex
	// +kubebuilder:validation:Optional
	ReplaceTemplate *string `json:"replaceTemplate,omitempty"`

	// (Unused so far)
	// +kubebuilder:validation:Optional
	Yq *string `json:"yq,omitempty"`
}

PrAutomationUpdateConfiguration ...

func (*PrAutomationUpdateConfiguration) Attributes

func (*PrAutomationUpdateConfiguration) DeepCopy

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

func (*PrAutomationUpdateConfiguration) DeepCopyInto

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

type Project

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

	// Spec reflects a Console API project spec.
	// +kubebuilder:validation:Required
	Spec ProjectSpec `json:"spec"`

	// Status represent a status of this resource.
	// +kubebuilder:validation:Optional
	Status Status `json:"status,omitempty"`
}

Project is a unit of organization to control permissions for a set of objects within your Console instance. +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="ID of the Project in the Console API."

func (*Project) Attributes

func (in *Project) Attributes() console.ProjectAttributes

func (*Project) ConsoleID

func (in *Project) ConsoleID() *string

ConsoleID implements PluralResource interface

func (*Project) ConsoleName

func (in *Project) ConsoleName() string

ConsoleName implements PluralResource interface

func (*Project) DeepCopy

func (in *Project) DeepCopy() *Project

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

func (*Project) DeepCopyInto

func (in *Project) DeepCopyInto(out *Project)

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

func (*Project) DeepCopyObject

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

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

func (*Project) Diff

func (in *Project) Diff(hasher Hasher) (changed bool, sha string, err error)

func (*Project) SetCondition

func (in *Project) SetCondition(condition metav1.Condition)

type ProjectList

type ProjectList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Project `json:"items"`
}

ProjectList is a list of Project. +kubebuilder:object:root=true

func (*ProjectList) DeepCopy

func (in *ProjectList) DeepCopy() *ProjectList

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

func (*ProjectList) DeepCopyInto

func (in *ProjectList) DeepCopyInto(out *ProjectList)

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

func (*ProjectList) DeepCopyObject

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

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

type ProjectSpec

type ProjectSpec struct {
	// Name is a project name.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:example:=myprojectname
	Name string `json:"name"`

	// Description is a description of this project.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:example:=my project description
	Description *string `json:"description,omitempty"`

	// Bindings contain read and write policies of this project.
	// +kubebuilder:validation:Optional
	Bindings *Bindings `json:"bindings,omitempty"`
}

func (*ProjectSpec) DeepCopy

func (in *ProjectSpec) DeepCopy() *ProjectSpec

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

func (*ProjectSpec) DeepCopyInto

func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)

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

type Provider

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

	// +kubebuilder:validation:Required
	Spec ProviderSpec `json:"spec"`
	// +kubebuilder:validation:Optional
	Status Status `json:"status,omitempty"`
}

Provider ... +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="ID of the provider in the Console API." +kubebuilder:printcolumn:name="Name",type="string",JSONPath=".spec.name",description="Human-readable name of the Provider." +kubebuilder:printcolumn:name="Cloud",type="string",JSONPath=".spec.cloud",description="Name of the Provider cloud service."

func (*Provider) Attributes

func (p *Provider) Attributes(ctx context.Context, cloudSettingsGetter CloudSettingsGetter) (console.ClusterProviderAttributes, error)

func (*Provider) DeepCopy

func (in *Provider) DeepCopy() *Provider

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

func (*Provider) DeepCopyInto

func (in *Provider) DeepCopyInto(out *Provider)

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

func (*Provider) DeepCopyObject

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

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

func (*Provider) Diff

func (p *Provider) Diff(ctx context.Context, getter CloudSettingsGetter, hasher Hasher) (changed bool, sha string, err error)

func (*Provider) SetCondition

func (p *Provider) SetCondition(condition metav1.Condition)

func (*Provider) UpdateAttributes

func (p *Provider) UpdateAttributes(ctx context.Context, cloudSettingsGetter CloudSettingsGetter) (console.ClusterProviderUpdateAttributes, error)

type ProviderList

type ProviderList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Provider `json:"items"`
}

ProviderList ... +kubebuilder:object:root=true

func (*ProviderList) DeepCopy

func (in *ProviderList) DeepCopy() *ProviderList

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

func (*ProviderList) DeepCopyInto

func (in *ProviderList) DeepCopyInto(out *ProviderList)

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

func (*ProviderList) DeepCopyObject

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

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

type ProviderSpec

type ProviderSpec struct {
	// Cloud is the name of the cloud service for the Provider.
	// One of (CloudProvider): [gcp, aws, azure]
	// +kubebuilder:example:=aws
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:validation:Enum:=gcp;aws;azure
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Cloud is immutable"
	Cloud CloudProvider `json:"cloud"`
	// CloudSettings reference cloud provider credentials secrets used for provisioning the Cluster.
	// Not required when Cloud is set to CloudProvider(BYOK).
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=object
	// +structType=atomic
	CloudSettings *CloudProviderSettings `json:"cloudSettings"`
	// Name is a human-readable name of the Provider.
	// +kubebuilder:example:=gcp-provider
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Name is immutable"
	Name string `json:"name"`
	// Namespace is the namespace ClusterAPI resources are deployed into.
	// +kubebuilder:example:=capi-gcp
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Namespace is immutable"
	Namespace string `json:"namespace,omitempty"`
}

ProviderSpec ...

func (*ProviderSpec) DeepCopy

func (in *ProviderSpec) DeepCopy() *ProviderSpec

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

func (*ProviderSpec) DeepCopyInto

func (in *ProviderSpec) DeepCopyInto(out *ProviderSpec)

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

type RegexReplacement

type RegexReplacement struct {
	// The regex to match a substring on
	// +kubebuilder:validation:Required
	Regex string `json:"regex"`

	// The file this replacement will work on
	// +kubebuilder:validation:Required
	File string `json:"file"`

	// Replacement to be substituted for the match in the regex
	// +kubebuilder:validation:Required
	Replacement string `json:"replacement"`

	// Whether you want to apply templating to the regex before compiling
	// +kubebuilder:validation:Optional
	Templated *bool `json:"templated"`
}

RegexReplacement ...

func (*RegexReplacement) Attributes

func (*RegexReplacement) DeepCopy

func (in *RegexReplacement) DeepCopy() *RegexReplacement

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

func (*RegexReplacement) DeepCopyInto

func (in *RegexReplacement) DeepCopyInto(out *RegexReplacement)

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

type RouterFilters

type RouterFilters struct {
	// Regex a regex for filtering by things like pr url
	// +kubebuilder:validation:Optional
	Regex *string `json:"regex,omitempty"`
	// ServiceRef whether to enable delivery for events associated with this service
	// +kubebuilder:validation:Optional
	ServiceRef *corev1.ObjectReference `json:"serviceRef,omitempty"`
	// ClusterRef whether to enable delivery for events associated with this cluster
	// +kubebuilder:validation:Optional
	ClusterRef *corev1.ObjectReference `json:"clusterRef,omitempty"`
	// PipelineRef whether to enable delivery for events associated with this pipeline
	// +kubebuilder:validation:Optional
	PipelineRef *corev1.ObjectReference `json:"pipelineRef,omitempty"`
}

func (*RouterFilters) DeepCopy

func (in *RouterFilters) DeepCopy() *RouterFilters

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

func (*RouterFilters) DeepCopyInto

func (in *RouterFilters) DeepCopyInto(out *RouterFilters)

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

type ScmConnection

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

	// +kubebuilder:validation:Required
	Spec ScmConnectionSpec `json:"spec"`
	// +kubebuilder:validation:Optional
	Status Status `json:"status,omitempty"`
}

ScmConnection ... +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="ID of the scm connection in the Console API." +kubebuilder:printcolumn:name="Provider",type="string",JSONPath=".spec.type",description="Name of the scm provider service."

func (*ScmConnection) Attributes

func (s *ScmConnection) Attributes(ctx context.Context, kubeClient client.Client, token *string) (*console.ScmConnectionAttributes, error)

func (*ScmConnection) ConsoleID

func (s *ScmConnection) ConsoleID() *string

ConsoleID implements PluralResource interface

func (*ScmConnection) ConsoleName

func (s *ScmConnection) ConsoleName() string

ConsoleName implements PluralResource interface

func (*ScmConnection) DeepCopy

func (in *ScmConnection) DeepCopy() *ScmConnection

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

func (*ScmConnection) DeepCopyInto

func (in *ScmConnection) DeepCopyInto(out *ScmConnection)

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

func (*ScmConnection) DeepCopyObject

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

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

func (*ScmConnection) Diff

func (s *ScmConnection) Diff(hasher Hasher) (changed bool, sha string, err error)

func (*ScmConnection) SetCondition

func (s *ScmConnection) SetCondition(condition metav1.Condition)

type ScmConnectionList

type ScmConnectionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ScmConnection `json:"items"`
}

ScmConnectionList ... +kubebuilder:object:root=true

func (*ScmConnectionList) DeepCopy

func (in *ScmConnectionList) DeepCopy() *ScmConnectionList

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

func (*ScmConnectionList) DeepCopyInto

func (in *ScmConnectionList) DeepCopyInto(out *ScmConnectionList)

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

func (*ScmConnectionList) DeepCopyObject

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

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

type ScmConnectionSpec

type ScmConnectionSpec struct {
	// Name is a human-readable name of the ScmConnection.
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// Type is the name of the scm service for the ScmConnection.
	// One of (ScmType): [github, gitlab]
	// +kubebuilder:example:=GITHUB
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:validation:Enum:=GITHUB;GITLAB;BITBUCKET
	Type console.ScmType `json:"type"`
	// Token ...
	// +kubebuilder:validation:Optional
	TokenSecretRef *corev1.SecretReference `json:"tokenSecretRef,omitempty"`
	// Username ...
	// +kubebuilder:validation:Optional
	Username *string `json:"username,omitempty"`
	// BaseUrl is a base URL for Git clones for self-hosted versions.
	// +kubebuilder:validation:Optional
	BaseUrl *string `json:"baseUrl,omitempty"`
	// APIUrl is a base URL for HTTP apis for shel-hosted versions if different from BaseUrl.
	// +kubebuilder:validation:Optional
	APIUrl *string `json:"apiUrl,omitempty"`
	// +kubebuilder:validation:Optional
	Github *ScmGithubConnection `json:"github,omitempty"`
}

func (*ScmConnectionSpec) DeepCopy

func (in *ScmConnectionSpec) DeepCopy() *ScmConnectionSpec

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

func (*ScmConnectionSpec) DeepCopyInto

func (in *ScmConnectionSpec) DeepCopyInto(out *ScmConnectionSpec)

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

type ScmGithubConnection

type ScmGithubConnection struct {
	AppID          string `json:"appId"`
	InstallationId string `json:"installationId"`
	// +kubebuilder:validation:Optional
	PrivateKeyRef *corev1.SecretKeySelector `json:"privateKeyRef,omitempty"`
}

func (*ScmGithubConnection) DeepCopy

func (in *ScmGithubConnection) DeepCopy() *ScmGithubConnection

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

func (*ScmGithubConnection) DeepCopyInto

func (in *ScmGithubConnection) DeepCopyInto(out *ScmGithubConnection)

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

type ServiceAccount

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

	// Spec reflects a Console API service account spec.
	// +kubebuilder:validation:Required
	Spec ServiceAccountSpec `json:"spec"`

	// Status represent a status of this resource.
	// +kubebuilder:validation:Optional
	Status Status `json:"status,omitempty"`
}

ServiceAccount is a type of non-human account that provides distinct identity. +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="ID of the service account in the Console API."

func (*ServiceAccount) Attributes

func (*ServiceAccount) ConsoleID

func (in *ServiceAccount) ConsoleID() *string

ConsoleID returns an ID used in Console API.

func (*ServiceAccount) ConsoleName

func (in *ServiceAccount) ConsoleName() string

ConsoleName returns a name used in Console API.

func (*ServiceAccount) DeepCopy

func (in *ServiceAccount) DeepCopy() *ServiceAccount

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

func (*ServiceAccount) DeepCopyInto

func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount)

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

func (*ServiceAccount) DeepCopyObject

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

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

func (*ServiceAccount) Diff

func (in *ServiceAccount) Diff(hasher Hasher) (changed bool, sha string, err error)

func (*ServiceAccount) SetCondition

func (in *ServiceAccount) SetCondition(condition metav1.Condition)

type ServiceAccountList

type ServiceAccountList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ServiceAccount `json:"items"`
}

ServiceAccountList is a list of service accounts. +kubebuilder:object:root=true

func (*ServiceAccountList) DeepCopy

func (in *ServiceAccountList) DeepCopy() *ServiceAccountList

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

func (*ServiceAccountList) DeepCopyInto

func (in *ServiceAccountList) DeepCopyInto(out *ServiceAccountList)

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

func (*ServiceAccountList) DeepCopyObject

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

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

type ServiceAccountSpec

type ServiceAccountSpec struct {
	// Email address to that will be bound to this service account.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type:=string
	// +kubebuilder:example:=some@email.com
	Email string `json:"email"`

	// TokenSecretRef is a secret reference that should contain token.
	// +kubebuilder:validation:Optional
	TokenSecretRef *corev1.SecretReference `json:"tokenSecretRef,omitempty"`
}

func (*ServiceAccountSpec) DeepCopy

func (in *ServiceAccountSpec) DeepCopy() *ServiceAccountSpec

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

func (*ServiceAccountSpec) DeepCopyInto

func (in *ServiceAccountSpec) DeepCopyInto(out *ServiceAccountSpec)

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

type ServiceComponent

type ServiceComponent struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	// +kubebuilder:validation:Optional
	Group *string `json:"group,omitempty"`
	Kind  string  `json:"kind"`
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty"`
	// State specifies the component state
	// +kubebuilder:validation:Enum:=RUNNING;PENDING;FAILED
	// +kubebuilder:validation:Optional
	State  *ComponentState `json:"state,omitempty"`
	Synced bool            `json:"synced"`
	// +kubebuilder:validation:Optional
	Version *string `json:"version,omitempty"`
}

func (*ServiceComponent) DeepCopy

func (in *ServiceComponent) DeepCopy() *ServiceComponent

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

func (*ServiceComponent) DeepCopyInto

func (in *ServiceComponent) DeepCopyInto(out *ServiceComponent)

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

type ServiceDependency

type ServiceDependency struct {
	// The name of a service on the same cluster this service depends on
	Name string `json:"name"`
}

func (*ServiceDependency) DeepCopy

func (in *ServiceDependency) DeepCopy() *ServiceDependency

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

func (*ServiceDependency) DeepCopyInto

func (in *ServiceDependency) DeepCopyInto(out *ServiceDependency)

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

type ServiceDeployment

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

	// +kubebuilder:validation:Required
	Spec   ServiceSpec   `json:"spec,omitempty"`
	Status ServiceStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Id",type="string",JSONPath=".status.id",description="Console repo Id"

func (*ServiceDeployment) ConsoleID

func (s *ServiceDeployment) ConsoleID() *string

ConsoleID implements NamespacedPluralResource interface

func (*ServiceDeployment) ConsoleName

func (s *ServiceDeployment) ConsoleName() string

ConsoleName implements NamespacedPluralResource interface

func (*ServiceDeployment) ConsoleNamespace

func (s *ServiceDeployment) ConsoleNamespace() string

ConsoleNamespace implements NamespacedPluralResource interface

func (*ServiceDeployment) DeepCopy

func (in *ServiceDeployment) DeepCopy() *ServiceDeployment

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

func (*ServiceDeployment) DeepCopyInto

func (in *ServiceDeployment) DeepCopyInto(out *ServiceDeployment)

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

func (*ServiceDeployment) DeepCopyObject

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

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

func (*ServiceDeployment) SetCondition

func (s *ServiceDeployment) SetCondition(condition metav1.Condition)

type ServiceDeploymentList

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

func (*ServiceDeploymentList) DeepCopy

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

func (*ServiceDeploymentList) DeepCopyInto

func (in *ServiceDeploymentList) DeepCopyInto(out *ServiceDeploymentList)

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

func (*ServiceDeploymentList) DeepCopyObject

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

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

type ServiceError

type ServiceError struct {
	Source  string `json:"source"`
	Message string `json:"message"`
}

func (*ServiceError) DeepCopy

func (in *ServiceError) DeepCopy() *ServiceError

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

func (*ServiceError) DeepCopyInto

func (in *ServiceError) DeepCopyInto(out *ServiceError)

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

type ServiceHelm

type ServiceHelm struct {
	// Fetches the helm values from a secret in this cluster, will consider any key with yaml data a values file and merge them iteratively
	// +kubebuilder:validation:Optional
	ValuesFrom *corev1.SecretReference `json:"valuesFrom,omitempty"`
	// +kubebuilder:validation:Optional
	ValuesConfigMapRef *corev1.ConfigMapKeySelector `json:"valuesConfigMapRef,omitempty"`
	// name of the helm release to use when applying
	// +kubebuilder:validation:Optional
	Release *string `json:"release,omitempty"`
	// reference to a GitRepository to source the helm chart from (useful if you're using a multi-source configuration for values files)
	// +kubebuilder:validation:Optional
	RepositoryRef *corev1.ObjectReference `json:"repositoryRef"`
	// arbitrary yaml values to overlay
	// +kubebuilder:validation:Optional
	Values *runtime.RawExtension `json:"values,omitempty"`
	// individual values files to overlay
	// +kubebuilder:validation:Optional
	ValuesFiles []*string `json:"valuesFiles,omitempty"`
	// chart to use
	// +kubebuilder:validation:Optional
	Chart *string `json:"chart,omitempty"`
	// chart version to use
	// +kubebuilder:validation:Optional
	Version *string `json:"version,omitempty"`
	// pointer to the FluxCD helm repository to use
	// +kubebuilder:validation:Optional
	Repository *NamespacedName `json:"repository,omitempty"`
}

func (*ServiceHelm) DeepCopy

func (in *ServiceHelm) DeepCopy() *ServiceHelm

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

func (*ServiceHelm) DeepCopyInto

func (in *ServiceHelm) DeepCopyInto(out *ServiceHelm)

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

type ServiceImport

type ServiceImport struct {
	// +kubebuilder:validation:Required
	StackRef corev1.ObjectReference `json:"stackRef"`
}

func (*ServiceImport) DeepCopy

func (in *ServiceImport) DeepCopy() *ServiceImport

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

func (*ServiceImport) DeepCopyInto

func (in *ServiceImport) DeepCopyInto(out *ServiceImport)

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

type ServiceKustomize

type ServiceKustomize struct {
	Path string `json:"path"`
}

func (*ServiceKustomize) Attributes

func (sk *ServiceKustomize) Attributes() *console.KustomizeAttributes

func (*ServiceKustomize) DeepCopy

func (in *ServiceKustomize) DeepCopy() *ServiceKustomize

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

func (*ServiceKustomize) DeepCopyInto

func (in *ServiceKustomize) DeepCopyInto(out *ServiceKustomize)

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

type ServiceSpec

type ServiceSpec struct {
	// the name of this service, if not provided ServiceDeployment's own name from ServiceDeployment.ObjectMeta will be used.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty"`
	// the namespace this service will be deployed into, if not provided deploys to the ServiceDeployment's own namespace
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty"`
	// +kubebuilder:validation:Optional
	DocsPath *string `json:"docsPath,omitempty"`
	// +kubebuilder:validation:Optional
	Version *string `json:"version"`
	// +kubebuilder:validation:Optional
	Protect bool `json:"protect,omitempty"`
	// +kubebuilder:validation:Optional
	Kustomize *ServiceKustomize `json:"kustomize,omitempty"`
	// +kubebuilder:validation:Optional
	Git *GitRef `json:"git,omitempty"`
	// +kubebuilder:validation:Optional
	Helm *ServiceHelm `json:"helm,omitempty"`
	// +kubebuilder:validation:Optional
	SyncConfig *SyncConfigAttributes `json:"syncConfig,omitempty"`
	// +kubebuilder:validation:Optional
	RepositoryRef *corev1.ObjectReference `json:"repositoryRef"`
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Cluster is immutable"
	ClusterRef corev1.ObjectReference `json:"clusterRef"`
	// ConfigurationRef is a secret reference which should contain service configuration.
	// +kubebuilder:validation:Optional
	ConfigurationRef *corev1.SecretReference `json:"configurationRef,omitempty"`
	// Bindings contain read and write policies of this cluster
	// +kubebuilder:validation:Optional
	Bindings *Bindings `json:"bindings,omitempty"`
	// Dependencies contain dependent services
	// +kubebuilder:validation:Optional
	Dependencies []ServiceDependency `json:"dependencies,omitempty"`
	// Contexts contain dependent service context names
	// +kubebuilder:validation:Optional
	Contexts []string `json:"contexts,omitempty"`
	// Templated should apply liquid templating to raw yaml files, defaults to true
	// +kubebuilder:validation:Optional
	Templated *bool `json:"templated,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Imports are immutable"
	Imports []ServiceImport `json:"imports"`
	// Detach determined if user want to delete or detach service
	// +kubebuilder:validation:Optional
	Detach bool `json:"detach,omitempty"`
}

func (*ServiceSpec) DeepCopy

func (in *ServiceSpec) DeepCopy() *ServiceSpec

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

func (*ServiceSpec) DeepCopyInto

func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)

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

func (*ServiceSpec) DependenciesAttribute

func (ss *ServiceSpec) DependenciesAttribute() []*console.ServiceDependencyAttributes

func (*ServiceSpec) TemplatedAttribute

func (ss *ServiceSpec) TemplatedAttribute() *bool

type ServiceStatus

type ServiceStatus struct {
	Status `json:",inline"`

	// +kubebuilder:validation:Optional
	Errors []ServiceError `json:"errors,omitempty"`
	// +kubebuilder:validation:Optional
	Components []ServiceComponent `json:"components,omitempty"`
}

func (*ServiceStatus) DeepCopy

func (in *ServiceStatus) DeepCopy() *ServiceStatus

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

func (*ServiceStatus) DeepCopyInto

func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)

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

type ServiceTemplate

type ServiceTemplate struct {
	// Name the name for this service (optional for managed namespaces)
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty"`
	// Namespace the namespace for this service (optional for managed namespaces)
	// +kubebuilder:validation:Optional
	Namespace *string `json:"namespace,omitempty"`
	// +kubebuilder:validation:Optional
	Templated *bool `json:"templated,omitempty"`
	// +kubebuilder:validation:Optional
	RepositoryRef *corev1.ObjectReference `json:"repositoryRef"`
	// a list of context ids to add to this service
	// +kubebuilder:validation:Optional
	Contexts []string `json:"contexts,omitempty"`
	// Git settings to configure git for a service
	// +kubebuilder:validation:Optional
	Git *GitRef `json:"git,omitempty"`
	// Helm settings to configure helm for a service
	// +kubebuilder:validation:Optional
	Helm *ServiceHelm `json:"helm,omitempty"`
	// Kustomize settings for service kustomization
	// +kubebuilder:validation:Optional
	Kustomize *ServiceKustomize `json:"kustomize,omitempty"`
	// SyncConfig attributes to configure sync settings for this service
	// +kubebuilder:validation:Optional
	SyncConfig *SyncConfigAttributes `json:"syncConfig,omitempty"`
	// Dependencies contain dependent services
	// +kubebuilder:validation:Optional
	Dependencies []corev1.ObjectReference `json:"dependencies,omitempty"`
}

Attributes for configuring a service in something like a managed namespace

func (*ServiceTemplate) DeepCopy

func (in *ServiceTemplate) DeepCopy() *ServiceTemplate

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

func (*ServiceTemplate) DeepCopyInto

func (in *ServiceTemplate) DeepCopyInto(out *ServiceTemplate)

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

type SinkConfiguration

type SinkConfiguration struct {
	// Slack url
	// +kubebuilder:validation:Optional
	Slack *SinkURL `json:"slack,omitempty"`
	// Teams url
	// +kubebuilder:validation:Optional
	Teams *SinkURL `json:"teams,omitempty"`
}

func (*SinkConfiguration) DeepCopy

func (in *SinkConfiguration) DeepCopy() *SinkConfiguration

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

func (*SinkConfiguration) DeepCopyInto

func (in *SinkConfiguration) DeepCopyInto(out *SinkConfiguration)

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

type SinkURL

type SinkURL struct {
	URL string `json:"url"`
}

func (*SinkURL) DeepCopy

func (in *SinkURL) DeepCopy() *SinkURL

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

func (*SinkURL) DeepCopyInto

func (in *SinkURL) DeepCopyInto(out *SinkURL)

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

type StackConfiguration

type StackConfiguration struct {
	// Image optional custom image you might want to use
	// +kubebuilder:validation:Optional
	Image *string `json:"image,omitempty"`
	// Version the semver of the tool you wish to use
	// +kubebuilder:validation:Required
	Version string `json:"version"`
	// Hooks to run at various stages of the stack run
	// +kubebuilder:validation:Optional
	Hooks []*StackHook `json:"hooks,omitempty"`
	// Tag is the docker image tag you wish to use
	// if you're customizing the version
	// +kubebuilder:validation:Optional
	Tag *string `json:"tag,omitempty"`
}

func (*StackConfiguration) DeepCopy

func (in *StackConfiguration) DeepCopy() *StackConfiguration

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

func (*StackConfiguration) DeepCopyInto

func (in *StackConfiguration) DeepCopyInto(out *StackConfiguration)

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

type StackCron

type StackCron struct {
	// The crontab on which to spawn stack runs
	Crontab string `json:"crontab"`
	// Whether to automatically approve cron-spawned runs
	// +kubebuilder:validation:Optional
	AutoApprove *bool `json:"autoApprove"`
}

func (*StackCron) DeepCopy

func (in *StackCron) DeepCopy() *StackCron

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

func (*StackCron) DeepCopyInto

func (in *StackCron) DeepCopyInto(out *StackCron)

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

type StackDefinition

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

	Spec   StackDefinitionSpec `json:"spec,omitempty"`
	Status Status              `json:"status,omitempty"`
}

StackDefinition is the Schema for the StackDefinitions API +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="ID of the StackDefinition in the Console API."

func (*StackDefinition) Attributes

func (*StackDefinition) DeepCopy

func (in *StackDefinition) DeepCopy() *StackDefinition

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

func (*StackDefinition) DeepCopyInto

func (in *StackDefinition) DeepCopyInto(out *StackDefinition)

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

func (*StackDefinition) DeepCopyObject

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

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

func (*StackDefinition) Diff

func (in *StackDefinition) Diff(hasher Hasher) (changed bool, sha string, err error)

func (*StackDefinition) SetCondition

func (in *StackDefinition) SetCondition(condition metav1.Condition)

func (*StackDefinition) StackName

func (in *StackDefinition) StackName() string

type StackDefinitionList

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

StackDefinitionList contains a list of StackDefinition +kubebuilder:object:root=true

func (*StackDefinitionList) DeepCopy

func (in *StackDefinitionList) DeepCopy() *StackDefinitionList

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

func (*StackDefinitionList) DeepCopyInto

func (in *StackDefinitionList) DeepCopyInto(out *StackDefinitionList)

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

func (*StackDefinitionList) DeepCopyObject

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

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

type StackDefinitionSpec

type StackDefinitionSpec struct {
	// Name of this StackDefinition. If not provided StackDefinition's own name
	// from StackDefinition.ObjectMeta will be used.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty"`

	// Description can be used to describe this StackDefinition.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty"`

	// Steps is a list of custom run steps that will be executed as
	// part of the stack run.
	// +kubebuilder:validation:Optional
	Steps []CustomRunStep `json:"steps,omitempty"`

	// Configuration allows modifying the StackDefinition environment
	// and execution.
	// +kubebuilder:validation:Required
	Configuration StackConfiguration `json:"configuration"`
}

StackDefinitionSpec defines the desired state of StackDefinition

func (*StackDefinitionSpec) DeepCopy

func (in *StackDefinitionSpec) DeepCopy() *StackDefinitionSpec

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

func (*StackDefinitionSpec) DeepCopyInto

func (in *StackDefinitionSpec) DeepCopyInto(out *StackDefinitionSpec)

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

type StackEnvironment

type StackEnvironment struct {
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// +kubebuilder:validation:Optional
	Value *string `json:"value,omitempty"`
	// +kubebuilder:validation:Optional
	SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
	// +kubebuilder:validation:Optional
	ConfigMapRef *corev1.ConfigMapKeySelector `json:"configMapRef,omitempty"`
}

func (*StackEnvironment) DeepCopy

func (in *StackEnvironment) DeepCopy() *StackEnvironment

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

func (*StackEnvironment) DeepCopyInto

func (in *StackEnvironment) DeepCopyInto(out *StackEnvironment)

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

type StackFile

type StackFile struct {
	MountPath string                      `json:"mountPath"`
	SecretRef corev1.LocalObjectReference `json:"secretRef"`
}

func (*StackFile) DeepCopy

func (in *StackFile) DeepCopy() *StackFile

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

func (*StackFile) DeepCopyInto

func (in *StackFile) DeepCopyInto(out *StackFile)

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

type StackHook

type StackHook struct {
	// the command this hook will execute
	// +kubebuilder:validation:Required
	Cmd string `json:"cmd"`

	// optional arguments to pass to the command
	// +kubebuilder:validation:Optional
	Args []string `json:"args,omitempty"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=INIT;PLAN;VERIFY;APPLY;DESTROY
	AfterStage console.StepStage `json:"afterStage"`
}

func (*StackHook) DeepCopy

func (in *StackHook) DeepCopy() *StackHook

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

func (*StackHook) DeepCopyInto

func (in *StackHook) DeepCopyInto(out *StackHook)

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

type StackSettings

type StackSettings struct {
	// JobSpec optional k8s job configuration for the job that will apply this stack
	// +kubebuilder:validation:Optional
	JobSpec *JobSpec `json:"jobSpec,omitempty"`
	// ConnectionRef reference to ScmConnection
	// +kubebuilder:validation:Optional
	ConnectionRef *corev1.ObjectReference `json:"connectionRef,omitempty"`
}

func (*StackSettings) DeepCopy

func (in *StackSettings) DeepCopy() *StackSettings

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

func (*StackSettings) DeepCopyInto

func (in *StackSettings) DeepCopyInto(out *StackSettings)

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

type Status

type Status struct {
	// ID of the resource in the Console API.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	ID *string `json:"id,omitempty"`
	// SHA of last applied configuration.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Type:=string
	SHA *string `json:"sha,omitempty"`
	// Represents the observations of a PrAutomation's current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

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

func (*Status) GetID

func (p *Status) GetID() string

func (*Status) GetSHA

func (p *Status) GetSHA() string

func (*Status) HasID

func (p *Status) HasID() bool

func (*Status) HasReadonlyCondition

func (p *Status) HasReadonlyCondition() bool

func (*Status) HasSHA

func (p *Status) HasSHA() bool

func (*Status) IsReadonly

func (p *Status) IsReadonly() bool

func (*Status) IsSHAEqual

func (p *Status) IsSHAEqual(sha string) bool

func (*Status) IsStatusConditionTrue

func (p *Status) IsStatusConditionTrue(condition ConditionType) bool

type SyncConfigAttributes

type SyncConfigAttributes struct {
	// +kubebuilder:validation:Optional
	CreateNamespace *bool `json:"createNamespace,omitempty"`

	// +kubebuilder:validation:Optional
	EnforceNamespace *bool `json:"enforceNamespace,omitempty"`

	// +kubebuilder:validation:Optional
	Labels map[string]string `json:"labels,omitempty"`

	// +kubebuilder:validation:Optional
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*SyncConfigAttributes) Attributes

func (*SyncConfigAttributes) DeepCopy

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

func (*SyncConfigAttributes) DeepCopyInto

func (in *SyncConfigAttributes) DeepCopyInto(out *SyncConfigAttributes)

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

type Taint

type Taint struct {
	// Effect specifies the effect for the taint.
	// +kubebuilder:validation:Enum=NoSchedule;NoExecute;PreferNoSchedule
	Effect TaintEffect `json:"effect"`

	// Key is the key of the taint.
	Key string `json:"key"`

	// Value is the value of the taint.
	Value string `json:"value"`
}

Taint represents a Kubernetes taint.

func (*Taint) Attributes

func (t *Taint) Attributes() *console.TaintAttributes

func (*Taint) DeepCopy

func (in *Taint) DeepCopy() *Taint

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

func (*Taint) DeepCopyInto

func (in *Taint) DeepCopyInto(out *Taint)

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

type TaintEffect

type TaintEffect string

TaintEffect is the effect for a Kubernetes taint.

Jump to

Keyboard shortcuts

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