oapi

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 27 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.Image, projectConfig *configv1.Project) error

func ReconcileDeployment

func ReconcileDeployment(deployment *appsv1.Deployment, auditWebhookRef *corev1.LocalObjectReference, ownerRef config.OwnerRef, config *corev1.ConfigMap, deploymentConfig config.DeploymentConfig, image string, socks5ProxyImage string, etcdURL string, availabilityProberImage string, apiPort *int32) error

func ReconcileOAuthAPIServerDeployment

func ReconcileOAuthAPIServerDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, p *OAuthDeploymentParams, apiPort *int32) 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
}

type OpenShiftAPIServerParams

type OpenShiftAPIServerParams struct {
	APIServer               *configv1.APIServerSpec `json:"apiServer"`
	IngressSubDomain        string
	EtcdURL                 string `json:"etcdURL"`
	ServiceAccountIssuerURL string `json:"serviceAccountIssuerURL"`

	OpenShiftAPIServerDeploymentConfig      config.DeploymentConfig `json:"openshiftAPIServerDeploymentConfig,inline"`
	OpenShiftOAuthAPIServerDeploymentConfig config.DeploymentConfig `json:"openshiftOAuthAPIServerDeploymentConfig,inline"`
	config.OwnerRef                         `json:",inline"`
	OpenShiftAPIServerImage                 string `json:"openshiftAPIServerImage"`
	OAuthAPIServerImage                     string `json:"oauthAPIServerImage"`
	ProxyImage                              string `json:"haproxyImage"`
	AvailabilityProberImage                 string `json:"availabilityProberImage"`
	Availability                            hyperv1.AvailabilityPolicy
	Ingress                                 *configv1.IngressSpec
	Image                                   *configv1.Image
	Project                                 *configv1.Project
	AuditWebhookRef                         *corev1.LocalObjectReference
}

func NewOpenShiftAPIServerParams

func NewOpenShiftAPIServerParams(hcp *hyperv1.HostedControlPlane, observedConfig *globalconfig.ObservedConfig, images map[string]string, 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