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
4 changes: 2 additions & 2 deletions Tests/kaas/plugin/cs_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ def get_secret_data(api_instance: CoreV1Api, namespace, secret):

def get_cluster_status(api_instance: CustomObjectsApi, namespace, name):
return api_instance.get_namespaced_custom_object_status(
'cluster.x-k8s.io', 'v1beta1', namespace, 'clusters', name
'cluster.x-k8s.io', 'v1beta2', namespace, 'clusters', name
)


def delete_cluster(api_instance: CustomObjectsApi, namespace, name):
"""mimic `kubectl delete cluster`"""
# beware: do not fiddle with propagation policy here, as this may lead to severe problems
return api_instance.delete_namespaced_custom_object(
'cluster.x-k8s.io', 'v1beta1', namespace, 'clusters', name,
'cluster.x-k8s.io', 'v1beta2', namespace, 'clusters', name,
)
5 changes: 3 additions & 2 deletions playbooks/.config/scs/syself-cluster.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: cluster.x-k8s.io/v1beta1
apiVersion: cluster.x-k8s.io/v1beta2
kind: Cluster
metadata:
name: '{{ name }}'
Expand All @@ -13,7 +13,8 @@ spec:
# the following variables can be determined automatically using autoVars: syself
# for this detection, we list all clusterstackrelease objects and select the latest one that fits the
# requested kubernetesVersion
class: '{{ cs_class_name }}'
classRef:
name: '{{ cs_class_name }}'
version: '{{ cs_version }}'
controlPlane:
replicas: {{ num_control_nodes }}
Expand Down
Loading