-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VerticalPodAutoscaler, resource requests and limits, and priority… (
#6) … class
- Loading branch information
1 parent
6ee6f58
commit e3768f7
Showing
7 changed files
with
99 additions
and
16 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: v2 | ||
name: trufflehog | ||
description: A Helm chart for trufflehog secrets scanning | ||
version: 0.1.0 | ||
description: A Helm chart for TruffleHog Enterprise | ||
version: 0.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- if .Values.priorityClass.create }} | ||
apiVersion: scheduling.k8s.io/v1 | ||
kind: PriorityClass | ||
metadata: | ||
name: "trufflehog-enterprise" | ||
labels: | ||
app.kubernetes.io/name: {{ include "trufflehog.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
value: {{ .Values.priorityClass.value }} | ||
description: "Priority class for Trufflehog Enterprise" | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{- if .Values.vpa.enabled }} | ||
apiVersion: autoscaling.k8s.io/v1 | ||
kind: VerticalPodAutoscaler | ||
metadata: | ||
name: {{ include "trufflehog.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: {{ include "trufflehog.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
spec: | ||
targetRef: | ||
apiVersion: "apps/v1" | ||
kind: "Deployment" | ||
name: {{ include "trufflehog.fullname" . }} | ||
updatePolicy: | ||
updateMode: "Auto" | ||
resourcePolicy: | ||
containerPolicies: | ||
- containerName: trufflehog | ||
minAllowed: | ||
cpu: {{ .Values.vpa.minAllowed.cpu }} | ||
memory: {{ .Values.vpa.minAllowed.memory }} | ||
{{- if .Values.vpa.maxAllowed.enabled }} | ||
maxAllowed: | ||
cpu: {{ .Values.vpa.maxAllowed.cpu }} | ||
memory: {{ .Values.vpa.maxAllowed.memory }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters