cli: annotate CoreDNS resources for Helm (#3236)

This commit is contained in:
Markus Rudy 2024-07-03 19:37:51 +02:00 committed by Markus Rudy
parent b872fbdfe8
commit 807bbbfd16
8 changed files with 81 additions and 0 deletions

View file

@ -422,6 +422,9 @@ func (a *applyCmd) apply(
// Apply Helm Charts
if !a.flags.skipPhases.contains(skipHelmPhase) {
if err := a.applier.AnnotateCoreDNSResources(cmd.Context()); err != nil {
return fmt.Errorf("annotating CoreDNS: %w", err)
}
if err := a.runHelmApply(cmd, conf, stateFile, upgradeDir); err != nil {
return err
}
@ -843,6 +846,7 @@ type applier interface {
// methods required to install/upgrade Helm charts
AnnotateCoreDNSResources(context.Context) error
PrepareHelmCharts(
flags helm.Options, state *state.State, serviceAccURI string, masterSecret uri.MasterSecret,
) (helm.Applier, bool, error)