Skip to content

Commit cf1b509

Browse files
feat(argus): argus replicas param validation (#379)
Co-authored-by: Shubhashri Shirode <[email protected]>
1 parent 7b1c0a3 commit cf1b509

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

charts/argus/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ maintainers:
66
77
name: LogicMonitor
88
name: argus
9-
version: 10.0.0-rt01
9+
version: 10.0.0-rt02
1010
home: https://logicmonitor.github.io/helm-charts-qa
1111
appVersion: v14.0.0-rt01
1212
dependencies:

charts/argus/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
1111
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
1212
spec:
13-
replicas: 1
13+
replicas: {{ .Values.replicas }}
1414
selector:
1515
matchLabels:
1616
{{ include "lmutil.selectorLabels" . | nindent 6 }}

charts/argus/values.schema.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,18 @@
447447
},
448448
"$comment": "tf:optional,yamlencode"
449449
},
450+
"replicas": {
451+
"$id": "#/properties/replicas",
452+
"type": "integer",
453+
"title": "The replicas schema",
454+
"description": "Argus Pod Replicas - defaults to 1, parameter is just for development purpose, do not increase more than one replicas in production",
455+
"default": 1,
456+
"minimum": 0,
457+
"maximum": 1,
458+
"examples": [
459+
1
460+
]
461+
},
450462
"resourceContainerID": {
451463
"$id": "#/properties/resourceContainerID",
452464
"type": "integer",

charts/argus/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ labels: {}
5353
# Annotations to apply on all objects created by Argus
5454
annotations: {}
5555

56+
# Replicas - defaults to 1, param is just for development purpose, do not increase more than one replicas in production
57+
replicas: 1
5658

5759
## OPTIONAL VALUES - Argus application configuration
5860
# A parent group id that will hold all cluster resources under it. This is useful when Argus is installed with non-admin user's token.

0 commit comments

Comments
 (0)