-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added yamllint, fixed current linting errors, added github action
- Loading branch information
1 parent
622fcf4
commit 96fe8fe
Showing
12 changed files
with
107 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: YamlLint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
yamllint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run yamllint make target | ||
run: make yamllint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: YamlLint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
yamllint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run yamllint make target | ||
run: make yamllint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
extends: default | ||
|
||
ignore: | ||
- config # Skip autogenerated config dir from liniting | ||
|
||
rules: | ||
# Rules to control the number of spaces around operators | ||
braces: | ||
min-spaces-inside: 0 # No spaces required inside braces | ||
max-spaces-inside: 1 # Maximum one space inside braces | ||
brackets: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 1 | ||
colons: | ||
max-spaces-before: 0 | ||
max-spaces-after: 1 | ||
commas: | ||
max-spaces-before: 0 | ||
max-spaces-after: 1 | ||
hyphens: | ||
max-spaces-after: 1 | ||
|
||
# Rules to control indentation | ||
indentation: | ||
spaces: consistent # Spaces should be consistently used for indentation | ||
indent-sequences: whatever # Either indenting or not indenting individual block sequences is OK | ||
comments-indentation: enable # Comments should be indented the same as the content | ||
|
||
# Rules to control lines | ||
line-length: | ||
max: 150 # Maximum 150 characters per line | ||
allow-non-breakable-words: true # Allow long words without breaks | ||
allow-non-breakable-inline-mappings: true # Allow long inline mappings without breaks | ||
empty-lines: | ||
max: 2 # Maximum two consecutive empty lines allowed | ||
trailing-spaces: enable # Ensure no trailing spaces at the end of lines | ||
|
||
# Other rules | ||
comments: | ||
min-spaces-from-content: 1 # At least one space required between content and comment | ||
key-duplicates: enable # Ensure no duplicate keys in mappings | ||
truthy: | ||
allowed-values: ['true', 'false', 'on', 'off'] # Allow only these values for boolean scalars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,3 @@ spec: | |
nodeRegistration: | ||
kubeletExtraArgs: | ||
provider-id: ibmpowervs://${CLUSTER_NAME}/'{{ v1.local_hostname }}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ metadata: | |
namespace: "${NAMESPACE}" | ||
labels: | ||
ccm: external | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ spec: | |
apiServer: | ||
extraArgs: | ||
cloud-provider: external | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4229,7 +4229,7 @@ rules: | |
resources: | ||
- endpointslices | ||
verbs: | ||
- watch | ||
- watch | ||
- list | ||
- apiGroups: [""] | ||
resources: | ||
|