File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
project-v3-declarative-v1/config/manager
project-v3-with-metrics/config/manager Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 55
55
runs-on : ubuntu-latest
56
56
steps :
57
57
- uses : actions/checkout@v3
58
- - name : yaml-lint
59
- uses : ibiqlik/action-yamllint@v3
60
- with :
61
- file_or_dir : testdata
62
- config_data : " {extends: relaxed, rules: {line-length: {max: 120}}}"
58
+ - name : Run yamllint make target
59
+ run : make yamllint
Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ lint: golangci-lint ## Run golangci-lint linter
79
79
lint-fix : golangci-lint # # Run golangci-lint linter and perform fixes
80
80
$(GOLANGCI_LINT ) run --fix
81
81
82
+ .PHONY : yamllint
83
+ yamllint :
84
+ @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
85
+
82
86
GOLANGCI_LINT = $(shell pwd) /bin/golangci-lint
83
87
golangci-lint :
84
88
@[ -f $( GOLANGCI_LINT) ] || { \
Original file line number Diff line number Diff line change 37
37
control-plane : controller-manager
38
38
spec :
39
39
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
40
- # according to the platforms which are supported by your solution.
40
+ # according to the platforms which are supported by your solution.
41
41
# It is considered best practice to support multiple architectures. You can
42
42
# build your manager image using the makefile target docker-buildx.
43
43
# affinity:
Original file line number Diff line number Diff line change 37
37
control-plane : controller-manager
38
38
spec :
39
39
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
40
- # according to the platforms which are supported by your solution.
40
+ # according to the platforms which are supported by your solution.
41
41
# It is considered best practice to support multiple architectures. You can
42
42
# build your manager image using the makefile target docker-buildx.
43
43
# affinity:
You can’t perform that action at this time.
0 commit comments