Skip to content

Commit 425ca24

Browse files
committed
Update linter
1 parent d4fabde commit 425ca24

File tree

3 files changed

+43
-43
lines changed

3 files changed

+43
-43
lines changed

k8s/router-deployment-clusterip.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ spec:
6262
port: 8088
6363
initialDelaySeconds: 5
6464
periodSeconds: 5
65-
volumes:
66-
- name: router-config
67-
configMap:
68-
name: router-config
69-
- name: supergraph-schema
70-
configMap:
71-
name: supergraph-schema
65+
volumes:
66+
- name: router-config
67+
configMap:
68+
name: router-config
69+
- name: supergraph-schema
70+
configMap:
71+
name: supergraph-schema
7272
---
7373
apiVersion: v1
7474
kind: Service

k8s/subgraphs-deployment-clusterip.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,35 @@ spec:
1717
app: subgraphs
1818
spec:
1919
containers:
20-
- name: subgraphs
21-
image: subgraphs:latest
22-
imagePullPolicy: Never # Use local image
23-
ports:
24-
- containerPort: 4001
25-
env:
26-
- name: NODE_ENV
27-
value: "production"
28-
- name: PORT
29-
value: "4001"
30-
resources:
31-
requests:
32-
memory: "128Mi"
33-
cpu: "100m"
34-
limits:
35-
memory: "256Mi"
36-
cpu: "200m"
37-
livenessProbe:
38-
httpGet:
39-
path: /health
40-
port: 4001
41-
initialDelaySeconds: 30
42-
periodSeconds: 10
43-
readinessProbe:
44-
httpGet:
45-
path: /health
46-
port: 4001
47-
initialDelaySeconds: 5
48-
periodSeconds: 5
20+
- name: subgraphs
21+
image: subgraphs:latest
22+
imagePullPolicy: Never # Use local image
23+
ports:
24+
- containerPort: 4001
25+
env:
26+
- name: NODE_ENV
27+
value: "production"
28+
- name: PORT
29+
value: "4001"
30+
resources:
31+
requests:
32+
memory: "128Mi"
33+
cpu: "100m"
34+
limits:
35+
memory: "256Mi"
36+
cpu: "200m"
37+
livenessProbe:
38+
httpGet:
39+
path: /health
40+
port: 4001
41+
initialDelaySeconds: 30
42+
periodSeconds: 10
43+
readinessProbe:
44+
httpGet:
45+
path: /health
46+
port: 4001
47+
initialDelaySeconds: 5
48+
periodSeconds: 5
4949
---
5050
apiVersion: v1
5151
kind: Service
@@ -58,7 +58,7 @@ spec:
5858
selector:
5959
app: subgraphs
6060
ports:
61-
- name: http
62-
port: 4001
63-
targetPort: 4001
61+
- name: http
62+
port: 4001
63+
targetPort: 4001
6464
type: ClusterIP

test-local.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ if [ "$TEST_YAML" = true ]; then
222222

223223
# Check if yamllint is available
224224
YAMLLINT_CMD=""
225-
if python3 -c "import yamllint" 2>/dev/null; then
226-
YAMLLINT_CMD="python3 -m yamllint"
227-
print_status "yamllint found via python3 -m yamllint"
228-
elif command_exists yamllint; then
225+
if command_exists yamllint; then
229226
YAMLLINT_CMD="yamllint"
230227
print_status "yamllint found in PATH"
228+
elif python3 -c "import yamllint" 2>/dev/null; then
229+
YAMLLINT_CMD="python3 -m yamllint"
230+
print_status "yamllint found via python3 -m yamllint"
231231
else
232232
print_warning "yamllint not available, skipping YAML linting tests"
233233
print_info "To enable YAML linting, install yamllint: pip3 install yamllint"

0 commit comments

Comments
 (0)