Skip to content

Commit

Permalink
Merge pull request #833 from solarwinds/NH-90469-add-storageClassName…
Browse files Browse the repository at this point in the history
…-configurable

Make storageClassName configurable
  • Loading branch information
gantrior authored Dec 13, 2024
2 parents b97fce6 + 241c583 commit 7bf58b0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/helm/templates/swo-agent-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ spec:
resources:
requests:
storage: 1Gi
{{- if .Values.swoagent.storageClassName }}
storageClassName: {{ .Values.swoagent.storageClassName }}
{{- end }}
{{- end}}
10 changes: 10 additions & 0 deletions deploy/helm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,13 @@
"type": "string"
}
},
"k8sStorageClassName": {
"description": "The name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class",
"type": [
"string",
"null"
]
},
"k8sNodeSelector": {
"description": "NodeSelector definition. More info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector",
"$ref": "#/definitions/k8sLabels"
Expand Down Expand Up @@ -1312,6 +1319,9 @@
},
"resources": {
"$ref": "#/definitions/k8sResourceRequirements"
},
"storageClassName": {
"$ref": "#/definitions/k8sStorageClassName"
}
},
"additionalProperties": false
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ swoagent:
cpu: 100m
nodeSelector: {}
affinity: {}
storageClassName:

aws_fargate:
# Enable support for AWS EKS Fargate environment
Expand Down

0 comments on commit 7bf58b0

Please sign in to comment.