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

kubeadm: add support for patching a "kubeletconfiguration" target #110405

Merged

Commits on Jun 6, 2022

  1. kubeadm: pass io.Writer and "patches dir" to WriteConfigToDisk()

    With phases/kubelet/WriteConfigToDisk() about to support patches
    it is required that the function accepts an io.Writer
    where the PatchManager can output to and also a patch directory.
    
    Modify all call sites of the function WriteConfigToDisk()
    to properly prepare an pass an io.Writer and patches dir to it.
    This results in command phases for init/join/upgrade to pass
    the root io.Writer (usually stdout) and the patchesDir populated
    either via the config file or --patches flag.
    neolit123 committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    665f66d View commit details
    Browse the repository at this point in the history
  2. kubeadm: apply patches to the kubelet config before writing it to disk

    In phases/kubelet/WriteConfigToDisk() create a patch
    manager for the root patches directory and apply
    the user patches with a target "kubeletconfiguration".
    neolit123 committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    85fb6b0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c3c9fb8 View commit details
    Browse the repository at this point in the history
  4. kubeadm: document "kubeletconfiguration" as a patch target

    Document the "kubeletconfiguration" as a patch target in the
    v1beta3 API Init/JoinConfiguration.Patches struct
    and also for the --patches flag.
    neolit123 committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    428c3fe View commit details
    Browse the repository at this point in the history
  5. kubeadm: allow passing the --patches flag to init/join/node phases

    Allow passing the --patches flag to init/join/node phases
    relevant to the kubelet writing the config file on disk.
    neolit123 committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    2134026 View commit details
    Browse the repository at this point in the history