Skip to content

Commit d523e4e

Browse files
committed
Fix wrong namespace, wrong cluster name, permission issue
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent f0c52b8 commit d523e4e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Tests/kaas/plugin/gardener_helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ def annotate_shoot_confirm_deletion(co_api: CustomObjectsApi, namespace: str, na
5757

5858

5959
def get_shoot_status(co_api: CustomObjectsApi, namespace: str, name: str):
60-
return co_api.get_namespaced_custom_object_status(
60+
# Don't use get_namespace_custom_object_status because somehow we're not permitted to do so!
61+
# The fn get_namespaced_custom_object will do the trick just as well, maybe less efficient?
62+
return co_api.get_namespaced_custom_object(
6163
group=GARDENER_GROUP,
6264
version=GARDENER_VERSION,
6365
namespace=namespace,

playbooks/clusters.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ clusters:
33
noris-1.34:
44
kind: gardener
55
config:
6+
name: 'noris-1-34' # explicit name because dot in name not permissible
67
templates:
78
shoot: shoot.yaml
89
kubeconfig: garden-kubeconfig.yaml
@@ -19,7 +20,7 @@ clusters:
1920
load_balancer_provider: "ovn"
2021
cloud_profile_name: "openstack"
2122
credentials_binding_name: "default-openstack-secret"
22-
garden_namespace: "garden-g5lxqfthcn"
23+
garden_namespace: "garden-nkhv1db5ym"
2324
secrets:
2425
garden_api_server: "{{ clouds_conf.noris_api_server }}"
2526
garden_ca_data: "{{ clouds_conf.noris_ca_data }}"

0 commit comments

Comments
 (0)