Skip to content

Commit

Permalink
Change yq json inserting to make it the same for linux and macos (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurlov authored Dec 21, 2023
1 parent 2005944 commit 3922b07
Show file tree
Hide file tree
Showing 18 changed files with 24,931 additions and 24,930 deletions.
3,054 changes: 1,527 additions & 1,527 deletions resources/grafana/mixins/kubernetes/apiserver.yaml

Large diffs are not rendered by default.

3,058 changes: 1,529 additions & 1,529 deletions resources/grafana/mixins/kubernetes/cluster-total.yaml

Large diffs are not rendered by default.

2,018 changes: 1,009 additions & 1,009 deletions resources/grafana/mixins/kubernetes/controller-manager.yaml

Large diffs are not rendered by default.

5,314 changes: 2,657 additions & 2,657 deletions resources/grafana/mixins/kubernetes/k8s-resources-cluster.yaml

Large diffs are not rendered by default.

4,810 changes: 2,405 additions & 2,405 deletions resources/grafana/mixins/kubernetes/k8s-resources-namespace.yaml

Large diffs are not rendered by default.

1,718 changes: 859 additions & 859 deletions resources/grafana/mixins/kubernetes/k8s-resources-node.yaml

Large diffs are not rendered by default.

4,238 changes: 2,119 additions & 2,119 deletions resources/grafana/mixins/kubernetes/k8s-resources-pod.yaml

Large diffs are not rendered by default.

3,420 changes: 1,710 additions & 1,710 deletions resources/grafana/mixins/kubernetes/k8s-resources-workload.yaml

Large diffs are not rendered by default.

3,716 changes: 1,858 additions & 1,858 deletions resources/grafana/mixins/kubernetes/k8s-resources-workloads-namespace.yaml

Large diffs are not rendered by default.

3,900 changes: 1,950 additions & 1,950 deletions resources/grafana/mixins/kubernetes/kubelet.yaml

Large diffs are not rendered by default.

2,438 changes: 1,219 additions & 1,219 deletions resources/grafana/mixins/kubernetes/namespace-by-pod.yaml

Large diffs are not rendered by default.

2,806 changes: 1,403 additions & 1,403 deletions resources/grafana/mixins/kubernetes/namespace-by-workload.yaml

Large diffs are not rendered by default.

984 changes: 492 additions & 492 deletions resources/grafana/mixins/kubernetes/persistentvolumesusage.yaml

Large diffs are not rendered by default.

2,036 changes: 1,018 additions & 1,018 deletions resources/grafana/mixins/kubernetes/pod-total.yaml

Large diffs are not rendered by default.

2,152 changes: 1,076 additions & 1,076 deletions resources/grafana/mixins/kubernetes/proxy.yaml

Large diffs are not rendered by default.

1,898 changes: 949 additions & 949 deletions resources/grafana/mixins/kubernetes/scheduler.yaml

Large diffs are not rendered by default.

2,298 changes: 1,149 additions & 1,149 deletions resources/grafana/mixins/kubernetes/workload-total.yaml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion resources/mixins/kubernetes/scripts/generate-dashboards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" &>/dev/null && pwd 2

for file in "${SCRIPT_DIR}"/../templates/dashboards/*; do
name=$(basename "$file" .yaml)
yq ".spec.json = ($(cat generated/dashboards/"$name".json) | to_json)" templates/dashboards/"$name".yaml > ../../grafana/mixins/kubernetes/"$name".yaml
export json_file=generated/dashboards/"$name".json
yq '.spec.json = loadstr(strenv(json_file))' templates/dashboards/"$name".yaml > ../../grafana/mixins/kubernetes/"$name".yaml
done

0 comments on commit 3922b07

Please sign in to comment.