github budimanjojo/talhelper v1.5.0

latest releases: v3.0.5, v3.0.4, v3.0.3...
24 months ago

Thanks to the guidance of frezbo from Talos and the code from
siderolabs, now you can use patches that can do everything the former
configPatches and inlinePatch can do. And not only that, you can now
also use "@filepath" to load a patch from a file. You can still use
variable substitution from in that file, making it a template patch.

The old configPatches and inlinePatch will still work just fine, but
the new patches is so much nicer. Here's a comparison on how they
differ:

Old configPatches and inlinePatch

`talconfig.yaml`
controlPlane:
  configPatches:
    - op: add
      path: /machine/kubelet/extraArgs
      value:
        rotate-server-certificate: "true"
    - op: add
      path: /machine/install/extraKernelArgs
      value:
        - talos.logging.kernel=${udpAddress}
  inlinePatch:
    machine:
      network:
        interfaces:
          - interface: eth1
            addresses: [192.168.200.11/24]

New patches
talconfig.yaml:

controlPlane:
  patches:
    - |-
      - op: add
        path: /machine/kubelet/extraArgs
        value:
          rotate-server-certificate: "true"
    - "@patch-file.yaml"
    - |-
      machine:
        network:
          interfaces:
            - interface: eth1
              addresses: [192.168.200.11/24]

patch-file.yaml:

- op: add
  path: /machine/install/extraKernelArgs
  value:
    - talos.logging.kernel=${udpAddress}

Notice it's using list of strings, so don't forget the |- if it's a
multiline patch.

Changelog

  • dab1eff Merge pull request #42 from budimanjojo/renovate/renovatebot-github-action-32.x
  • 5c5fe36 Merge pull request #43 from budimanjojo/renovate/github.com-talos-systems-talos-pkg-machinery-1.x
  • 255469b Merge pull request #44 from budimanjojo/renovate/siderolabs-talos-1.x
  • 6d15a08 Merge pull request #45 from budimanjojo/renovate/renovatebot-github-action-32.x
  • 9e54b97 feat(code): dedicated package for envsubst
  • 6cb0cb4 feat(config): don't do envsubst on yaml comments
  • 2bd19f9 feat(config): new patches key to replace configPatches and inlinePatch
  • 8d160f4 feat(example): update example talconfig to use new patches instead
  • ff6a8c6 fix(code): fix test failing
  • 1885905 fix(code): formatting
  • a9992ed fix(deps): update module github.com/talos-systems/talos/pkg/machinery to v1.2.3
  • 9ff03c9 fix(example): typo

Don't miss a new talhelper release

NewReleases is sending notifications on new releases.