Skip to content

Commit

Permalink
update image & hpa
Browse files Browse the repository at this point in the history
  • Loading branch information
KongZ committed Jan 3, 2024
1 parent f55b624 commit 764b40e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/piggy-webhooks/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: piggy-webhooks
description: Deploys a piggy-webhooks that inject enviroment variaiables from AWS Secret Manager
type: application
version: 0.5.2
appVersion: "0.5.1"
version: 0.6.0
appVersion: "0.6.0"
home: https://piggysec.com
icon: https://raw.githubusercontent.com/KongZ/piggy/main/docs/images/piggy.png
sources:
Expand Down
10 changes: 7 additions & 3 deletions charts/piggy-webhooks/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "piggy-webhooks.fullname" . }}
Expand All @@ -17,12 +17,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/piggy-webhooks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:
repository: ghcr.io/kongz/piggy-webhooks
pullPolicy: IfNotPresent
## Overrides the image tag whose default is the chart appVersion.
tag: "0.5.1"
tag: "0.6.0"

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -139,6 +139,6 @@ mutate:
image:
repository: ghcr.io/kongz/piggy-env
pullPolicy: IfNotPresent
tag: "0.5.0"
tag: "0.6.0"

debug: false

0 comments on commit 764b40e

Please sign in to comment.