Skip to content

Commit

Permalink
Fixing a small number of bugs (#50)
Browse files Browse the repository at this point in the history
* bug fixes

* bug fixes
  • Loading branch information
mershad-manesh authored Nov 28, 2023
1 parent 833ee09 commit c8d6794
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion horizon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.1.6
version: 1.1.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 2 additions & 1 deletion horizon/templates/docker.secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
{{- $namespace := include "namespace" . }}
{{- range $k, $r := .Values.imagePullSecrets }}
# TODO: find a better way to format this JSON that won't be sensitive to special characters
{{- $json := printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" $r.dockerServer $r.dockerUsername $r.dockerPassword $r.dockerEmail (printf "%s:%s" $r.dockerUsername $r.dockerPassword | b64enc) }}
Expand All @@ -8,7 +9,7 @@ kind: Secret
type: kubernetes.io/dockerconfigjson
metadata:
name: {{ $r.name }}
namespace: {{ include "grafana.namespace" . }}
namespace: {{ $namespace }}
data:
.dockerconfigjson: {{ $json | b64enc }}
{{- end }}
2 changes: 1 addition & 1 deletion horizon/templates/opennms-core.clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (eq (include "onOpenShift" .) "true") (.Values.dependencies.clusterRoleBinding) }}
{{- if and (eq (include "onOpenShift" .) "true") (.Values.dependencies.clusterRole) }}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
2 changes: 1 addition & 1 deletion horizon/templates/opennms-core.clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (eq (include "onOpenShift" .) "true") (.Values.dependencies.clusterRole) }}
{{- if and (eq (include "onOpenShift" .) "true") (.Values.dependencies.clusterRoleBinding) }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down

0 comments on commit c8d6794

Please sign in to comment.