Skip to content

Update kube-vip.yml.j2 to stringify item.value - #394

Merged
MonolithProjects merged 1 commit into
lablabs:mainfrom
maxisam:patch-3
May 10, 2026
Merged

Update kube-vip.yml.j2 to stringify item.value#394
MonolithProjects merged 1 commit into
lablabs:mainfrom
maxisam:patch-3

Conversation

@maxisam

@maxisam maxisam commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

Description

Convert item.value to JSON format in kube-vip.yml.j2 it could convert string value to number if the value looks like a number and causing issues
like

rke2_kubevip_args:

  • param: KUBERNETES_SERVICE_HOST
    value: "127.0.0.1"
  • param: KUBERNETES_SERVICE_PORT
    value: "6443"

fix #315

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Small minor change not affecting the Ansible Role code (GitHub Actions Workflow, Documentation etc.)

How Has This Been Tested?

Convert item.value to JSON format in kube-vip.yml.j2
it could convert string value to number if the value looks like a number and causing issues
@MonolithProjects MonolithProjects self-assigned this May 10, 2026
@MonolithProjects MonolithProjects added the bug Something isn't working label May 10, 2026

@MonolithProjects MonolithProjects left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (failed pre-commit test not related to this change). Thanks

@MonolithProjects
MonolithProjects merged commit 5bcc4f1 into lablabs:main May 10, 2026
5 of 6 checks passed
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

Successfully merging this pull request may close these issues.

bug: Configuring kube-vip flags fails, cannot unmarshal bool into Go struct field

2 participants