mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Rename kubespray-defaults to kubespray_defaults
Role names in ansible collection should not contains hyphens.
This commit is contained in:
@@ -5,13 +5,13 @@
|
||||
connection: local
|
||||
gather_facts: false
|
||||
vars:
|
||||
fallback_ip: 'bypass tasks in kubespray-defaults'
|
||||
fallback_ip: 'bypass tasks in kubespray_defaults'
|
||||
_keys: "{{ query('ansible.builtin.varnames', '^.+_checksums$') }}"
|
||||
_values: "{{ query('ansible.builtin.vars', *_keys) | map('dict2items') }}"
|
||||
_components_archs_values: "{{ _keys | zip(_values) | community.general.dict | dict2items | subelements('value') }}"
|
||||
_minimal_data_needed: "{{ _components_archs_values | map(attribute='0.key') | zip(_components_archs_values | map(attribute='1')) }}"
|
||||
roles:
|
||||
- kubespray-defaults
|
||||
- kubespray_defaults
|
||||
tasks:
|
||||
- name: Check all versions are strings
|
||||
assert:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# After a new version of Kubernetes has been released,
|
||||
# run this script to update roles/kubespray-defaults/defaults/main/download.yml
|
||||
# run this script to update roles/kubespray_defaults/defaults/main/download.yml
|
||||
# with new hashes.
|
||||
|
||||
import sys
|
||||
@@ -25,7 +25,7 @@ from typing import Optional, Any
|
||||
|
||||
from . import components
|
||||
|
||||
CHECKSUMS_YML = Path("roles/kubespray-defaults/defaults/main/checksums.yml")
|
||||
CHECKSUMS_YML = Path("roles/kubespray_defaults/defaults/main/checksums.yml")
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
connection: local
|
||||
gather_facts: false
|
||||
vars:
|
||||
fallback_ip: 'bypass tasks in kubespray-defaults'
|
||||
fallback_ip: 'bypass tasks in kubespray_defaults'
|
||||
roles:
|
||||
- kubespray-defaults
|
||||
- kubespray_defaults
|
||||
tasks:
|
||||
- name: Include versions not in kubespray-defaults
|
||||
- name: Include versions not in kubespray_defaults
|
||||
include_vars: "{{ item }}"
|
||||
loop:
|
||||
- ../roles/container-engine/docker/defaults/main.yml
|
||||
|
||||
Reference in New Issue
Block a user