mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-26 21:33:02 +00:00
Fix linters in CI (#873)
SUMMARY It seems that recent updates in linters break CI. Closes #874 ISSUE TYPE Bugfix Pull Request COMPONENT NAME CI ADDITIONAL INFORMATION Reviewed-by: Mike Graves <mgraves@redhat.com> Reviewed-by: Yuriy Novostavskiy
This commit is contained in:
committed by
GitHub
parent
1943dfc3d9
commit
91df2f10bc
5
.ansible-lint-ignore
Normal file
5
.ansible-lint-ignore
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# https://docs.ansible.com/ansible-lint/docs/rules/
|
||||||
|
# no-changed-when is not requried for examples
|
||||||
|
plugins/connection/kubectl.py no-changed-when
|
||||||
|
# false positive result
|
||||||
|
plugins/connection/kubectl.py var-naming[no-reserved]
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# no-changed-when is not requried for examples
|
|
||||||
plugins/connection/kubectl.py no-changed-when
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,6 +13,7 @@ changelogs/.plugin-cache.yaml
|
|||||||
tests/output
|
tests/output
|
||||||
tests/integration/cloud-config-*
|
tests/integration/cloud-config-*
|
||||||
.cache
|
.cache
|
||||||
|
.ansible
|
||||||
|
|
||||||
# Helm charts
|
# Helm charts
|
||||||
tests/integration/*-chart-*.tgz
|
tests/integration/*-chart-*.tgz
|
||||||
|
|||||||
@@ -5,16 +5,24 @@ rules:
|
|||||||
braces:
|
braces:
|
||||||
max-spaces-inside: 1
|
max-spaces-inside: 1
|
||||||
level: error
|
level: error
|
||||||
|
|
||||||
brackets:
|
brackets:
|
||||||
max-spaces-inside: 1
|
max-spaces-inside: 1
|
||||||
level: error
|
level: error
|
||||||
|
comments:
|
||||||
|
min-spaces-from-content: 1
|
||||||
|
comments-indentation: false
|
||||||
document-start: disable
|
document-start: disable
|
||||||
line-length: disable
|
line-length: disable
|
||||||
truthy: disable
|
truthy: disable
|
||||||
indentation:
|
indentation:
|
||||||
spaces: 2
|
spaces: 2
|
||||||
indent-sequences: consistent
|
indent-sequences: consistent
|
||||||
|
octal-values:
|
||||||
|
forbid-implicit-octal: true
|
||||||
|
forbid-explicit-octal: true
|
||||||
ignore: |
|
ignore: |
|
||||||
.cache
|
.cache
|
||||||
.tox
|
.tox
|
||||||
|
.ansible
|
||||||
tests/output
|
tests/output
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
- name: Update directory permissions
|
- name: Update directory permissions
|
||||||
file:
|
file:
|
||||||
path: "{{ manifests_dir.path }}"
|
path: "{{ manifests_dir.path }}"
|
||||||
mode: 0755
|
mode: '0755'
|
||||||
|
|
||||||
- name: Create manifests files
|
- name: Create manifests files
|
||||||
copy:
|
copy:
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
- name: make script as executable
|
- name: make script as executable
|
||||||
file:
|
file:
|
||||||
path: "{{ tmp_dir_path }}/install_kustomize.sh"
|
path: "{{ tmp_dir_path }}/install_kustomize.sh"
|
||||||
mode: 0755
|
mode: '0755'
|
||||||
|
|
||||||
- name: Install kustomize
|
- name: Install kustomize
|
||||||
command: "{{ tmp_dir_path }}/install_kustomize.sh"
|
command: "{{ tmp_dir_path }}/install_kustomize.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user