Skip to content

Commit

Permalink
feat: enable matching virtualRouter in all namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
James Legg committed Feb 3, 2022
1 parent c5c223e commit fa58120
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/appmesh-gateway/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: 1.0.0
version: 1.0.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
4 changes: 4 additions & 0 deletions charts/appmesh-gateway/templates/virtual-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ metadata:
name: {{ .Values.appMesh.gateway.name }}
spec:
awsName: {{ .Values.appMesh.gateway.name }}
{{- if .Values.appMesh.gateway.matchAllNamespaces }}
namespaceSelector: {}
{{- else }}
namespaceSelector:
matchLabels:
gateway: {{ .Values.appMesh.gateway.name }}
{{- end }}
podSelector:
matchLabels:
app: {{ .Values.appMesh.gateway.name }}
Expand Down
3 changes: 3 additions & 0 deletions charts/appmesh-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ backend:

appMesh:
gateway:
# To have the VirtualGateway match VirtualRoutes in all namespaces set matchAllNamespaces: true
# https://aws.github.io/aws-app-mesh-controller-for-k8s/reference/vgw/#namespaceselector
matchAllNamespaces: false
create: true
name: # The name of the appmesh gateway
port: 8088 # The port of the appmesh gateway
Expand Down

0 comments on commit fa58120

Please sign in to comment.