capabilities

package
v0.1.64 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateEnabledCapabilities added in v0.1.57

func CalculateEnabledCapabilities(capabilities *hyperv1.Capabilities) []configv1.ClusterVersionCapability

CalculateEnabledCapabilities returns the net enabled capabilities, by using the default set of capabilities (minus baremetal capability) and the explicitly enabled and disabled capabilities, in alphabetical order.

func HasDisabledCapabilities added in v0.1.60

func HasDisabledCapabilities(capabilities *hyperv1.Capabilities) bool

HasDisabledCapabilities returns true if any capabilities are disabled; otherwise, it returns false.

func IsImageRegistryCapabilityEnabled added in v0.1.57

func IsImageRegistryCapabilityEnabled(capabilities *hyperv1.Capabilities) bool

IsImageRegistryCapabilityEnabled returns true if the Image Registry capability is enabled, or false if disabled.

The Image Registry capability is enabled by default.

Types

type CapabilityType

type CapabilityType int
const (
	// CapabilityRoute indicates if the management cluster supports routes
	CapabilityRoute CapabilityType = iota

	// CapabilitySecurityContextConstraint indicates if the management cluster
	// supports security context constraints
	CapabilitySecurityContextConstraint

	// CapabilityImage indicates if the cluster supports the
	// image.config.openshift.io api
	CapabilityImage

	// CapabilityInfrastructure indicates if the cluster supports the
	// infrastructures.config.openshift.io api
	CapabilityInfrastructure

	// CapabilityIngress indicates if the cluster supports the
	// ingresses.config.openshift.io api
	CapabilityIngress

	// CapabilityProxy indicates if the cluster supports the
	// proxies.config.openshift.io api
	CapabilityProxy

	// CapabilityDNS indicates if the cluster supports the
	// dnses.config.openshift.io api
	CapabilityDNS

	// CapabilityNetworks indicates if the cluster supports the
	// networks.config.openshift.io api
	CapabilityNetworks

	// CapabilityICSP indicates if the cluster supports ImageContentSourcePolicy CRDs
	CapabilityICSP

	// CapabilityIDMS indicates if the cluster supports ImageDigestMirrorSet CRDs
	CapabilityIDMS

	// CapabilityImageStream indicates if the cluster supports ImageStream
	// image.openshift.io
	CapabilityImageStream
)

type CapabiltyChecker

type CapabiltyChecker interface {
	Has(capabilities ...CapabilityType) bool
}

type ManagementClusterCapabilities

type ManagementClusterCapabilities struct {
	// contains filtered or unexported fields
}

ManagementClusterCapabilities holds all information about optional capabilities of the management cluster.

func (*ManagementClusterCapabilities) Has

func (m *ManagementClusterCapabilities) Has(capabilities ...CapabilityType) bool

type MockCapabilityChecker added in v0.1.26

type MockCapabilityChecker struct {
	MockHas func(capabilities ...CapabilityType) bool
}

func (*MockCapabilityChecker) Has added in v0.1.26

func (m *MockCapabilityChecker) Has(capabilities ...CapabilityType) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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