argocd

package
v0.1.0-latest-stable Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgoApplicationFinalizer = "resources-finalizer.argocd.argoproj.io"
	AppProjectNameDPU        = "doca-platform-project-dpu"
	AppProjectNameHost       = "doca-platform-project-host"
	ArgoCDSecretLabelKey     = "argocd.argoproj.io/secret-type"
	ArgoCDSecretLabelValue   = "cluster"
)

Variables

This section is empty.

Functions

func GetApplicationName

func GetApplicationName(clusterName, dpuServiceName string) string

GetApplicationName returns the name of an ArgoCD Application for a given cluster and DPUService. ArgoCD uses this name as the Helm release name when the DPUService does not set one explicitly, and charts commonly derive Service names from the release name. Service names must be valid DNS-1035 labels (max 63 characters, starting with an alphabetic character), so the name is bounded to 63 characters using a deterministic digest suffix when the plain concatenation would overflow. The starting character is guaranteed by the DNS-1035 validation on the DPUCluster name.

func NewAppProject

func NewAppProject(namespace, name string, clusters []types.NamespacedName, sourceNamespace string) *argov1.AppProject

func NewApplication

func NewApplication(namespace, projectName string, dpuService *dpuservicev1.DPUService, values *runtime.RawExtension, clusterName, clusterNamespace string) *argov1.Application

func NewArgoCDClusterSecret

func NewArgoCDClusterSecret(kubeconfig *api.Config, argoCDNamespace string, dpuClusterConfig *dpucluster.Config) (*corev1.Secret, error)

NewArgoCDClusterSecret generates an ArgoCD cluster secret from the given kubeconfig.

Types

This section is empty.

Jump to

Keyboard shortcuts

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