Skip to content

Commit

Permalink
add Cluster.Capabilities.Disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezl committed Feb 19, 2025
1 parent 7162175 commit 6f8e3d3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
20 changes: 20 additions & 0 deletions model/clusters_mgmt/v1/cluster_capabilities_spec.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
Copyright (c) 2025 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

struct ClusterCapabilitiesSpec {
// Disabled capabilities
Disabled []OptionalClusterCapability
}
4 changes: 4 additions & 0 deletions model/clusters_mgmt/v1/cluster_type.model
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,8 @@ class Cluster {

// Registry configuration for the cluster
RegistryConfig ClusterRegistryConfig

// Cluster capabilities configuration
Capabilities ClusterCapabilitiesSpec

}
23 changes: 23 additions & 0 deletions model/clusters_mgmt/v1/optional_cluster_capability_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
Copyright (c) 2025 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Optional cluster capabilities that can be disabled.
enum OptionalClusterCapability {

// Cluster image registry capability.
@json(name = "ImageRegistry")
ImageRegistry
}

0 comments on commit 6f8e3d3

Please sign in to comment.