Skip to content

Commit

Permalink
feat: allow disabling of autostopping router
Browse files Browse the repository at this point in the history
  • Loading branch information
rssnyder committed Feb 6, 2025
1 parent ef284a7 commit 82217fc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.router.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -69,4 +70,5 @@ data:
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
"@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
"@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.router.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -70,3 +71,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.router.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -13,4 +14,5 @@ spec:
targetPort: 10000
selector:
{{- include "harness-ccm-autostopping.router.selectorLabels" . | nindent 6 }}
type: ClusterIP
type: ClusterIP
{{- end }}
4 changes: 4 additions & 0 deletions charts/harness-ccm-autostopping/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ controller:
affinity: {}

router:

# if you are only doing scheduled stopping, you can disable the router
enabled: true

image:
repository: envoyproxy/envoy
pullPolicy: IfNotPresent
Expand Down

0 comments on commit 82217fc

Please sign in to comment.