Documentation ¶
Index ¶
- func ApplyNamedCertificateMounts(containerName string, mountPrefix string, ...)
- func AuthenticationConfiguration() *configv1.Authentication
- func BaseDomain(hcp *hyperv1.HostedControlPlane) string
- func BuildConfig() *configv1.Build
- func CloudCredentialsConfiguration() *operatorv1.CloudCredential
- func DNSConfig() *configv1.DNS
- func GetAllImageRegistryMirrors(ctx context.Context, client client.Client, mgmtClusterHasIDMSCapability bool) (map[string][]string, error)
- func GetConfigNamedCertificates(servingCerts []configv1.APIServerNamedServingCert, mountPathPrefix string) []configv1.NamedCertificate
- func ImageConfig() *configv1.Image
- func ImageContentSourcePolicy() *operatorv1alpha1.ImageContentSourcePolicy
- func ImageContentSourcePolicyList() *operatorv1alpha1.ImageContentSourcePolicyList
- func ImageDigestMirrorSet() *configv1.ImageDigestMirrorSet
- func ImageDigestMirrorSetList() *configv1.ImageDigestMirrorSetList
- func InfrastructureConfig() *configv1.Infrastructure
- func IngressConfig() *configv1.Ingress
- func IngressDomain(hcp *hyperv1.HostedControlPlane) string
- func NetworkConfig() *configv1.Network
- func ObservedBuildConfig(ns string) *corev1.ConfigMap
- func ObservedImageConfig(ns string) *corev1.ConfigMap
- func ObservedProjectConfig(ns string) *corev1.ConfigMap
- func ProjectConfig() *configv1.Project
- func ProxyConfig() *configv1.Proxy
- func ReadObservedConfig(ctx context.Context, c client.Client, observedConfig *ObservedConfig, ...) error
- func ReconcileAuthenticationConfiguration(authentication *configv1.Authentication, config *hyperv1.ClusterConfiguration, ...) error
- func ReconcileCloudCredentialsConfiguration(cfg *operatorv1.CloudCredential) error
- func ReconcileDNSConfig(dns *configv1.DNS, hcp *hyperv1.HostedControlPlane)
- func ReconcileImageContentSourcePolicy(icsp *operatorv1alpha1.ImageContentSourcePolicy, ...) error
- func ReconcileImageDigestMirrors(idms *configv1.ImageDigestMirrorSet, hcp *hyperv1.HostedControlPlane) error
- func ReconcileInClusterProxyConfig(cfg *configv1.Proxy, hcfg *hyperv1.ClusterConfiguration)
- func ReconcileInfrastructure(infra *configv1.Infrastructure, hcp *hyperv1.HostedControlPlane)
- func ReconcileIngressConfig(cfg *configv1.Ingress, hcp *hyperv1.HostedControlPlane)
- func ReconcileNetworkConfig(cfg *configv1.Network, hcp *hyperv1.HostedControlPlane) error
- func ReconcileObservedConfig(cm *corev1.ConfigMap, config runtime.Object) error
- func ReconcileProxyConfig(cfg *configv1.Proxy, hcfg *hyperv1.ClusterConfiguration)
- func ReconcileProxyConfigWithStatus(cfg *configv1.Proxy, hcp *hyperv1.HostedControlPlane)
- func ReconcileProxyConfigWithStatusFromHostedCluster(cfg *configv1.Proxy, hc *hyperv1.HostedCluster)
- type InstallConfig
- type ObservedConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticationConfiguration ¶ added in v0.1.11
func AuthenticationConfiguration() *configv1.Authentication
func BaseDomain ¶
func BaseDomain(hcp *hyperv1.HostedControlPlane) string
func BuildConfig ¶
func CloudCredentialsConfiguration ¶ added in v0.1.10
func CloudCredentialsConfiguration() *operatorv1.CloudCredential
func GetAllImageRegistryMirrors ¶ added in v0.1.10
func GetAllImageRegistryMirrors(ctx context.Context, client client.Client, mgmtClusterHasIDMSCapability 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 ImageContentSourcePolicy ¶
func ImageContentSourcePolicy() *operatorv1alpha1.ImageContentSourcePolicy
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 IngressDomain ¶
func IngressDomain(hcp *hyperv1.HostedControlPlane) string
func NetworkConfig ¶
func ObservedBuildConfig ¶
func ObservedImageConfig ¶
func ObservedProjectConfig ¶
func ProjectConfig ¶
func ProxyConfig ¶
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 ReconcileCloudCredentialsConfiguration ¶ added in v0.1.10
func ReconcileCloudCredentialsConfiguration(cfg *operatorv1.CloudCredential) error
func ReconcileDNSConfig ¶
func ReconcileDNSConfig(dns *configv1.DNS, hcp *hyperv1.HostedControlPlane)
func ReconcileImageContentSourcePolicy ¶
func ReconcileImageContentSourcePolicy(icsp *operatorv1alpha1.ImageContentSourcePolicy, hcp *hyperv1.HostedControlPlane) error
ReconcileImageContentSourcePolicy reconciles the ImageContentSources from the HCP spec into an ImageContentSourcePolicy
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 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 ¶
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