Giter VIP home page Giter VIP logo

Comments (5)

otavio avatar otavio commented on June 22, 2024 1

The sed is at:

# This ugly hack is here, because terraform serializes the
# embedded yaml files with "- |2", when there is more than
# one yamldocument in the embedded file. Kustomize does not understand
# that syntax and tries to parse the blocks content as a file, resulting
# in weird errors. so gnu sed with funny escaping is used to
# replace lines like "- |3" by "- |" (yaml block syntax).
# due to indendation this should not changes the embedded
# manifests themselves
"sed -i 's/^- |[0-9]\\+$/- |/g' /var/post_install/kustomization.yaml",

from:

# Upload kustomization.yaml, containing Hetzner CSI & CSM, as well as kured.
provisioner "file" {
content = local.kustomization_backup_yaml
destination = "/var/post_install/kustomization.yaml"
}

It might be due the create_kustomization = false in kube.tf

from terraform-hcloud-kube-hetzner.

otavio avatar otavio commented on June 22, 2024 1

I have created a node, and it failed.

from terraform-hcloud-kube-hetzner.

mysticaltech avatar mysticaltech commented on June 22, 2024

@otavio Thanks for this, but how to reproduce?

from terraform-hcloud-kube-hetzner.

mysticaltech avatar mysticaltech commented on June 22, 2024

@otavio I'm sorry I cannot reproduce, for me it works, even with create_kustomization = false.
Screenshot from 2024-01-05 23-28-07
Screenshot from 2024-01-05 23-28-47
Screenshot from 2024-01-05 23-28-57

from terraform-hcloud-kube-hetzner.

mysticaltech avatar mysticaltech commented on June 22, 2024

So my conclusion is that you are probably on Windows, and something is up with WSL. Please try from Mac or Linux to confirm. Moving this to a discussion, please don't hesitate to tag me again in the discussion.

from terraform-hcloud-kube-hetzner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.