Skip to content

Commit

Permalink
Merge pull request #99 from qpoint-io/marc-barry/more-values
Browse files Browse the repository at this point in the history
Move command line args to configurable values.
  • Loading branch information
marc-barry authored Jun 26, 2024
2 parents deee5f8 + be8ace4 commit 611c235
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/qpoint-connect/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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.0.5
version: 0.0.6

# 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
10 changes: 10 additions & 0 deletions charts/qpoint-connect/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ spec:
value: "{{ .Values.connectUsername }}"
- name: CONNECT_PASSWORD
value: "{{ .Values.connectPassword }}"
- name: ACCESS_LOG
value: "{{ .Values.accessLog }}"
- name: LOG_LEVEL
value: "{{ .Values.logLevel }}"
- name: LOG_ENCODING
value: "{{ .Values.logEncoding }}"
- name: ENVOY_LOG_LEVEL
value: "{{ .Values.envoyLogLevel }}"
- name: DNS_LOOKUP_FAMILY
value: "{{ .Values.dnsLookupFamily }}"
ports:
{{- range .Values.service.ports }}
- name: {{ .name }}
Expand Down
17 changes: 16 additions & 1 deletion charts/qpoint-connect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

args: ["connect", "--envoy-log-level=error", "--log-level=info", "--dns-lookup-family=V4_ONLY"]
args: ["connect"]

serviceAccount:
# Specifies whether a service account should be created
Expand Down Expand Up @@ -51,6 +51,21 @@ connectUpstream: "localhost:10443"
connectUsername: "default"
connectPassword: "default"

# To enable access logs change to true
accessLog: false

# One of debug, info, warn, error, dpanic, panic, fatal
logLevel: "info"

# One of console, json
logEncoding: "json"

# One of trace, debug, info, warn, error, critical, off
envoyLogLevel: "error"

# One of AUTO, V4_ONLY, V6_ONLY, V4_PREFERRED, ALL
dnsLookupFamily: "V4_ONLY"

service:
type: ClusterIP
ports:
Expand Down
2 changes: 1 addition & 1 deletion charts/qpoint-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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.0.7
version: 0.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
Expand Down
10 changes: 10 additions & 0 deletions charts/qpoint-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ spec:
value: "{{ .Values.middlewareTCPForwardPorts }}"
- name: TRANSPARENT_TCP_FORWARD_PORTS
value: "{{ .Values.transparentTCPForwardPorts }}"
- name: ACCESS_LOG
value: "{{ .Values.accessLog }}"
- name: LOG_LEVEL
value: "{{ .Values.logLevel }}"
- name: LOG_ENCODING
value: "{{ .Values.logEncoding }}"
- name: ENVOY_LOG_LEVEL
value: "{{ .Values.envoyLogLevel }}"
- name: DNS_LOOKUP_FAMILY
value: "{{ .Values.dnsLookupFamily }}"
ports:
{{- range .Values.service.ports }}
- name: {{ .name }}
Expand Down
17 changes: 16 additions & 1 deletion charts/qpoint-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

args: ["proxy", "--envoy-log-level=error", "--log-level=info", "--dns-lookup-family=V4_ONLY"]
args: ["proxy"]

registrationEndpoint: "https://api.qpoint.io"

Expand Down Expand Up @@ -49,6 +49,21 @@ defaultTCPListenAddress: "0.0.0.0"
middlewareTCPForwardPorts: "10080:80,10443:443"
transparentTCPForwardPorts: "18080:80,18443:443"

# To enable access logs change to true
accessLog: false

# One of debug, info, warn, error, dpanic, panic, fatal
logLevel: "info"

# One of console, json
logEncoding: "json"

# One of trace, debug, info, warn, error, critical, off
envoyLogLevel: "error"

# One of AUTO, V4_ONLY, V6_ONLY, V4_PREFERRED, ALL
dnsLookupFamily: "V4_ONLY"

service:
type: ClusterIP
ports:
Expand Down

0 comments on commit 611c235

Please sign in to comment.