Documentation ¶
Index ¶
- Constants
- func AppliedClusterVersion(cr *paasv1alpha1.Cluster) *paasv1alpha1.AppliedClusterVersion
- func Certificate(cr *paasv1alpha1.Cluster, issuer, issuerKind string) *certv1.Certificate
- func Cluster(cluster *paasv1alpha1.Cluster) *capiv1betav1.Cluster
- func DNSIP() (string, error)
- func DexOAuthClient(cr *paasv1alpha1.Cluster, sec *corev1.Secret) *idpv1.OAuthClient
- func DexSecret(cr *paasv1alpha1.Cluster, ca string) *corev1.Secret
- func DexSecretName(cluster string) string
- func GetEnv(key, defaultValue string) string
- func IdentitySecretName(cluster string) string
- func Ingress(cr *paasv1alpha1.Cluster) *netv1.Ingress
- func IngressSecretName(cluster string) string
- func Labels(cr *v1alpha1.Cluster) map[string]string
- func VCluster(ctx context.Context, cluster *v1alpha1.Cluster, ...) (*vclusterv1alpha1.VCluster, error)
- type ValuesHA
- type ValuesIDP
- type ValuesIngress
- type ValuesPlugins
- type ValuesTemplate
Constants ¶
View Source
const ( DexKeyID = "client_id" DexKeySecret = "client_secret" DexKeyCA = "ca.crt" )
View Source
const ( EnvChartName = "PAAS_CHART_NAME" EnvChartRepo = "PAAS_CHART_REPO" EnvChartVersion = "PAAS_CHART_VERSION" EnvKubeVersion = "PAAS_KUBE_VERSION" EnvIngressClass = "PAAS_INGRESS_CLASS" EnvIngressIssuer = "PAAS_INGRESS_ISSUER" EnvStorageClass = "PAAS_STORAGE_CLASS" EnvVclusterImage = "RELATED_IMAGE_VCLUSTER_SYNCER" EnvCoreDNSImage = "RELATED_IMAGE_COREDNS" EnvSyncImage = "RELATED_IMAGE_PLUGIN_SYNC" EnvHookImage = "RELATED_IMAGE_PLUGIN_HOOKS" EnvAddonPodInfoImage = "RELATED_IMAGE_ADDON_PODINFO" EnvAddonDashboardKubeImage = "RELATED_IMAGE_ADDON_DASHBOARD_KUBE" EnvAddonDashboardOKDImage = "RELATED_IMAGE_ADDON_DASHBOARD_OKD" EnvAddonMetricsAdapterImage = "RELATED_IMAGE_ADDON_METRICS_ADAPTER" EnvPluginPolicy = "PASS_PLUGIN_PULL_POLICY" EnvIDPURL = "PAAS_IDP_URL" EnvIsOpenShift = "PAAS_IS_OPENSHIFT" )
Variables ¶
This section is empty.
Functions ¶
func AppliedClusterVersion ¶
func AppliedClusterVersion(cr *paasv1alpha1.Cluster) *paasv1alpha1.AppliedClusterVersion
func Certificate ¶
func Certificate(cr *paasv1alpha1.Cluster, issuer, issuerKind string) *certv1.Certificate
func Cluster ¶
func Cluster(cluster *paasv1alpha1.Cluster) *capiv1betav1.Cluster
func DNSIP ¶
DNSIP fetches the IP address of the configured DNS name server. It does this by reading the contents of the /etc/resolv.conf file.
Since the IP will never change in the lifetime of the container it is cached in a global variable: nameserverIP
func DexOAuthClient ¶
func DexOAuthClient(cr *paasv1alpha1.Cluster, sec *corev1.Secret) *idpv1.OAuthClient
func DexSecretName ¶
func IdentitySecretName ¶
func IngressSecretName ¶
Types ¶
type ValuesIngress ¶
type ValuesPlugins ¶
type ValuesTemplate ¶
type ValuesTemplate struct { Name string Ingress ValuesIngress IDP ValuesIDP Storage paasv1alpha1.Storage HA ValuesHA OpenShift bool Image string VclusterImage string CoreDNSImage string Plugins ValuesPlugins CustomCA string EnvVars map[string]string PlatformNamespace string }
Click to show internal directories.
Click to hide internal directories.