What this PR does / why we need it:
This design an alternative to the custom kube module for applying manifests, by combining the 'template' lookup plugin with
the stdin argument of the command module, and converts the manifests under roles/kubernetes-apps/ansible to make use of it.
See first commit for the rationale of that method.
The idea would be to deprecate the kube module and transition existing manifests to this method.
Since there is a lot of manifests, there is no need to do eveything at once ; PRs in smaller chunks might be easier to review.
One of the end-goal is to enable server-side apply for CoreDNS (which is converted as part of this PR) to have a proper fix for #10860 and reapply #10617.
This is not done as part of this PR to keep it refactoring only (no behavior change) but will be in a separate one.
Special notes for your reviewer:
Apart from the first commit, this is mostly conversion commits.
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/kubernetes-sigs/kubespray/blob/master/OWNERS)~~ [VannTen]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
What type of PR is this? /kind design
What this PR does / why we need it: This design an alternative to the custom kube module for applying manifests, by combining the 'template' lookup plugin with the
stdin
argument of thecommand
module, and converts the manifests under roles/kubernetes-apps/ansible to make use of it.See first commit for the rationale of that method.
The idea would be to deprecate the
kube
module and transition existing manifests to this method. Since there is a lot of manifests, there is no need to do eveything at once ; PRs in smaller chunks might be easier to review.One of the end-goal is to enable server-side apply for CoreDNS (which is converted as part of this PR) to have a proper fix for #10860 and reapply #10617. This is not done as part of this PR to keep it refactoring only (no behavior change) but will be in a separate one.
Special notes for your reviewer: Apart from the first commit, this is mostly conversion commits.
Does this PR introduce a user-facing change?:
/label tide/merge-method-merge