Skip to content

Commit

Permalink
v0.11.1 - add GCPBackendPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
elephantum committed Dec 21, 2023
1 parent 07540fb commit 1190737
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
10 changes: 7 additions & 3 deletions charts/simple-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 0.11.1

* Add GKE-specific `GCPBackendPolicy` resource based on `.Values.timeoutSec`

# 0.11.0

* Restore `Values.probe`
* Restore `.Values.probe`
* Add GKE-specific `HealthCheck` resource based on `.Values.probe.path`

## Backwards incompatibility
Expand All @@ -25,7 +29,7 @@
## Backwards incompatibility

* Default names for all resources equal to release name
* Delete `Values.probe`. `livenessProbe` and `readinessProbe` import from values file
* Delete `.Values.probe`. `livenessProbe` and `readinessProbe` import from values file
* Rename `.service.port` -> `.servicePort`, `.service.type` -> `.serviceType`
* Rename `.servicePorts` -> `.extraPorts`
* Add `.extraPorts[*].servicePort` config
Expand All @@ -45,7 +49,7 @@

# 0.8.0

* Add `.shmSize` to
* Add `.shmSize`

# 0.7.0

Expand Down
2 changes: 1 addition & 1 deletion charts/simple-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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: "0.11.0"
version: "0.11.1"

# 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
Expand Down
15 changes: 15 additions & 0 deletions charts/simple-app/templates/gcpbackendpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.gateway.enabled -}}
apiVersion: networking.gke.io/v1
kind: GCPBackendPolicy
metadata:
name: {{ include "simple-app.fullname" . }}
labels:
{{- include "simple-app.labels" . | nindent 4 }}
spec:
default:
timeoutSec: {{ .Values.timeoutSec}}
targetRef:
group: ""
kind: Service
name: {{ include "simple-app.fullname" . }}
{{- end -}}
3 changes: 3 additions & 0 deletions charts/simple-app/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"port": {
"type": "integer"
},
"timeoutSec": {
"type": "integer"
},
"probe": {
"type": "object",
"properties": {
Expand Down
5 changes: 4 additions & 1 deletion charts/simple-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ imagePullSecrets: []
# Port that container listens on
port: 8000

# Timeout, applies for deployment modes where applicable
timeoutSec: 30

# Path to probe for both liveness and readiness
probe:
path: "/"
Expand Down Expand Up @@ -159,7 +162,7 @@ affinity: {}

# Settings specific to GKE deployment
gke:
# If enabled and gateway.enabled is true, creates BackendConfig and
# If enabled and gateway.enabled is true, creates GCPBackendPolicy and
# HealthCheck for service
enabled: false

Expand Down

0 comments on commit 1190737

Please sign in to comment.