Skip to content

Commit 08de172

Browse files
author
Alan Christie
committed
fix: Fix incorrect API call was secret, now config_map
1 parent 6b3f6b7 commit 08de172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def create(spec: Dict[str, Any], name: str, namespace: str, **_: Any) -> Dict[st
217217
token = ""
218218
config_cm = None
219219
try:
220-
config_cm = core_api.read_namespaced_secret(cm_name, namespace)
220+
config_cm = core_api.read_namespaced_config_map(cm_name, namespace)
221221
except kubernetes.client.exceptions.ApiException as ex:
222222
# We 'expect' 404, anything else is an error
223223
if ex.status != 404:

0 commit comments

Comments
 (0)