Skip to content

Commit c026891

Browse files
committed
fix: correct YAML indentation in router-deployment-clusterip.yaml
- Fix array formatting for args (proper YAML array syntax) - Fix indentation for ports section (consistent 2-space indentation) - Fix indentation for env section (consistent 2-space indentation) - Fix indentation for volumeMounts section (consistent 2-space indentation) - Fix indentation for volumes section (consistent 2-space indentation) - Fix indentation for service ports section (consistent 2-space indentation) - Ensures YAML linting passes with proper formatting
1 parent 0397c49 commit c026891

File tree

1 file changed

+33
-29
lines changed

1 file changed

+33
-29
lines changed

k8s/router-deployment-clusterip.yaml

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,29 @@ spec:
2020
- name: apollo-router
2121
image: ghcr.io/apollographql/router:v2.5.0
2222
ports:
23-
- containerPort: 4000
24-
name: graphql
25-
- containerPort: 8088
26-
name: health
23+
- containerPort: 4000
24+
name: graphql
25+
- containerPort: 8088
26+
name: health
2727
env:
28-
- name: APOLLO_GRAPH_REF
29-
value: "${APOLLO_GRAPH_REF}"
30-
- name: APOLLO_KEY
31-
value: "${APOLLO_KEY}"
32-
- name: PORT
33-
value: "4000"
28+
- name: APOLLO_GRAPH_REF
29+
value: "${APOLLO_GRAPH_REF}"
30+
- name: APOLLO_KEY
31+
value: "${APOLLO_KEY}"
32+
- name: PORT
33+
value: "4000"
3434
volumeMounts:
35-
- name: router-config
36-
mountPath: /dist/config.yaml
37-
subPath: config.yaml
38-
- name: supergraph-schema
39-
mountPath: /dist/supergraph.graphql
40-
subPath: supergraph.graphql
41-
args: ["--config", "/dist/config.yaml", "--supergraph", "/dist/supergraph.graphql"]
35+
- name: router-config
36+
mountPath: /dist/config.yaml
37+
subPath: config.yaml
38+
- name: supergraph-schema
39+
mountPath: /dist/supergraph.graphql
40+
subPath: supergraph.graphql
41+
args:
42+
- "--config"
43+
- "/dist/config.yaml"
44+
- "--supergraph"
45+
- "/dist/supergraph.graphql"
4246
resources:
4347
requests:
4448
memory: "128Mi"
@@ -59,12 +63,12 @@ spec:
5963
initialDelaySeconds: 5
6064
periodSeconds: 5
6165
volumes:
62-
- name: router-config
63-
configMap:
64-
name: router-config
65-
- name: supergraph-schema
66-
configMap:
67-
name: supergraph-schema
66+
- name: router-config
67+
configMap:
68+
name: router-config
69+
- name: supergraph-schema
70+
configMap:
71+
name: supergraph-schema
6872
---
6973
apiVersion: v1
7074
kind: Service
@@ -77,10 +81,10 @@ spec:
7781
selector:
7882
app: apollo-router
7983
ports:
80-
- name: graphql
81-
port: 4000
82-
targetPort: 4000
83-
- name: health
84-
port: 8088
85-
targetPort: 8088
84+
- name: graphql
85+
port: 4000
86+
targetPort: 4000
87+
- name: health
88+
port: 8088
89+
targetPort: 8088
8690
type: ClusterIP

0 commit comments

Comments
 (0)