v1alpha1

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cnad v1alpha1 API group +kubebuilder:object:generate=true +groupName=cnad.gofound.nl

Index

Constants

View Source
const (
	ReasonCRNotAvailable                     = "OperatorResourceNotAvailable"
	ReasonNetworkPolicyNotAvailable          = "OperandNetworkPolicyNotAvailable"
	ReasonOperandNetworkPolicyFailed         = "OperandNetworkPolicyFailed"
	ReasonConfigMapNotAvailable              = "ConfigMapNotAvailable"
	ReasonOperandConfigMapFailed             = "OperandConfigMapFailed"
	ReasonDeploymentNotAvailable             = "DeploymentNotAvailable"
	ReasonOperandDeploymentFailed            = "OperandDeploymentFailed"
	ReasonSecretNotAvailable                 = "SecretNotAvailable"
	ReasonOperandSecretFailed                = "OperandSecretFailed"
	ReasonScaledObjectNotAvailable           = "ScaledObjectNotAvailable"
	ReasonOperandScaledObjectFailed          = "OperandScaledObjectFailed"
	ReasonTriggerAuthenticationNotAvailable  = "TriggerAuthenticationNotAvailable"
	ReasonOperandTriggerAuthenticationFailed = "OperandTriggerAuthenticationFailed"
	ReasonSucceeded                          = "OperatorSucceeded"
)

Variables

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

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

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

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	URL       string `json:"url"`
	PoolName  string `json:"poolName"`
	AgentName string `json:"agentName,omitempty"`
	WorkDir   string `json:"workDir,omitempty"`
	// Allow specifying MTU value for networks used by container jobs
	// useful for docker-in-docker scenarios in k8s cluster
	MTUValue string `json:"mtuValue,omitempty"`
}

control the pool and agent work directory

func (*AgentConfig) DeepCopy

func (in *AgentConfig) DeepCopy() *AgentConfig

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

func (*AgentConfig) DeepCopyInto

func (in *AgentConfig) DeepCopyInto(out *AgentConfig)

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

type CDTarget

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

	Spec   CDTargetSpec   `json:"spec,omitempty"`
	Status CDTargetStatus `json:"status,omitempty"`
}

CDTarget is the Schema for the cdtargets API

func (*CDTarget) DeepCopy

func (in *CDTarget) DeepCopy() *CDTarget

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

func (*CDTarget) DeepCopyInto

func (in *CDTarget) DeepCopyInto(out *CDTarget)

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

func (*CDTarget) DeepCopyObject

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

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

type CDTargetList

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

CDTargetList contains a list of CDTarget

func (*CDTargetList) DeepCopy

func (in *CDTargetList) DeepCopy() *CDTargetList

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

func (*CDTargetList) DeepCopyInto

func (in *CDTargetList) DeepCopyInto(out *CDTargetList)

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

func (*CDTargetList) DeepCopyObject

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

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

type CDTargetSpec

type CDTargetSpec struct {
	// IP is a slice of string that contains all the CDTarget IPs
	IP []string `json:"ip,omitempty"`
	// specify the pod selector key value pair
	AdditionalSelector map[string]string `json:"additionalSelector"`
	// pipeline agent image
	AgentImage string `json:"agentImage,omitempty"`
	// +optional
	AgentResources corev1.ResourceRequirements `json:"agentResources,omitempty"`
	// image pull secrets
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
	// +optional
	MinReplicaCount *int32 `json:"minReplicaCount,omitempty"`
	// +optional
	MaxReplicaCount *int32 `json:"maxReplicaCount,omitempty"`
	// Inject additional environment variables to the deployment
	Env []corev1.EnvVar `json:"env,omitempty"`
	// reference to secret that contains the the Proxy settings
	ProxyRef string `json:"proxyRef,omitempty"`
	// reference to secret that contains the PAT
	TokenRef string `json:"tokenRef"`
	// reference to secret that contains the CA certificates
	CACertRef string `json:"caCertRef,omitempty"`
	// AzureDevPortal is configuring the Azure DevOps pool settings of the Agent
	// by using additional environment variables.
	Config AgentConfig `json:"config,omitempty"`
	// set to add or override the default metadata for the
	// scaled object trigger metadata
	TriggerMeta map[string]string `json:"triggerMeta,omitempty"`
	// set to override the default DNS config of the agent
	DNSConfig corev1.PodDNSConfig `json:"dnsConfig,omitempty"`
	DNSPolicy corev1.DNSPolicy    `json:"dnsPolicy,omitempty"`
}

CDTargetSpec defines the desired state of CDTarget

func (*CDTargetSpec) DeepCopy

func (in *CDTargetSpec) DeepCopy() *CDTargetSpec

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

func (*CDTargetSpec) DeepCopyInto

func (in *CDTargetSpec) DeepCopyInto(out *CDTargetSpec)

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

type CDTargetStatus

type CDTargetStatus struct {
	// Conditions lists the most recent status condition updates
	Conditions []metav1.Condition `json:"conditions"`
}

CDTargetStatus defines the observed state of CDTarget

func (*CDTargetStatus) DeepCopy

func (in *CDTargetStatus) DeepCopy() *CDTargetStatus

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

func (*CDTargetStatus) DeepCopyInto

func (in *CDTargetStatus) DeepCopyInto(out *CDTargetStatus)

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

Jump to

Keyboard shortcuts

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