globalconfig

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultIPv4ServiceCIDR = "172.31.0.0/16"
	DefaultIPv6ServiceCIDR = "fd02::/112"
	DefaultIPv4ClusterCIDR = "10.132.0.0/14"
	DefaultIPv6ClusterCIDR = "fd01::/48"
)

Variables

This section is empty.

Functions

func ApplyNamedCertificateMounts

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

func AuthenticationConfiguration added in v0.1.11

func AuthenticationConfiguration() *configv1.Authentication

func BaseDomain

func BaseDomain(hcp *hyperv1.HostedControlPlane) string

func BuildConfig

func BuildConfig() *configv1.Build

func DNSConfig

func DNSConfig() *configv1.DNS

func GetAllImageRegistryMirrors added in v0.1.10

func GetAllImageRegistryMirrors(ctx context.Context, client client.Client, mgmtClusterHasIDMSCapability, mgmtClusterHasICSPCapability bool) (map[string][]string, error)

GetAllImageRegistryMirrors returns any image registry mirrors from any ImageDigestMirrorSet or ImageContentSourcePolicy in an OpenShift management cluster (other management cluster types will not have these policies). ImageContentSourcePolicy will be deprecated and removed in 4.17 according to the following Jira ticket and PR description in favor of ImageDigestMirrorSet. We will need to look for both policy types in the cluster.

	https://issues.redhat.com/browse/OCPNODE-1258
    https://github.com/openshift/hypershift/pull/1776

func GetConfigNamedCertificates

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

func ImageConfig

func ImageConfig() *configv1.Image

func ImageContentSourcePolicyList added in v0.1.10

func ImageContentSourcePolicyList() *operatorv1alpha1.ImageContentSourcePolicyList

ImageContentSourcePolicyList returns an initialized ImageContentSourcePolicyList pointer

func ImageDigestMirrorSet added in v0.1.10

func ImageDigestMirrorSet() *configv1.ImageDigestMirrorSet

func ImageDigestMirrorSetList added in v0.1.10

func ImageDigestMirrorSetList() *configv1.ImageDigestMirrorSetList

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 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 ReconcileAuthenticationConfiguration added in v0.1.11

func ReconcileAuthenticationConfiguration(authentication *configv1.Authentication, config *hyperv1.ClusterConfiguration, issuerURL string) error

func ReconcileDNSConfig

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

func ReconcileImageConfig added in v0.1.22

func ReconcileImageConfig(cfg *configv1.Image, hcp *hyperv1.HostedControlPlane)

func ReconcileImageConfigFromHostedCluster added in v0.1.22

func ReconcileImageConfigFromHostedCluster(cfg *configv1.Image, hc *hyperv1.HostedCluster)

func ReconcileImageDigestMirrors added in v0.1.10

func ReconcileImageDigestMirrors(idms *configv1.ImageDigestMirrorSet, hcp *hyperv1.HostedControlPlane) error

ReconcileImageDigestMirrors reconciles the ImageContentSources from the HCP spec into an ImageDigestMirrorSet

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) error

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 {
	Build   *configv1.Build
	Project *configv1.Project
}

Jump to

Keyboard shortcuts

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