Documentation
¶
Index ¶
- Constants
- func GetApplicationName(clusterName, dpuServiceName string) string
- func NewAppProject(namespace, name string, clusters []types.NamespacedName, ...) *argov1.AppProject
- func NewApplication(namespace, projectName string, dpuService *dpuservicev1.DPUService, ...) *argov1.Application
- func NewArgoCDClusterSecret(kubeconfig *api.Config, argoCDNamespace string, ...) (*corev1.Secret, error)
Constants ¶
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 ¶
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.