Documentation
¶
Index ¶
Constants ¶
const ( LabelKeyOrganizationName = "organization-name" LabelKeyProjectName = "project-name" LabelKeyProjectID = "project-id" LabelKeyComponentName = "component-name" LabelKeyComponentID = "component-id" LabelKeyDeploymentTrackName = "deployment-track-name" LabelKeyDeploymentTrackID = "deployment-track-id" LabelKeyEnvironmentName = "environment-name" LabelKeyEnvironmentID = "environment-id" LabelKeyDeploymentName = "deployment-name" LabelKeyDeploymentID = "deployment-id" LabelKeyManagedBy = "managed-by" LabelKeyBelongTo = "belong-to" LabelKeyComponentType = "component-type" LabelValueManagedBy = "choreo-deployment-controller" LabelValueBelongTo = "user-workloads" LabelBuildControllerCreated = "choreo-build-controller" )
const ( MaxLabelNameLength = 63 MaxResourceNameLength = maxNameLength MaxCronJobNameLength = 52 MaxJobNameLength = 63 MaxServiceNameLength = 63 MaxNamespaceNameLength = 63 MaxContainerNameLength = 63 MaxVolumeNameLength = 63 )
Variables ¶
This section is empty.
Functions ¶
func GenerateK8sName ¶
GenerateK8sName generates a Kubernetes-compliant name within the length limit, ensuring uniqueness by appending a hash of the full concatenated names. See https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names NOTE: Changes to this function will impact the generated names of all resources that can cause resource recreation and stale resources in the k8s cluster.
func GenerateK8sNameWithLengthLimit ¶
GenerateK8sNameWithLengthLimit generates a Kubernetes-compliant name within the given length limit. This is useful when the name must be within a specific length limit, that is different from the default limit. Example: CronJob names must be within 52 characters.
func GetDPClient ¶ added in v0.2.0
Types ¶
type KubeClientManager ¶ added in v0.2.0
type KubeClientManager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v0.2.0
func NewManager() *KubeClientManager
NewManager creates a manager with initialized client map
func (*KubeClientManager) GetClient ¶ added in v0.2.0
func (m *KubeClientManager) GetClient(key string, creds choreov1.APIServerCredentials) (client.Client, error)
GetClient returns a cached clientset or creates a new one if not found
Directories
¶
| Path | Synopsis |
|---|---|
|
Package types contains resource type definitions for the Kubernetes integration that are derived from the following projects: - Cilium: https://github.com/cilium/cilium/tree/main/pkg/k8s/apis/cilium.io - Argo Workflow: https://github.com/argoproj/argo-workflows/tree/main/pkg/apis/workflow - Secret Store CSI Driver: https://github.com/kubernetes-sigs/secrets-store-csi-driver/tree/main/apis/v1
|
Package types contains resource type definitions for the Kubernetes integration that are derived from the following projects: - Cilium: https://github.com/cilium/cilium/tree/main/pkg/k8s/apis/cilium.io - Argo Workflow: https://github.com/argoproj/argo-workflows/tree/main/pkg/apis/workflow - Secret Store CSI Driver: https://github.com/kubernetes-sigs/secrets-store-csi-driver/tree/main/apis/v1 |
|
argoproj.io/workflow/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
|
Package v1alpha1 is the v1alpha1 version of the API. |