Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ spec:
- CSISnapshot
- NodeTuning
- MachineAPI
- Build
- DeploymentConfig
x-kubernetes-list-type: atomic
baselineCapabilitySet:
description: baselineCapabilitySet selects an initial set of optional capabilities to enable, which can be extended via additionalEnabledCapabilities. If unset, the cluster will choose a default, and the default may change over time. The current default is vCurrent.
Expand Down Expand Up @@ -195,6 +197,8 @@ spec:
- CSISnapshot
- NodeTuning
- MachineAPI
- Build
- DeploymentConfig
x-kubernetes-list-type: atomic
knownCapabilities:
description: knownCapabilities lists all the capabilities known to the current cluster.
Expand All @@ -212,6 +216,8 @@ spec:
- CSISnapshot
- NodeTuning
- MachineAPI
- Build
- DeploymentConfig
x-kubernetes-list-type: atomic
conditionalUpdates:
description: conditionalUpdates contains the list of updates that may be recommended for this cluster if it meets specific required conditions. Consumers interested in the set of updates that are actually recommended for this cluster should use availableUpdates. This list may be empty if no updates are recommended, if the update service is unavailable, or if an empty or invalid channel has been specified.
Expand Down
25 changes: 24 additions & 1 deletion config/v1/types_cluster_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const (
)

// ClusterVersionCapability enumerates optional, core cluster components.
// +kubebuilder:validation:Enum=openshift-samples;baremetal;marketplace;Console;Insights;Storage;CSISnapshot;NodeTuning;MachineAPI
// +kubebuilder:validation:Enum=openshift-samples;baremetal;marketplace;Console;Insights;Storage;CSISnapshot;NodeTuning;MachineAPI;Build;DeploymentConfig
type ClusterVersionCapability string

const (
Expand Down Expand Up @@ -313,6 +313,23 @@ const (
// documentation. This is important part of openshift system
// and may cause cluster damage
ClusterVersionCapabilityMachineAPI ClusterVersionCapability = "MachineAPI"

// ClusterVersionCapabilityBuild manages the Build API which is responsible
// for watching the Build API objects and managing their lifecycle.
// The functionality is located under openshift-apiserver and openshift-controller-manager.
//
// The following resources are taken into account:
// - builds
// - buildconfigs
ClusterVersionCapabilityBuild ClusterVersionCapability = "Build"

// ClusterVersionCapabilityDeploymentConfig manages the DeploymentConfig API
// which is responsible for watching the DeploymentConfig API and managing their lifecycle.
// The functionality is located under openshift-apiserver and openshift-controller-manager.
//
// The following resources are taken into account:
// - deploymentconfigs
ClusterVersionCapabilityDeploymentConfig ClusterVersionCapability = "DeploymentConfig"
)

// KnownClusterVersionCapabilities includes all known optional, core cluster components.
Expand All @@ -326,6 +343,8 @@ var KnownClusterVersionCapabilities = []ClusterVersionCapability{
ClusterVersionCapabilityCSISnapshot,
ClusterVersionCapabilityNodeTuning,
ClusterVersionCapabilityMachineAPI,
ClusterVersionCapabilityBuild,
ClusterVersionCapabilityDeploymentConfig,
}

// ClusterVersionCapabilitySet defines sets of cluster version capabilities.
Expand Down Expand Up @@ -404,6 +423,8 @@ var ClusterVersionCapabilitySets = map[ClusterVersionCapabilitySet][]ClusterVers
ClusterVersionCapabilityCSISnapshot,
ClusterVersionCapabilityNodeTuning,
ClusterVersionCapabilityMachineAPI,
ClusterVersionCapabilityBuild,
ClusterVersionCapabilityDeploymentConfig,
},
ClusterVersionCapabilitySetCurrent: {
ClusterVersionCapabilityBaremetal,
Expand All @@ -415,6 +436,8 @@ var ClusterVersionCapabilitySets = map[ClusterVersionCapabilitySet][]ClusterVers
ClusterVersionCapabilityCSISnapshot,
ClusterVersionCapabilityNodeTuning,
ClusterVersionCapabilityMachineAPI,
ClusterVersionCapabilityBuild,
ClusterVersionCapabilityDeploymentConfig,
},
}

Expand Down