Skip to content

Commit 164b916

Browse files
authored
Merge pull request #3634 from MaGaroo/fix-yamllint-warnings
🐛 (kustomize/v1,go/v4): Fix yamllint warnings in the scaffolds done under config.
2 parents f474467 + 54535fa commit 164b916

File tree

42 files changed

+27
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+27
-52
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ lint-fix: golangci-lint ## Run golangci-lint linter and perform fixes
9191

9292
.PHONY: yamllint
9393
yamllint:
94-
@docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data cytopia/yamllint:latest testdata -d "{extends: relaxed, rules: {line-length: {max: 120}}}" --no-warnings
94+
@docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data cytopia/yamllint:latest testdata -d '{extends: relaxed, rules: {line-length: {max: 120}}, ignore: "/testdata/project-v2/\n/testdata/project-v3/"}'
9595

9696
GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
9797
golangci-lint:

docs/book/src/component-config-tutorial/testdata/project/config/default/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ patchesStrategicMerge:
3232
# endpoint w/o any authn/z, please comment the following line.
3333
- manager_auth_proxy_patch.yaml
3434

35-
3635
# Mount the controller config file for loading manager configurations
3736
# through a ComponentConfig type
3837
- manager_config_patch.yaml

docs/book/src/component-config-tutorial/testdata/project/config/default/manager_auth_proxy_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
allowPrivilegeEscalation: false
1515
capabilities:
1616
drop:
17-
- "ALL"
17+
- "ALL"
1818
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.14.1
1919
args:
2020
- "--secure-listen-address=0.0.0.0:8443"

docs/book/src/component-config-tutorial/testdata/project/config/manager/manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ spec:
7474
allowPrivilegeEscalation: false
7575
capabilities:
7676
drop:
77-
- "ALL"
77+
- "ALL"
7878
livenessProbe:
7979
httpGet:
8080
path: /healthz

docs/book/src/component-config-tutorial/testdata/project/config/prometheus/monitor.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Prometheus Monitor Service (Metrics)
32
apiVersion: monitoring.coreos.com/v1
43
kind: ServiceMonitor

docs/book/src/cronjob-tutorial/testdata/project/config/default/kustomization.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ patchesStrategicMerge:
3232
# endpoint w/o any authn/z, please comment the following line.
3333
- manager_auth_proxy_patch.yaml
3434

35-
36-
3735
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
3836
# crd/kustomization.yaml
3937
- manager_webhook_patch.yaml

docs/book/src/cronjob-tutorial/testdata/project/config/default/manager_auth_proxy_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
allowPrivilegeEscalation: false
3131
capabilities:
3232
drop:
33-
- "ALL"
33+
- "ALL"
3434
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.14.1
3535
args:
3636
- "--secure-listen-address=0.0.0.0:8443"

docs/book/src/cronjob-tutorial/testdata/project/config/manager/manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ spec:
7676
allowPrivilegeEscalation: false
7777
capabilities:
7878
drop:
79-
- "ALL"
79+
- "ALL"
8080
livenessProbe:
8181
httpGet:
8282
path: /healthz

docs/book/src/cronjob-tutorial/testdata/project/config/prometheus/monitor.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Prometheus Monitor Service (Metrics)
32
apiVersion: monitoring.coreos.com/v1
43
kind: ServiceMonitor

docs/book/src/cronjob-tutorial/testdata/project/config/webhook/service.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
apiVersion: v1
32
kind: Service
43
metadata:

0 commit comments

Comments
 (0)