backwardcompat

package
v0.1.89 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ImageStreamImportModeField = "imageStreamImportMode"

Variables

This section is empty.

Functions

func GetBackwardCompatibleCAPIImage added in v0.1.73

func GetBackwardCompatibleCAPIImage(releaseVersion semver.Version) string

GetBackwardCompatibleCAPIImage returns a CAPI image pinned to a version that writes status through the v1beta2 API. Payloads at 4.20 or below ship a CAPI controller that writes via v1beta1; the v1beta1→v1beta2 conversion causes high congestion on big envs and drops the phase field, leaving it permanently empty. The pinned image is from OCP 4.22 which includes CAPI 1.13. It is the cluster-capi-controllers component from the pinned OCP release payload quay.io/openshift-release-dev/ocp-release@sha256:1dbbdfdde4bb3f3ed4bca965e810a2990a3913990fb4a57072764b771f604554. Keep this as the component image rather than the release payload so reconciliation does not need to look up the entire pinned payload.

func GetBackwardCompatibleConfigHash

func GetBackwardCompatibleConfigHash(config *v1beta1.ClusterConfiguration) (string, error)

GetBackwardCompatibleConfigHash returns a hash of ClusterConfiguration which is backward-compatible with CPO versions that doesn't hash the ImageSpec.

func GetBackwardCompatibleConfigString

func GetBackwardCompatibleConfigString(stringData string) string

GetBackwardCompatibleConfigString returns a ClusterConfiguration which is backward-compatible with older CPO versions

func NormalizeV1Alpha1ClusterImagePolicy added in v0.1.76

func NormalizeV1Alpha1ClusterImagePolicy(manifest []byte) []byte

NormalizeV1Alpha1ClusterImagePolicy rewrites the apiVersion of ClusterImagePolicy manifests from config.openshift.io/v1alpha1 to config.openshift.io/v1.

The ClusterImagePolicy type was promoted from v1alpha1 to v1 in openshift/api and the Go type no longer exists in the v1alpha1 package. Without this normalization, existing NodePools that reference v1alpha1 ClusterImagePolicy configs would fail to decode after a HyperShift Operator upgrade, breaking reconciliation for those clusters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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