Skip to content

Commit 39b6d51

Browse files
committed
correct namespace name fetch
1 parent 9c0da44 commit 39b6d51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/warnet/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def create_kubeconfigs(kubeconfig_dir, token_duration):
7171
# labels instead of namespace naming conventions
7272
warnet_namespaces = get_namespaces_by_prefix(WARGAMES_NAMESPACE_PREFIX)
7373

74-
for namespace in warnet_namespaces:
74+
for v1namespace in warnet_namespaces:
75+
namespace = v1namespace.metadata.name
7576
click.echo(f"Processing namespace: {namespace}")
7677
service_accounts = get_service_accounts_in_namespace(namespace)
7778

0 commit comments

Comments
 (0)