Skip to content

Commit

Permalink
Merge pull request #242 from dttung2905/kac-hard-limit-resource-quota
Browse files Browse the repository at this point in the history
Parameterise the hard limit on pods in ResourceQuota object
  • Loading branch information
redhatrises authored May 3, 2024
2 parents c2445d0 + 0757909 commit defbf24
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
4 changes: 2 additions & 2 deletions helm-charts/falcon-kac/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ 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.0.7
version: 1.0.8

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 1.0.7
appVersion: 1.0.8

keywords:
- CrowdStrike
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/falcon-kac/templates/resourcequota.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "falcon-kac.labels" . | nindent 4 }}
spec:
hard:
pods: 2
pods: {{ .Values.resourceQuota.pods }}
scopeSelector:
matchExpressions:
- operator: In
Expand Down
26 changes: 26 additions & 0 deletions helm-charts/falcon-kac/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,32 @@
]
}
}
},
"resourceQuota": {
"type": "object",
"properties": {
"pods": {
"oneOf": [
{
"type": [
"string",
"null"
],
"default": "2",
"pattern": "^[0-9]+$"
},
{
"type": [
"integer",
"null"
],
"default": "2",
"pattern": "^[0-9]+$",
"minimum": 1
}
]
}
}
}
}
}
4 changes: 4 additions & 0 deletions helm-charts/falcon-kac/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@ webhook:
failurePolicy: Ignore
# Comma sparated list of namespaces in which we need to disable validation e.g test1,test2
disableNamespaces:

# Number of pods for resourceQuota object
resourceQuota:
pods: 2

0 comments on commit defbf24

Please sign in to comment.