mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-25 00:44:35 +00:00
ansible-lint: Groom the .ansible-lint file
- Enable production profile - Remove excludes no longer necessary - Try to not skip any tests Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
@@ -1,37 +1,11 @@
|
|||||||
# .ansible-lint
|
# .ansible-lint
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- .cache/
|
|
||||||
- .github/
|
- .github/
|
||||||
- molecule/
|
|
||||||
- .ansible-lint
|
|
||||||
- .yamllint
|
|
||||||
- meta/
|
|
||||||
- playbooks/roles/
|
|
||||||
- changelogs/changelog.yaml
|
|
||||||
|
|
||||||
enable_list:
|
enable_list:
|
||||||
- fqcn-builtins # opt-in
|
- fqcn-builtins # opt-in
|
||||||
- no-log-password # opt-in
|
- no-log-password # opt-in
|
||||||
|
- yaml
|
||||||
|
|
||||||
warn_list:
|
profile: production
|
||||||
- experimental
|
|
||||||
- ignore-errors
|
|
||||||
- no-handler
|
|
||||||
- fqcn-builtins
|
|
||||||
- no-log-password
|
|
||||||
- no-empty-data-files
|
|
||||||
- name[template]
|
|
||||||
- fqcn[keyword]
|
|
||||||
- schema[meta]
|
|
||||||
- no-free-form
|
|
||||||
- run-once[task]
|
|
||||||
- var-naming[no-role-prefix]
|
|
||||||
- galaxy[version-incorrect]
|
|
||||||
- yaml[key-duplicates]
|
|
||||||
|
|
||||||
skip_list:
|
|
||||||
- jinja[spacing]
|
|
||||||
- yaml[truthy]
|
|
||||||
|
|
||||||
use_default_rules: true
|
|
||||||
parseable: true
|
parseable: true
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ connections:
|
|||||||
- namespaces:
|
- namespaces:
|
||||||
- default
|
- default
|
||||||
network_name: bridge-network
|
network_name: bridge-network
|
||||||
kube_secondary_dns: yes
|
kube_secondary_dns: true
|
||||||
|
|||||||
@@ -39,4 +39,4 @@
|
|||||||
ssh_authorized_keys:
|
ssh_authorized_keys:
|
||||||
- ssh-ed25519 AAAA...
|
- ssh-ed25519 AAAA...
|
||||||
name: cloudinit
|
name: cloudinit
|
||||||
wait: yes
|
wait: true
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
state: present
|
state: present
|
||||||
name: testvm
|
name: testvm
|
||||||
namespace: default
|
namespace: default
|
||||||
running: no
|
running: false
|
||||||
|
|||||||
@@ -37,4 +37,4 @@
|
|||||||
ssh_authorized_keys:
|
ssh_authorized_keys:
|
||||||
- ssh-ed25519 AAAA...
|
- ssh-ed25519 AAAA...
|
||||||
name: cloudinit
|
name: cloudinit
|
||||||
wait: yes
|
wait: true
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
name: testvm-with-dv
|
name: testvm-with-dv
|
||||||
namespace: default
|
namespace: default
|
||||||
state: absent
|
state: absent
|
||||||
wait: yes
|
wait: true
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
name: testvm
|
name: testvm
|
||||||
namespace: default
|
namespace: default
|
||||||
state: absent
|
state: absent
|
||||||
wait: yes
|
wait: true
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ plugin: kubevirt.core.kubevirt
|
|||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
- default
|
- default
|
||||||
use_service: yes
|
use_service: true
|
||||||
|
|||||||
@@ -131,34 +131,32 @@ requirements:
|
|||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
# Filename must end with kubevirt.[yml|yaml]
|
# Filename must end with kubevirt.[yml|yaml]
|
||||||
|
|
||||||
# Authenticate with token, and return all VirtualMachineInstances for all accessible namespaces
|
- name: Authenticate with token and return all VirtualMachineInstances for all accessible namespaces
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- host: https://192.168.64.4:8443
|
- host: https://192.168.64.4:8443
|
||||||
api_key: xxxxxxxxxxxxxxxx
|
api_key: xxxxxxxxxxxxxxxx
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
|
|
||||||
# Use default config (~/.kube/config) file and active context, and return VirtualMachineInstances
|
- name: Use default ~/.kube/config and return VirtualMachineInstances from namespace testing with interfaces connected to network bridge-network
|
||||||
# from namespace testing with interfaces connected to network bridge-network
|
plugin: kubevirt.core.kubevirt
|
||||||
plugin: kubevirt.core.kubevirt
|
connections:
|
||||||
connections:
|
- namespaces:
|
||||||
- namespaces:
|
- testing
|
||||||
- testing
|
network_name: bridge-network
|
||||||
network_name: bridge-network
|
|
||||||
|
|
||||||
# Use default config (~/.kube/config) file and active context, and return VirtualMachineInstances
|
- name: Use default ~/.kube/config and return VirtualMachineInstances from namespace testing with label app=test
|
||||||
# from namespace testing with label app=test
|
plugin: kubevirt.core.kubevirt
|
||||||
plugin: kubevirt.core.kubevirt
|
connections:
|
||||||
connections:
|
- namespaces:
|
||||||
- namespaces:
|
- testing
|
||||||
- testing
|
label_selector: app=test
|
||||||
label_selector: app=test
|
|
||||||
|
|
||||||
# Use a custom config file, and a specific context.
|
- name: Use a custom config file and a specific context
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- kubeconfig: /path/to/config
|
- kubeconfig: /path/to/config
|
||||||
context: 'awx/192-168-64-4:8443/developer'
|
context: 'awx/192-168-64-4:8443/developer'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ EXAMPLES = """
|
|||||||
ssh_authorized_keys:
|
ssh_authorized_keys:
|
||||||
- ssh-ed25519 AAAA...
|
- ssh-ed25519 AAAA...
|
||||||
name: cloudinit
|
name: cloudinit
|
||||||
wait: yes
|
wait: true
|
||||||
|
|
||||||
- name: Delete a VirtualMachine
|
- name: Delete a VirtualMachine
|
||||||
kubevirt.core.kubevirt_vm:
|
kubevirt.core.kubevirt_vm:
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ EXAMPLES = """
|
|||||||
kubevirt.core.kubevirt_vm_info:
|
kubevirt.core.kubevirt_vm_info:
|
||||||
name: testvm
|
name: testvm
|
||||||
namespace: default
|
namespace: default
|
||||||
wait: yes
|
wait: true
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = """
|
RETURN = """
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: test
|
app: test
|
||||||
wait: yes
|
wait: true
|
||||||
wait_timeout: 600
|
wait_timeout: 600
|
||||||
spec:
|
spec:
|
||||||
domain:
|
domain:
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
foo: bar
|
foo: bar
|
||||||
wait: yes
|
wait: true
|
||||||
wait_timeout: 600
|
wait_timeout: 600
|
||||||
spec:
|
spec:
|
||||||
domain:
|
domain:
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ plugin: kubevirt.core.kubevirt
|
|||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
- default
|
- default
|
||||||
create_groups: yes
|
create_groups: true
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ plugin: kubevirt.core.kubevirt
|
|||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
- default
|
- default
|
||||||
create_groups: yes
|
create_groups: true
|
||||||
label_selector: app=test
|
label_selector: app=test
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ plugin: kubevirt.core.kubevirt
|
|||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
- default
|
- default
|
||||||
create_groups: yes
|
create_groups: true
|
||||||
network_name: bridge-network
|
network_name: bridge-network
|
||||||
|
|||||||
Reference in New Issue
Block a user