Skip to content

Commit

Permalink
feat(argus): argus replicas param validation (#379)
Browse files Browse the repository at this point in the history
Co-authored-by: Shubhashri Shirode <shubhashri.shirode@logicmonitor.com>
  • Loading branch information
shubhashri12 and lmshubhashri committed May 17, 2024
1 parent 7b1c0a3 commit cf1b509
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/argus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ maintainers:
- email: argus@logicmonitor.com
name: LogicMonitor
name: argus
version: 10.0.0-rt01
version: 10.0.0-rt02
home: https://logicmonitor.github.io/helm-charts-qa
appVersion: v14.0.0-rt01
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion charts/argus/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
spec:
replicas: 1
replicas: {{ .Values.replicas }}
selector:
matchLabels:
{{ include "lmutil.selectorLabels" . | nindent 6 }}
Expand Down
12 changes: 12 additions & 0 deletions charts/argus/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,18 @@
},
"$comment": "tf:optional,yamlencode"
},
"replicas": {
"$id": "#/properties/replicas",
"type": "integer",
"title": "The replicas schema",
"description": "Argus Pod Replicas - defaults to 1, parameter is just for development purpose, do not increase more than one replicas in production",
"default": 1,
"minimum": 0,
"maximum": 1,
"examples": [
1
]
},
"resourceContainerID": {
"$id": "#/properties/resourceContainerID",
"type": "integer",
Expand Down
2 changes: 2 additions & 0 deletions charts/argus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ labels: {}
# Annotations to apply on all objects created by Argus
annotations: {}

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

## OPTIONAL VALUES - Argus application configuration
# 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.
Expand Down

0 comments on commit cf1b509

Please sign in to comment.