-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement DRClusterConfig reconciler to create required ClusterClaims (…
…#1485) * Add logger to DRClusterConfig reconciler Also, cleanup some scaffolding comments. Signed-off-by: Shyamsundar Ranganathan <[email protected]> * Add initial reconcile for DRClusterConfig - Add finalizer to resource being reconciled - Remove on delete - Update reconciler to rate limit max exponential backoff to 5 minutes Signed-off-by: Shyamsundar Ranganathan <[email protected]> * Add roles for various storage classes and cluster claims Signed-off-by: Shyamsundar Ranganathan <[email protected]> * Add StorageClass listing and dummy functions for claim creation Building the scaffold for the overall functionality. Signed-off-by: Shyamsundar Ranganathan <[email protected]> * Add ClusterClaims for detected StorageClasses Signed-off-by: Shyamsundar Ranganathan <[email protected]> * Implement pruning of ClusterClaims For classes listed, those that do not need a ClusterClaim any longer are deleted. Added a StorageClass watcher as well to the reconcile on changes to StorageClasses. Signed-off-by: Shyamsundar Ranganathan <[email protected]> * Implement CLassClaims for VRClass and VSClass Signed-off-by: Shyamsundar Ranganathan <[email protected]> --------- Signed-off-by: Shyamsundar Ranganathan <[email protected]>
- Loading branch information
1 parent
19b296a
commit 91e5a5b
Showing
8 changed files
with
804 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
hack/test/0000_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: clusterclaims.cluster.open-cluster-management.io | ||
spec: | ||
group: cluster.open-cluster-management.io | ||
names: | ||
kind: ClusterClaim | ||
listKind: ClusterClaimList | ||
plural: clusterclaims | ||
singular: clusterclaim | ||
preserveUnknownFields: false | ||
scope: Cluster | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: |- | ||
ClusterClaim represents cluster information that a managed cluster claims | ||
ClusterClaims with well known names include, | ||
1. id.k8s.io, it contains a unique identifier for the cluster. | ||
2. clusterset.k8s.io, it contains an identifier that relates the cluster | ||
to the ClusterSet in which it belongs. | ||
ClusterClaims created on a managed cluster will be collected and saved into | ||
the status of the corresponding ManagedCluster on hub. | ||
properties: | ||
apiVersion: | ||
description: |- | ||
APIVersion defines the versioned schema of this representation of an object. | ||
Servers should convert recognized schemas to the latest internal value, and | ||
may reject unrecognized values. | ||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | ||
type: string | ||
kind: | ||
description: |- | ||
Kind is a string value representing the REST resource this object represents. | ||
Servers may infer this from the endpoint the client submits requests to. | ||
Cannot be updated. | ||
In CamelCase. | ||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: Spec defines the attributes of the ClusterClaim. | ||
properties: | ||
value: | ||
description: Value is a claim-dependent string | ||
maxLength: 1024 | ||
minLength: 1 | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
Oops, something went wrong.