All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.galasa.kubernetes.internal.properties.KubernetesCredentials Maven / Gradle / Ivy

There is a newer version: 0.34.0
Show newest version
/*
 * Licensed Materials - Property of IBM
 * 
 * (c) Copyright IBM Corp. 2020.
 */
package dev.galasa.kubernetes.internal.properties;

import dev.galasa.framework.spi.cps.CpsProperties;
import dev.galasa.kubernetes.KubernetesManagerException;
import dev.galasa.kubernetes.internal.KubernetesClusterImpl;


/**
 * Kubernetes Cluster Credentials CPS Property
 * 
 * @galasa.cps.property
 * 
 * @galasa.name kubernetes.cluster.[XXXX.]credentials
 * 
 * @galasa.description Provides the Credentials ID for the token required to access the Kubernetes cluster
 * 
 * @galasa.required No
 * 
 * @galasa.default K8S
 * 
 * @galasa.valid_values A valid credentials ID. Galasa convention states IDs should be uppercase
 * 
 * @galasa.examples 
 * kubernetes.cluster.K8S.credentials=K8S
* kubernetes.cluster.credentials=K8S
* */ public class KubernetesCredentials extends CpsProperties { public static String get(KubernetesClusterImpl cluster) throws KubernetesManagerException { return getStringWithDefault(KubernetesPropertiesSingleton.cps(), "K8S", "cluster", "credentials", cluster.getId()) ; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy