v1beta1

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the v1beta1 API group. +kubebuilder:object:generate=true +groupName=agent.octopus.com

Index

Constants

This section is empty.

Variables

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

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

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

Functions

This section is empty.

Types

type ClusterWorkloadServiceAccount

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

	// metadata is a standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty,omitzero"`

	// spec defines the desired state of ClusterWorkloadServiceAccount
	// +required
	Spec ClusterWorkloadServiceAccountSpec `json:"spec"`

	// status defines the observed state of ClusterWorkloadServiceAccount
	// +optional
	Status ClusterWorkloadServiceAccountStatus `json:"status,omitempty,omitzero"`
}

ClusterWorkloadServiceAccount is the Schema for the clusterworkloadserviceaccounts API

func (*ClusterWorkloadServiceAccount) DeepCopy

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

func (*ClusterWorkloadServiceAccount) DeepCopyInto

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

func (*ClusterWorkloadServiceAccount) DeepCopyObject

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

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

func (*ClusterWorkloadServiceAccount) GetConditions

func (cwsa *ClusterWorkloadServiceAccount) GetConditions() *[]metav1.Condition

type ClusterWorkloadServiceAccountList

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

ClusterWorkloadServiceAccountList contains a list of ClusterWorkloadServiceAccount

func (*ClusterWorkloadServiceAccountList) DeepCopy

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

func (*ClusterWorkloadServiceAccountList) DeepCopyInto

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

func (*ClusterWorkloadServiceAccountList) DeepCopyObject

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

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

type ClusterWorkloadServiceAccountPermissions

type ClusterWorkloadServiceAccountPermissions struct {
	// +optional
	ClusterRoles []v1.RoleRef `json:"clusterRoles,omitempty"`

	// Allows users to specify permissions, rather than roles
	// A cluster role will be created with the specified permissions
	// +optional
	Permissions []v1.PolicyRule `json:"permissions,omitempty"`
}

ClusterWorkloadServiceAccountPermissions defines the permissions for the ClusterWorkloadServiceAccount.

func (*ClusterWorkloadServiceAccountPermissions) DeepCopy

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

func (*ClusterWorkloadServiceAccountPermissions) DeepCopyInto

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

type ClusterWorkloadServiceAccountScope

type ClusterWorkloadServiceAccountScope = WorkloadServiceAccountScope

ClusterWorkloadServiceAccountScope is an alias for WorkloadServiceAccountScope, in case we need to extend it in the future

type ClusterWorkloadServiceAccountSpec

type ClusterWorkloadServiceAccountSpec struct {

	// +required
	Scope ClusterWorkloadServiceAccountScope `json:"scope"`

	// +required
	Permissions ClusterWorkloadServiceAccountPermissions `json:"permissions"`
}

ClusterWorkloadServiceAccountSpec defines the desired state of ClusterWorkloadServiceAccount

func (*ClusterWorkloadServiceAccountSpec) DeepCopy

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

func (*ClusterWorkloadServiceAccountSpec) DeepCopyInto

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

type ClusterWorkloadServiceAccountStatus

type ClusterWorkloadServiceAccountStatus struct {
	// conditions represent the current state of the ClusterWorkloadServiceAccount resource.
	// Each condition has a unique type and reflects the status of a specific aspect of the resource.
	//
	// Standard condition types include:
	// - "Available": the resource is fully functional
	// - "Progressing": the resource is being created or updated
	// - "Degraded": the resource failed to reach or maintain its desired state
	//
	// The status of each condition is one of True, False, or Unknown.
	// +listType=map
	// +listMapKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

ClusterWorkloadServiceAccountStatus defines the observed state of ClusterWorkloadServiceAccount.

func (*ClusterWorkloadServiceAccountStatus) DeepCopy

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

func (*ClusterWorkloadServiceAccountStatus) DeepCopyInto

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

type WorkloadServiceAccount

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

	// metadata is a standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty,omitzero"`

	// spec defines the desired state of WorkloadServiceAccount
	// +required
	Spec WorkloadServiceAccountSpec `json:"spec"`

	// status defines the observed state of WorkloadServiceAccount
	// +optional
	Status WorkloadServiceAccountStatus `json:"status,omitempty,omitzero"`
}

WorkloadServiceAccount is the Schema for the workloadserviceaccounts API

func (*WorkloadServiceAccount) DeepCopy

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

func (*WorkloadServiceAccount) DeepCopyInto

func (in *WorkloadServiceAccount) DeepCopyInto(out *WorkloadServiceAccount)

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

func (*WorkloadServiceAccount) DeepCopyObject

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

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

func (*WorkloadServiceAccount) GetConditions

func (wsa *WorkloadServiceAccount) GetConditions() *[]metav1.Condition

type WorkloadServiceAccountList

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

WorkloadServiceAccountList contains a list of WorkloadServiceAccount

func (*WorkloadServiceAccountList) DeepCopy

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

func (*WorkloadServiceAccountList) DeepCopyInto

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

func (*WorkloadServiceAccountList) DeepCopyObject

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

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

type WorkloadServiceAccountPermissions

type WorkloadServiceAccountPermissions struct {
	// +optional
	ClusterRoles []v1.RoleRef `json:"clusterRoles,omitempty"`
	// +optional
	Roles []v1.RoleRef `json:"roles,omitempty"`

	// Allows users to specify permissions, rather than roles
	// A role will be created with the specified permissions
	// +optional
	Permissions []v1.PolicyRule `json:"permissions,omitempty"`
}

WorkloadServiceAccountPermissions defines the permissions for the WorkloadServiceAccount.

func (*WorkloadServiceAccountPermissions) DeepCopy

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

func (*WorkloadServiceAccountPermissions) DeepCopyInto

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

type WorkloadServiceAccountScope

type WorkloadServiceAccountScope struct {
	// +optional
	// +kubebuilder:validation:items:Pattern="^[\\p{Ll}\\p{N}]+(?:-[\\p{L}\\p{N}]+)*$"
	Projects []string `json:"projects,omitempty"`
	// +optional
	// +kubebuilder:validation:items:Pattern="^[\\p{Ll}\\p{N}]+(?:-[\\p{L}\\p{N}]+)*$"
	Environments []string `json:"environments,omitempty"`
	// +optional
	// +kubebuilder:validation:items:Pattern="^[\\p{Ll}\\p{N}]+(?:-[\\p{L}\\p{N}]+)*$"
	Tenants []string `json:"tenants,omitempty"`
	// +optional
	// +kubebuilder:validation:items:Pattern="^[\\p{Ll}\\p{N}]+(?:-[\\p{L}\\p{N}]+)*$"
	Steps []string `json:"steps,omitempty"`
	// +optional
	// +kubebuilder:validation:items:Pattern="^[\\p{Ll}\\p{N}]+(?:-[\\p{L}\\p{N}]+)*$"
	Spaces []string `json:"spaces,omitempty"`
}

WorkloadServiceAccountScope defines the octopus scope for the WorkloadServiceAccount

func (*WorkloadServiceAccountScope) DeepCopy

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

func (*WorkloadServiceAccountScope) DeepCopyInto

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

type WorkloadServiceAccountSpec

type WorkloadServiceAccountSpec struct {
	// Scope defines the scope of the WorkloadServiceAccount.
	// +required
	Scope WorkloadServiceAccountScope `json:"scope"`
	// Permissions defines the permissions for the WorkloadServiceAccount.
	// +required
	Permissions WorkloadServiceAccountPermissions `json:"permissions"`
}

WorkloadServiceAccountSpec defines the desired state of WorkloadServiceAccount

func (*WorkloadServiceAccountSpec) DeepCopy

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

func (*WorkloadServiceAccountSpec) DeepCopyInto

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

type WorkloadServiceAccountStatus

type WorkloadServiceAccountStatus struct {
	// conditions represent the current state of the ClusterWorkloadServiceAccount resource.
	// Each condition has a unique type and reflects the status of a specific aspect of the resource.
	//
	// Standard condition types include:
	// - "Available": the resource is fully functional
	// - "Progressing": the resource is being created or updated
	// - "Degraded": the resource failed to reach or maintain its desired state
	//
	// The status of each condition is one of True, False, or Unknown.
	// +listType=map
	// +listMapKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

WorkloadServiceAccountStatus defines the observed state of WorkloadServiceAccount.

func (*WorkloadServiceAccountStatus) DeepCopy

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

func (*WorkloadServiceAccountStatus) DeepCopyInto

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