Documentation
¶
Index ¶
- Constants
- Variables
- func GetDeploymentCondition(status appsv1.DeploymentStatus, condType appsv1.DeploymentConditionType) *appsv1.DeploymentCondition
- func InstallHyperShiftOperator(ctx context.Context, out io.Writer, opts Options) error
- func NewCommand() *cobra.Command
- func NewHelmRenderCommand(opts *Options) *cobra.Command
- func NewRenderCommand(opts *Options) *cobra.Command
- func RenderHyperShiftOperator(cmdOut io.Writer, opts *Options) error
- func WaitUntilAvailable(ctx context.Context, opts Options) (*appsv1.Deployment, error)
- func WriteChartYaml(dir string) error
- func WriteValuesFile(dir string) error
- type ObjectPatch
- type Options
- type Outputs
- type TemplateParams
Constants ¶
View Source
const ( // ExternalDNSImage - This is specifically tag 1.1.0-3 from https://catalog.redhat.com/software/containers/edo/external-dns-rhel8/61d4c35023156829b87a434a?container-tabs=overview&tag=1.1.0-3&push_date=1671131187000 // TODO this needs to be updated to a multi-arch image including Arm - https://issues.redhat.com/browse/NE-1298 ExternalDNSImage = "registry.redhat.io/edo/external-dns-rhel8@sha256:638fb6b5fc348f5cf52b9800d3d8e9f5315078fc9b1e57e800cb0a4a50f1b4b9" )
Variables ¶
View Source
var ( RenderFormatYaml = "yaml" RenderFormatJson = "json" )
View Source
var HyperShiftImage = fmt.Sprintf("%s:%s", config.HypershiftImageBase, config.HypershiftImageTag)
View Source
var ValidPlatforms = set.New[string](
"aws",
"azure",
"ibmcloud",
"kubevirt",
"agent",
"openstack",
)
ValidPlatforms should contain all the CAPI provider types we support; see also crds in assests.go https://github.com/openshift/hypershift/blob/3ea313694d386763578646b157a8d4d3d187e98e/cmd/install/assets/assets.go#L26
Functions ¶
func GetDeploymentCondition ¶ added in v0.1.54
func GetDeploymentCondition(status appsv1.DeploymentStatus, condType appsv1.DeploymentConditionType) *appsv1.DeploymentCondition
GetDeploymentCondition returns the condition with the provided type.
func InstallHyperShiftOperator ¶ added in v0.1.54
InstallHyperShiftOperator generates and applies the manifests needed to install the HyperShift Operator starting with the all the HyperShift CRDs.
func NewCommand ¶
func NewHelmRenderCommand ¶ added in v0.1.51
func NewRenderCommand ¶
func RenderHyperShiftOperator ¶ added in v0.1.70
func WaitUntilAvailable ¶ added in v0.1.54
func WriteChartYaml ¶ added in v0.1.51
func WriteValuesFile ¶ added in v0.1.51
Types ¶
type ObjectPatch ¶
func (*ObjectPatch) CanBeAppliedTo ¶
func (p *ObjectPatch) CanBeAppliedTo(obj crclient.Object) bool
type Options ¶
type Options struct {
AdditionalTrustBundle string
Namespace string
HyperShiftImage string
ImageRefsFile string
HyperShiftOperatorReplicas int32
Development bool
EnableDefaultingWebhook bool
EnableValidatingWebhook bool
EnableConversionWebhook bool
Template bool
Format string
OutputFile string
OutputTypes string
ExcludeEtcdManifests bool
PlatformMonitoring metrics.PlatformMonitoring
EnableCIDebugOutput bool
PrivatePlatform string
AWSPrivateCreds string
AWSPrivateCredentialsSecret string
AWSPrivateCredentialsSecretKey string
AWSPrivateRegion string
OIDCStorageProviderS3Region string
OIDCStorageProviderS3BucketName string
OIDCStorageProviderS3Credentials string
OIDCStorageProviderS3CredentialsSecret string
OIDCStorageProviderS3CredentialsSecretKey string
ExternalDNSProvider string
ExternalDNSCredentials string
ExternalDNSCredentialsSecret string
ExternalDNSDomainFilter string
ExternalDNSTxtOwnerId string
ExternalDNSImage string
ExternalDNSGoogleProject string
AdditionalOperatorEnvVars map[string]string
EnableAdminRBACGeneration bool
EnableUWMTelemetryRemoteWrite bool
EnableCVOManagementClusterMetricsAccess bool
MetricsSet metrics.MetricsSet
WaitUntilAvailable bool
WaitUntilEstablished bool
RHOBSMonitoring bool
SLOsAlerts bool
MonitoringDashboards bool
CertRotationScale time.Duration
EnableDedicatedRequestServingIsolation bool
PullSecretFile string
ManagedService string
EnableSizeTagging bool
EnableEtcdRecovery bool
EnableCPOOverrides bool
AroHCPKeyVaultUsersClientID string
TechPreviewNoUpgrade bool
RegistryOverrides string
RenderNamespace bool
PlatformsToInstall []string
ImagePullPolicy string
EnableAuditLogPersistence bool
}
func NewInstallOptionsWithDefaults ¶ added in v0.1.54
func NewInstallOptionsWithDefaults() Options
NewInstallOptionsWithDefaults returns an Options instance with the default values sets.
func (*Options) ApplyDefaults ¶
func (o *Options) ApplyDefaults()
func (*Options) ValidateRender ¶
type TemplateParams ¶ added in v0.1.51
type TemplateParams struct {
HyperShiftImage string
HyperShiftImageTag string
Namespace string
HypershiftOperatorReplicas string
OIDCS3Name string
OIDCS3Region string
OIDCS3CredsSecret string
OIDCS3CredsSecretKey string
AWSPrivateRegion string
AWSPrivateCredsSecret string
AWSPrivateCredsSecretKey string
ExternalDNSCredsSecret string
ExternalDNSDomainFilter string
ExternalDNSTxtOwnerID string
ExternalDNSImage string
ExternalDNSGoogleProject string
RegistryOverrides string
AROHCPKeyVaultUsersClientID string
TemplateNamespace bool
TemplateParamWrapper func(string) string
}
Click to show internal directories.
Click to hide internal directories.