mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-05 07:45:27 -04:00
Only upgrade helm releases if versions changed (#818)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
6323bd774d
commit
942d11a4c8
3 changed files with 153 additions and 67 deletions
|
@ -118,11 +118,6 @@ func (u *Upgrader) UpgradeHelmServices(ctx context.Context, config *config.Confi
|
|||
return u.helmClient.Upgrade(ctx, config, timeout)
|
||||
}
|
||||
|
||||
// CurrentHelmVersion returns the version of the currently installed helm release.
|
||||
func (u *Upgrader) CurrentHelmVersion(release string) (string, error) {
|
||||
return u.helmClient.CurrentVersion(release)
|
||||
}
|
||||
|
||||
// KubernetesVersion returns the version of Kubernetes the Constellation is currently running on.
|
||||
func (u *Upgrader) KubernetesVersion() (string, error) {
|
||||
return u.stableInterface.kubernetesVersion()
|
||||
|
@ -244,7 +239,6 @@ func (u *stableClient) kubernetesVersion() (string, error) {
|
|||
}
|
||||
|
||||
type helmInterface interface {
|
||||
CurrentVersion(release string) (string, error)
|
||||
Upgrade(ctx context.Context, config *config.Config, timeout time.Duration) error
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue