diff --git a/apis/rancher/v1alpha1/cluster_types.go b/apis/rancher/v1alpha1/cluster_types.go index e6186be..4f406c2 100644 --- a/apis/rancher/v1alpha1/cluster_types.go +++ b/apis/rancher/v1alpha1/cluster_types.go @@ -63,6 +63,7 @@ type RKEClusterConfigSpec struct { // ClusterParameters are the configurable fields of a Cluster. type ClusterParameters struct { KubeconfigSecretNamespace string `json:"kubeconfigSecretNamespace,omitempty"` + Region string `json:"region,omitempty"` RKE RKEClusterConfigSpec `json:"rke,omitempty"` NodePools []RKENodePool `json:"nodePools,omitempty"` } diff --git a/examples/cluster/cluster.yaml b/examples/cluster/cluster.yaml index cc5e7f7..40886eb 100644 --- a/examples/cluster/cluster.yaml +++ b/examples/cluster/cluster.yaml @@ -5,6 +5,7 @@ metadata: spec: forProvider: kubeconfigSecretNamespace: default + region: us-east-1 rke: dockerRootDir: /var/lib/docker enableNetworkPolicy: false diff --git a/package/crds/rancher.rancher.crossplane.io_clusters.yaml b/package/crds/rancher.rancher.crossplane.io_clusters.yaml index 9bf401d..5659ac1 100644 --- a/package/crds/rancher.rancher.crossplane.io_clusters.yaml +++ b/package/crds/rancher.rancher.crossplane.io_clusters.yaml @@ -106,6 +106,8 @@ spec: type: boolean type: object type: array + region: + type: string rke: description: RKEClusterConfigSpec defines the desired state of RKEClusterConfig