mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-22 06:50:43 -04:00
helm: manage CoreDNS addon as Helm chart (#3388)
* Reapply "helm: manage CoreDNS addon as Helm chart (#3236)" This reverts commit4a9422d288
. * Reapply "helm: fix kubeadm bugs caused by CoreDNS installation (#3353)" This reverts commit9ecfc3fa19
.
This commit is contained in:
parent
32e00994bb
commit
dd1763a36d
28 changed files with 750 additions and 69 deletions
|
@ -428,6 +428,9 @@ func (a *applyCmd) apply(
|
|||
if err := a.runHelmApply(cmd, conf, stateFile, upgradeDir); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := a.applier.CleanupCoreDNSResources(cmd.Context()); err != nil {
|
||||
return fmt.Errorf("cleaning up CoreDNS: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Upgrade node image
|
||||
|
@ -847,6 +850,7 @@ type applier interface {
|
|||
// methods required to install/upgrade Helm charts
|
||||
|
||||
AnnotateCoreDNSResources(context.Context) error
|
||||
CleanupCoreDNSResources(context.Context) error
|
||||
PrepareHelmCharts(
|
||||
flags helm.Options, state *state.State, serviceAccURI string, masterSecret uri.MasterSecret,
|
||||
) (helm.Applier, bool, error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue