mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-11 06:02:41 -05:00
cli: annotate CoreDNS resources for Helm (#3236)
This commit is contained in:
parent
b872fbdfe8
commit
807bbbfd16
8 changed files with 81 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue