assets

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 35 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// HypershiftOperatorPriortyClass is the priority class for the HO
	HypershiftOperatorPriortyClass = "hypershift-operator"

	// EtcdPriorityClass is for etcd pods.
	EtcdPriorityClass = "hypershift-etcd"

	// APICriticalPriorityClass is for pods that are required for API calls and
	// resource admission to succeed. This includes pods like kube-apiserver,
	// aggregated API servers, and webhooks.
	APICriticalPriorityClass = "hypershift-api-critical"

	// DefaultPriorityClass is for pods in the Hypershift control plane that are
	// not API critical but still need elevated priority.
	DefaultPriorityClass = "hypershift-control-plane"

	// PullSecretName is the name for the Secret containing a user's pull secret
	PullSecretName = "pull-secret"
)
View Source
const (
	HypershiftOperatorName                = "operator"
	ExternalDNSDeploymentName             = "external-dns"
	HyperShiftInstallCLIVersionAnnotation = "hypershift.openshift.io/install-cli-version"
)

Variables

View Source
var CRDS embed.FS

Functions

func CustomResourceDefinitions

func CustomResourceDefinitions(include func(path string, crd *apiextensionsv1.CustomResourceDefinition) bool, transform func(*apiextensionsv1.CustomResourceDefinition)) []crclient.Object

CustomResourceDefinitions returns all existing CRDs as controller-runtime objects

func HyperShiftAPICriticalPriorityClass

func HyperShiftAPICriticalPriorityClass() *schedulingv1.PriorityClass

func HyperShiftControlPlanePriorityClass

func HyperShiftControlPlanePriorityClass() *schedulingv1.PriorityClass

func HyperShiftEtcdPriorityClass

func HyperShiftEtcdPriorityClass() *schedulingv1.PriorityClass

func HypershiftOperatorPriorityClass

func HypershiftOperatorPriorityClass() *schedulingv1.PriorityClass

Types

type ExternalDNSClusterRole

type ExternalDNSClusterRole struct{}

func (ExternalDNSClusterRole) Build

type ExternalDNSClusterRoleBinding

type ExternalDNSClusterRoleBinding struct {
	ClusterRole    *rbacv1.ClusterRole
	ServiceAccount *corev1.ServiceAccount
}

func (ExternalDNSClusterRoleBinding) Build

type ExternalDNSCredsSecret

type ExternalDNSCredsSecret struct {
	Namespace  *corev1.Namespace
	CredsBytes []byte
}

func (ExternalDNSCredsSecret) Build

type ExternalDNSDeployment

type ExternalDNSDeployment struct {
	Namespace         *corev1.Namespace
	Image             string
	ServiceAccount    *corev1.ServiceAccount
	Provider          ExternalDNSProvider
	DomainFilter      string
	CredentialsSecret *corev1.Secret
	TxtOwnerId        string
	Proxy             *configv1.Proxy
	GoogleProject     string
}

func (ExternalDNSDeployment) Build

type ExternalDNSPodMonitor added in v0.1.37

type ExternalDNSPodMonitor struct {
	Namespace *corev1.Namespace
}

func (ExternalDNSPodMonitor) Build added in v0.1.37

type ExternalDNSProvider added in v0.1.40

type ExternalDNSProvider string
const (
	AWSExternalDNSProvider   ExternalDNSProvider = "aws"
	AzureExternalDNSProvider ExternalDNSProvider = "azure"
	GCPExternalDNSProvider   ExternalDNSProvider = "google"
)

type ExternalDNSServiceAccount

type ExternalDNSServiceAccount struct {
	Namespace *corev1.Namespace
}

func (ExternalDNSServiceAccount) Build

type HyperShiftClientClusterRole

type HyperShiftClientClusterRole struct{}

func (HyperShiftClientClusterRole) Build

type HyperShiftClientClusterRoleBinding

type HyperShiftClientClusterRoleBinding struct {
	ClusterRole    *rbacv1.ClusterRole
	ServiceAccount *corev1.ServiceAccount
	GroupName      string
}

func (HyperShiftClientClusterRoleBinding) Build

type HyperShiftClientServiceAccount

type HyperShiftClientServiceAccount struct {
	Namespace *corev1.Namespace
}

func (HyperShiftClientServiceAccount) Build

type HyperShiftExtensionAPIServerAuthenticationReaderRoleBinding added in v0.1.71

type HyperShiftExtensionAPIServerAuthenticationReaderRoleBinding struct{}

HyperShiftExtensionAPIServerAuthenticationReaderRoleBinding creates a RoleBinding in the kube-system namespace that grants service accounts read access to the extension-apiserver-authentication-reader Role.

This RoleBinding provides access to the client CA bundle used to verify client certificates for authentication. HyperShift components that serve metrics endpoints need this information to properly authenticate requests.

The subject is system:serviceaccounts because HyperShift instantiates multiple metrics-serving operators dynamically across many namespaces as hosted clusters are created. This is safe because the Role only grants read access to authentication configuration metadata, not write permissions. OpenShift clusters include this RoleBinding out of the box via cluster-kube-apiserver-operator.

func (HyperShiftExtensionAPIServerAuthenticationReaderRoleBinding) Build added in v0.1.71

type HyperShiftMutatingWebhookConfiguration added in v0.1.10

type HyperShiftMutatingWebhookConfiguration struct {
	Namespace                 *corev1.Namespace
	EnableAuditLogPersistence bool
}

func (HyperShiftMutatingWebhookConfiguration) Build added in v0.1.10

type HyperShiftNamespace

type HyperShiftNamespace struct {
	Name                       string
	EnableOCPClusterMonitoring bool
}

func (HyperShiftNamespace) Build

type HyperShiftOperatorClusterRole

type HyperShiftOperatorClusterRole struct {
	EnableCVOManagementClusterMetricsAccess bool
	ManagedService                          string
	EnableAuditLogPersistence               bool
}

func (HyperShiftOperatorClusterRole) Build

type HyperShiftOperatorClusterRoleBinding

type HyperShiftOperatorClusterRoleBinding struct {
	ClusterRole    *rbacv1.ClusterRole
	ServiceAccount *corev1.ServiceAccount
}

func (HyperShiftOperatorClusterRoleBinding) Build

type HyperShiftOperatorCredentialsSecret

type HyperShiftOperatorCredentialsSecret struct {
	Namespace  *corev1.Namespace
	CredsBytes []byte
	CredsKey   string
}

func (HyperShiftOperatorCredentialsSecret) Build

type HyperShiftOperatorDeployment

type HyperShiftOperatorDeployment struct {
	AdditionalTrustBundle                   *corev1.ConfigMap
	OpenShiftTrustBundle                    *corev1.ConfigMap
	Namespace                               *corev1.Namespace
	OperatorImage                           string
	Images                                  map[string]string
	ServiceAccount                          *corev1.ServiceAccount
	Replicas                                int32
	EnableOCPClusterMonitoring              bool
	EnableCIDebugOutput                     bool
	EnableWebhook                           bool
	EnableValidatingWebhook                 bool
	PrivatePlatform                         string
	AWSPrivateSecret                        *corev1.Secret
	AWSPrivateSecretKey                     string
	AWSPrivateRegion                        string
	OIDCBucketName                          string
	OIDCBucketRegion                        string
	OIDCStorageProviderS3Secret             *corev1.Secret
	OIDCStorageProviderS3SecretKey          string
	MetricsSet                              metrics.MetricsSet
	IncludeVersion                          bool
	UWMTelemetry                            bool
	RHOBSMonitoring                         bool
	MonitoringDashboards                    bool
	CertRotationScale                       time.Duration
	EnableCVOManagementClusterMetricsAccess bool
	EnableDedicatedRequestServingIsolation  bool
	ManagedService                          string
	EnableSizeTagging                       bool
	EnableEtcdRecovery                      bool
	EnableCPOOverrides                      bool
	AdditionalOperatorEnvVars               map[string]string
	AROHCPKeyVaultUsersClientID             string
	TechPreviewNoUpgrade                    bool
	RegistryOverrides                       string
	PlatformsInstalled                      string
	ImagePullPolicy                         string
	EnableAuditLogPersistence               bool
	ScaleFromZeroSecret                     *corev1.Secret
	ScaleFromZeroSecretKey                  string
	ScaleFromZeroProvider                   string
}

func (HyperShiftOperatorDeployment) Build

type HyperShiftOperatorOIDCProviderS3Secret

type HyperShiftOperatorOIDCProviderS3Secret struct {
	Namespace                      *corev1.Namespace
	OIDCStorageProviderS3CredBytes []byte
	CredsKey                       string
}

func (HyperShiftOperatorOIDCProviderS3Secret) Build

type HyperShiftOperatorPrometheusRoleBinding

type HyperShiftOperatorPrometheusRoleBinding struct {
	Namespace                  *corev1.Namespace
	Role                       *rbacv1.Role
	EnableOCPClusterMonitoring bool
}

func (HyperShiftOperatorPrometheusRoleBinding) Build

type HyperShiftOperatorRole

type HyperShiftOperatorRole struct {
	Namespace *corev1.Namespace
}

func (HyperShiftOperatorRole) Build

func (o HyperShiftOperatorRole) Build() *rbacv1.Role

type HyperShiftOperatorRoleBinding

type HyperShiftOperatorRoleBinding struct {
	Role           *rbacv1.Role
	ServiceAccount *corev1.ServiceAccount
}

func (HyperShiftOperatorRoleBinding) Build

type HyperShiftOperatorService

type HyperShiftOperatorService struct {
	Namespace *corev1.Namespace
}

func (HyperShiftOperatorService) Build

type HyperShiftOperatorServiceAccount

type HyperShiftOperatorServiceAccount struct {
	Namespace *corev1.Namespace
}

func (HyperShiftOperatorServiceAccount) Build

type HyperShiftPrometheusRole

type HyperShiftPrometheusRole struct {
	Namespace *corev1.Namespace
}

func (HyperShiftPrometheusRole) Build

type HyperShiftPullSecret added in v0.1.21

type HyperShiftPullSecret struct {
	Namespace       string
	PullSecretBytes []byte
}

func (HyperShiftPullSecret) Build added in v0.1.21

func (o HyperShiftPullSecret) Build() *corev1.Secret

type HyperShiftReaderClusterRole

type HyperShiftReaderClusterRole struct{}

func (HyperShiftReaderClusterRole) Build

type HyperShiftReaderClusterRoleBinding

type HyperShiftReaderClusterRoleBinding struct {
	ClusterRole *rbacv1.ClusterRole
	GroupName   string
}

func (HyperShiftReaderClusterRoleBinding) Build

type HyperShiftServiceMonitor

type HyperShiftServiceMonitor struct {
	Namespace *corev1.Namespace
}

func (HyperShiftServiceMonitor) Build

type HyperShiftValidatingWebhookConfiguration

type HyperShiftValidatingWebhookConfiguration struct {
	Namespace string
}

func (HyperShiftValidatingWebhookConfiguration) Build

type HypershiftAlertingRule added in v0.1.10

type HypershiftAlertingRule struct {
	Namespace *corev1.Namespace
}

func (HypershiftAlertingRule) Build added in v0.1.10

type HypershiftRecordingRule

type HypershiftRecordingRule struct {
	Namespace *corev1.Namespace
}

func (HypershiftRecordingRule) Build

type MonitoringDashboardTemplate added in v0.1.10

type MonitoringDashboardTemplate struct {
	Namespace string
}

func (MonitoringDashboardTemplate) Build added in v0.1.10

type ScaleFromZeroCredentialsSecret added in v0.1.72

type ScaleFromZeroCredentialsSecret struct {
	Namespace  *corev1.Namespace
	CredsBytes []byte
	CredsKey   string
	Provider   string
}

func (ScaleFromZeroCredentialsSecret) Build added in v0.1.72

type TechPreviewFeatureGateConfig added in v0.1.51

type TechPreviewFeatureGateConfig struct {
	Namespace          string
	TechPreviewEnabled string
}

func (TechPreviewFeatureGateConfig) Build added in v0.1.51

Directories

Path Synopsis
hypershift-operator

Jump to

Keyboard shortcuts

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