globalconfig

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyNamedCertificateMounts

func ApplyNamedCertificateMounts(containerName string, mountPrefix string, certs []configv1.APIServerNamedServingCert, spec *corev1.PodSpec)

func BaseDomain

func BaseDomain(hcp *hyperv1.HostedControlPlane) string

func BuildConfig

func BuildConfig() *configv1.Build

func DNSConfig

func DNSConfig() *configv1.DNS

func GetConfigNamedCertificates

func GetConfigNamedCertificates(servingCerts []configv1.APIServerNamedServingCert, mountPathPrefix string) []configv1.NamedCertificate

func ImageConfig

func ImageConfig() *configv1.Image

func InfrastructureConfig

func InfrastructureConfig() *configv1.Infrastructure

func IngressConfig

func IngressConfig() *configv1.Ingress

func IngressDomain

func IngressDomain(hcp *hyperv1.HostedControlPlane) string

func NetworkConfig

func NetworkConfig() *configv1.Network

func ObservedBuildConfig

func ObservedBuildConfig(ns string) *corev1.ConfigMap

func ObservedImageConfig

func ObservedImageConfig(ns string) *corev1.ConfigMap

func ObservedProjectConfig

func ObservedProjectConfig(ns string) *corev1.ConfigMap

func ProjectConfig

func ProjectConfig() *configv1.Project

func ProxyConfig

func ProxyConfig() *configv1.Proxy

func ReadObservedConfig

func ReadObservedConfig(ctx context.Context, c client.Client, observedConfig *ObservedConfig, namespace string) error

ReadObservedConfig reads global configuration resources from configmaps that were created by the hosted-cluster-config-operator from resources inside the guest cluster.

func ReconcileDNSConfig

func ReconcileDNSConfig(dns *configv1.DNS, hcp *hyperv1.HostedControlPlane)

func ReconcileInClusterProxyConfig added in v0.1.5

func ReconcileInClusterProxyConfig(cfg *configv1.Proxy, hcfg *hyperv1.ClusterConfiguration)

ReconcileInClusterProxyConfig will reconcile the proxy configured in the hosted cluster spec when specified otherwise will maintain what the user specifies in the proxy spec by default

func ReconcileInfrastructure

func ReconcileInfrastructure(infra *configv1.Infrastructure, hcp *hyperv1.HostedControlPlane)

func ReconcileIngressConfig

func ReconcileIngressConfig(cfg *configv1.Ingress, hcp *hyperv1.HostedControlPlane)

func ReconcileNetworkConfig

func ReconcileNetworkConfig(cfg *configv1.Network, hcp *hyperv1.HostedControlPlane)

func ReconcileObservedConfig

func ReconcileObservedConfig(cm *corev1.ConfigMap, config runtime.Object) error

func ReconcileProxyConfig

func ReconcileProxyConfig(cfg *configv1.Proxy, hcfg *hyperv1.ClusterConfiguration)

TODO (relyt0925): this is is utilized by the machine config server and feeds into the user data setup to download ignition configuration. It also factors into the machine config served to the machine. These usages need to be further examined before it directly takes what the user configures for the cluster-wide proxy at the SDN level. In current state of the world: the in cluster proxy configuration set by the user is never picked up (only the one set on the hosted cluster instance).

func ReconcileProxyConfigWithStatus

func ReconcileProxyConfigWithStatus(cfg *configv1.Proxy, hcp *hyperv1.HostedControlPlane)

func ReconcileProxyConfigWithStatusFromHostedCluster

func ReconcileProxyConfigWithStatusFromHostedCluster(cfg *configv1.Proxy, hc *hyperv1.HostedCluster)

Types

type InstallConfig

type InstallConfig struct {
	MachineCIDRs []string
	Platform     string
	Region       string
}

Abbreviated version of the installer's InstallConfig type Bare minimum required to support MCS

func NewInstallConfig

func NewInstallConfig(hcp *hyperv1.HostedControlPlane) *InstallConfig

func (*InstallConfig) String

func (c *InstallConfig) String() string

type ObservedConfig

type ObservedConfig struct {
	Image   *configv1.Image
	Build   *configv1.Build
	Project *configv1.Project
}

Jump to

Keyboard shortcuts

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