Skip to content

Commit

Permalink
Fix helm uninstall
Browse files Browse the repository at this point in the history
Fixes: #32

Signed-off-by: Matej Feder <matej.feder@dnation.cloud>
  • Loading branch information
matofeder committed Feb 2, 2024
1 parent bf6f140 commit 2c4bce3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
apiVersion: v2
name: dnation-kubernetes-jsonnet-translator
type: application
version: 1.0.2
appVersion: 1.0.2
version: 1.0.3
appVersion: 1.0.3
description: dNation Translator is a simple container for translating jsonnet content stored in k8s configmaps to **grafana dashboards** or **prometheus rules**.
keywords:
- jsonnet
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN pip3 install /app

FROM python:3.8-slim

LABEL Version="1.0.2"
LABEL Version="1.0.3"
LABEL Vendor="dNation"
LABEL Description="Container generates json resources from jsonnet resources (grafana dashboards, prometheus rules)"

Expand Down
5 changes: 5 additions & 0 deletions translator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ def delete_generated_resources(args_):
Returns:
None
"""
try:
config.load_kube_config()
except config.config_exception.ConfigException:
config.load_incluster_config()

coa = client.CustomObjectsApi()
v1 = client.CoreV1Api()

Expand Down

0 comments on commit 2c4bce3

Please sign in to comment.