Skip to content

Commit

Permalink
chore(helm): extract hardcoded values (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-github authored Jun 16, 2024
1 parent b733cb1 commit 15b3801
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions charts/xelon-ccm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: xelon-cloud-controller-manager
namespace: kube-system
namespace: {{ .Release.Namespace }}
spec:
replicas: 1
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: 2
selector:
matchLabels:
Expand Down Expand Up @@ -38,7 +38,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- "--leader-elect=false"
- "--v=2"
- "--v={{ .Values.logLevel }}"
env:
- name: XELON_BASE_URL
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion charts/xelon-ccm/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: xelon-cloud-controller-manager
namespace: kube-system
namespace: {{ .Release.Namespace }}
2 changes: 1 addition & 1 deletion charts/xelon-ccm/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: xelon-api-credentials
namespace: kube-system
namespace: {{ .Release.Namespace }}
type: Opaque
stringData:
baseUrl: {{ .Values.xelonSecret.baseUrl | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/xelon-ccm/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: xelon-cloud-controller-manager
namespace: kube-system
namespace: {{ .Release.Namespace }}
11 changes: 6 additions & 5 deletions charts/xelon-ccm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
nameOverride: ""
fullnameOverride: ""

image:
repository: xelonag/xelon-cloud-controller-manager
tag: "dev"
tag: "latest"
pullPolicy: Always

replicaCount: 1
logLevel: 2

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
replicaCount: 1

xelonSecret:
create: false
Expand Down

0 comments on commit 15b3801

Please sign in to comment.