oapi

package
v0.1.52 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenShiftAPIServerPort      = 8443
	OpenShiftOAuthAPIServerPort = 8443
	OpenShiftServicePort        = 443
	OLMPackageServerPort        = 5443
)

Variables

This section is empty.

Functions

func ReconcileAuditConfig

func ReconcileAuditConfig(cm *corev1.ConfigMap, ownerRef config.OwnerRef, auditConfig configv1.Audit) error

func ReconcileConfig

func ReconcileConfig(cm *corev1.ConfigMap, auditWebhookRef *corev1.LocalObjectReference, ownerRef config.OwnerRef, etcdURL, ingressDomain, minTLSVersion string, cipherSuites []string, imageConfig *configv1.ImageSpec, projectConfig *configv1.Project) error

func ReconcileDeployment

func ReconcileDeployment(deployment *appsv1.Deployment,
	auditWebhookRef *corev1.LocalObjectReference,
	ownerRef config.OwnerRef,
	config *corev1.ConfigMap,
	auditConfig *corev1.ConfigMap,
	serviceServingCA *corev1.ConfigMap,
	deploymentConfig config.DeploymentConfig,
	image string,
	konnectivityHTTPSProxyImage string,
	etcdURL string,
	availabilityProberImage string,
	internalOAuthDisable bool,
	platformType hyperv1.PlatformType,
	hcpAdditionalTrustBundle *corev1.LocalObjectReference,
	imageRegistryAdditionalTrustedCAs *corev1.ConfigMap,
	clusterConf *hyperv1.ClusterConfiguration,
	proxyConfig *configv1.ProxySpec,
	noProxy string) error

func ReconcileOAuthAPIServerDeployment

func ReconcileOAuthAPIServerDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, auditConfig *corev1.ConfigMap, p *OAuthDeploymentParams, platformType hyperv1.PlatformType) error

func ReconcileOAuthAPIService

func ReconcileOAuthAPIService(svc *corev1.Service, ownerRef config.OwnerRef) error

func ReconcileOLMPackageServerService

func ReconcileOLMPackageServerService(svc *corev1.Service, ownerRef config.OwnerRef) error

func ReconcileOpenShiftAPIService

func ReconcileOpenShiftAPIService(svc *corev1.Service, ownerRef config.OwnerRef) error

func ReconcileOpenShiftOAuthAPIServerPodDisruptionBudget

func ReconcileOpenShiftOAuthAPIServerPodDisruptionBudget(pdb *policyv1.PodDisruptionBudget, p *OAuthDeploymentParams) error

func ReconcileServiceMonitor

func ReconcileServiceMonitor(sm *prometheusoperatorv1.ServiceMonitor, ownerRef config.OwnerRef, clusterID string, metricsSet metrics.MetricsSet) error

Types

type OAuthDeploymentParams

type OAuthDeploymentParams struct {
	Image                        string
	EtcdURL                      string
	MinTLSVersion                string
	CipherSuites                 []string
	ServiceAccountIssuerURL      string
	DeploymentConfig             config.DeploymentConfig
	AvailabilityProberImage      string
	Availability                 hyperv1.AvailabilityPolicy
	OwnerRef                     config.OwnerRef
	AuditWebhookRef              *corev1.LocalObjectReference
	AccessTokenInactivityTimeout *metav1.Duration
}

type OpenShiftAPIServerParams

type OpenShiftAPIServerParams struct {
	APIServer               *configv1.APIServerSpec
	Proxy                   *configv1.ProxySpec
	IngressSubDomain        string
	EtcdURL                 string
	ServiceAccountIssuerURL string

	OpenShiftAPIServerDeploymentConfig      config.DeploymentConfig
	OpenShiftOAuthAPIServerDeploymentConfig config.DeploymentConfig
	config.OwnerRef
	OpenShiftAPIServerImage string
	OAuthAPIServerImage     string
	ProxyImage              string
	AvailabilityProberImage string
	Availability            hyperv1.AvailabilityPolicy
	Ingress                 *configv1.IngressSpec
	Image                   *configv1.ImageSpec
	Project                 *configv1.Project
	AuditWebhookRef         *corev1.LocalObjectReference
	InternalOAuthDisable    bool
}

func NewOpenShiftAPIServerParams

func NewOpenShiftAPIServerParams(hcp *hyperv1.HostedControlPlane, observedConfig *globalconfig.ObservedConfig, releaseImageProvider imageprovider.ReleaseImageProvider, setDefaultSecurityContext bool) *OpenShiftAPIServerParams

func (*OpenShiftAPIServerParams) AuditPolicyConfig added in v0.1.2

func (p *OpenShiftAPIServerParams) AuditPolicyConfig() configv1.Audit

func (*OpenShiftAPIServerParams) CipherSuites

func (p *OpenShiftAPIServerParams) CipherSuites() []string

func (*OpenShiftAPIServerParams) IngressDomain

func (p *OpenShiftAPIServerParams) IngressDomain() string

func (*OpenShiftAPIServerParams) MinTLSVersion

func (p *OpenShiftAPIServerParams) MinTLSVersion() string

func (*OpenShiftAPIServerParams) OAuthAPIServerDeploymentParams

func (p *OpenShiftAPIServerParams) OAuthAPIServerDeploymentParams(hcp *hyperv1.HostedControlPlane) *OAuthDeploymentParams

type OpenShiftAPIServerServiceParams

type OpenShiftAPIServerServiceParams struct {
	OwnerRef config.OwnerRef `json:"ownerRef"`
}

Jump to

Keyboard shortcuts

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