Skip to content

Commit 993acc6

Browse files
committed
Apply ingress.annotations to VirtualService when ingress.istio.enabled
1 parent 900bdf8 commit 993acc6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

charts/generic-service/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ app:
112112
| `ingress.cors.allowCredentials` | `true` | Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials |
113113
| `ingress.cors.exposeHeaders` | `[]` | List of HTTP headers that the browsers are allowed to access |
114114
| `ingress.class` | | The ingress controller to use (not applicable if `ingress.istio.enabled`) |
115-
| `ingress.annotations` | `{}` | Annotations for `Ingress` resource (not applicable if `ingress.istio.enabled`) |
115+
| `ingress.annotations` | `{}` | Annotations for `Ingress` or `VirtualService` resource |
116116
| `ingress.headless` | `false` | Creates an additional `Service` with the suffix `-headless` that directly exposes Pod IPs |
117117
| `ingress.headlessExposesAll` | `false` | Exposes all replicas, including unready ones, via the `-headless` `Service` |
118118
| `ingress.nodeLocal` | `false` | Creates an additional `Service` with the suffix `-local` that only routes to pods on the same node |

charts/generic-service/templates/virtual-service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ kind: VirtualService
55
metadata:
66
name: {{ include "generic-service.fullname" . }}
77
labels: {{- include "generic-service.top-level-labels" . | nindent 4 }}
8+
annotations: {{ .Values.ingress.annotations | toYaml | nindent 4 }}
89

910
spec:
1011
{{ include "generic-service.istio" . | indent 2 }}

charts/generic-service/values.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@
592592
"annotations": {
593593
"type": "object",
594594
"additionalProperties": {"type": "string"},
595-
"description": "Annotations for Ingress resource (not applicable if ingress.istio.enabled)"
595+
"description": "Annotations for Ingress or VirtualService resource"
596596
},
597597
"headless": {
598598
"type": "boolean",

0 commit comments

Comments
 (0)