Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【v4.x 】Unpredictable errors may occur if file definitions are referenced multiple times in a file. #2496

Open
redscholar opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@redscholar
Copy link
Collaborator

What is version of KubeKey has the issue?

v4.x

What is your os environment?

all

KubeKey config file

A clear and concise description of what happend.

if defined the value in files like:

a1: b1
a2: |
 {{- a1 -}}
a3: {{ a2 }}

it need two times to convert variable. but Map in golang is unordered. so it will have two results.

  1. first convert
a1: b1
a2: |
{{ - a1 -}}
a3: {{- a1 -}}

second convert

a1: b1
a2: b1
a3:b1

it's not a yaml format.
2. first convert

a1: b1
a2: b1
a3: {{ a2 }}

second convert

a1: b1
a2: b1
a3: b1

it's the correct yaml format

Relevant log output

Additional information

No response

@redscholar redscholar added the bug Something isn't working label Feb 14, 2025
@redscholar redscholar self-assigned this Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant