Skip to content

Commit

Permalink
chore: remove arch-specific etcd image tag
Browse files Browse the repository at this point in the history
The main etcd tag is now multiarch so the special case isn't needed.

Signed-off-by: Steven Fackler <[email protected]>
Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
sfackler authored and smira committed Aug 6, 2024
1 parent c9f1dec commit dff56d8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/machinery/config/types/v1alpha1/v1alpha1_etcdconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package v1alpha1

import (
"fmt"
goruntime "runtime"

"github.com/siderolabs/crypto/x509"

Expand All @@ -16,14 +15,9 @@ import (
// Image implements the config.Etcd interface.
func (e *EtcdConfig) Image() string {
image := e.ContainerImage
suffix := ""

if goruntime.GOARCH == "arm64" {
suffix = "-arm64"
}

if image == "" {
image = fmt.Sprintf("%s:%s%s", constants.EtcdImage, constants.DefaultEtcdVersion, suffix)
image = fmt.Sprintf("%s:%s", constants.EtcdImage, constants.DefaultEtcdVersion)
}

return image
Expand Down

0 comments on commit dff56d8

Please sign in to comment.