Skip to content

Commit

Permalink
fix: changed configuration to look after service account instead of c…
Browse files Browse the repository at this point in the history
…onfig in k8s envs
  • Loading branch information
joseftaha committed Jul 16, 2024
1 parent 6a010b1 commit ad9a4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opr/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def delete_fn(meta, spec, **kwargs):


def _get_config_map(config_name: str, namespace: str, logger: logging.Logger) -> tuple[V1ConfigMap | None, CoreV1Api]:
client = kubernetes.client.api_client.ApiClient(configuration=kubernetes.config.load_kube_config())
client = kubernetes.client.api_client.ApiClient(configuration=kubernetes.config.load_incluster_config())
api = kubernetes.client.CoreV1Api(api_client=client)
try:
config_map = api.read_namespaced_config_map(name=f"{config_name}-values", namespace=namespace)
Expand Down

0 comments on commit ad9a4e7

Please sign in to comment.