cluster

package
v0.0.0-...-5897a89 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 Certificate

func Certificate(cr *paasv1alpha1.Cluster, issuer, issuerKind string) *certv1.Certificate

func Cluster

func Cluster(cluster *paasv1alpha1.Cluster) *capiv1betav1.Cluster

func DNSIP

func DNSIP() (string, error)

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 DexSecret

func DexSecret(cr *paasv1alpha1.Cluster, ca string) *corev1.Secret

func DexSecretName

func DexSecretName(cluster string) string

func GetEnv

func GetEnv(key, defaultValue string) string

func IdentitySecretName

func IdentitySecretName(cluster string) string

func Ingress

func Ingress(cr *paasv1alpha1.Cluster) *netv1.Ingress

func IngressSecretName

func IngressSecretName(cluster string) string

func Labels

func Labels(cr *v1alpha1.Cluster) map[string]string

func VCluster

func VCluster(ctx context.Context, cluster *v1alpha1.Cluster, version *v1alpha1.ClusterVersion, dexCustomCA bool, customCA, haConnectionString string) (*vclusterv1alpha1.VCluster, error)

Types

type ValuesHA

type ValuesHA struct {
	Enabled      bool
	Connection   string
	ReplicaCount int
}

type ValuesIDP

type ValuesIDP struct {
	URL        string
	SecretName string
	CustomCA   bool
}

type ValuesIngress

type ValuesIngress struct {
	Host          string
	TLSSecretName string
	ClassName     string
	Issuer        string
}

type ValuesPlugins

type ValuesPlugins struct {
	SyncImage  string
	HookImage  string
	PullPolicy string
}

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
}

Jump to

Keyboard shortcuts

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