Skip to content

Commit 6c581e9

Browse files
authored
move the embedded-cluster binary to /var/lib/embedded-cluster/bin after materialize (#485)
* move the embedded-cluster binary to /var/lib/embedded-cluster/bin after materialize * use actual embedded-cluster-kinds release * include the binary name in the installation kind upon initial install * update embedded-cluster-operator chart version * empty
1 parent 91da9ea commit 6c581e9

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ADMIN_CONSOLE_IMAGE_OVERRIDE =
99
ADMIN_CONSOLE_MIGRATIONS_IMAGE_OVERRIDE =
1010
EMBEDDED_OPERATOR_CHART_URL = oci://registry.replicated.com/library
1111
EMBEDDED_OPERATOR_CHART_NAME = embedded-cluster-operator
12-
EMBEDDED_OPERATOR_CHART_VERSION = 0.26.1
12+
EMBEDDED_OPERATOR_CHART_VERSION = 0.27.0
1313
EMBEDDED_OPERATOR_UTILS_IMAGE = busybox:1.36.1
1414
OPENEBS_CHART_URL = https://openebs.github.io/charts
1515
OPENEBS_CHART_NAME = openebs/openebs

cmd/local-artifact-mirror/pull.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,15 @@ var binariesCommand = &cli.Command{
189189
}
190190

191191
logrus.Infof("embedded cluster binaries materialized")
192+
193+
targetBinaryName := filepath.Join(defaults.EmbeddedClusterBinsSubDir(), EmbeddedClusterBinaryArtifactName)
194+
if in.Spec.BinaryName != "" {
195+
targetBinaryName = filepath.Join(defaults.EmbeddedClusterBinsSubDir(), in.Spec.BinaryName)
196+
}
197+
198+
if err := helpers.MoveFile(bin, targetBinaryName); err != nil {
199+
return fmt.Errorf("unable to move embedded-cluster binary: %w", err)
200+
}
192201
return nil
193202
},
194203
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/jedib0t/go-pretty v4.3.0+incompatible
1515
github.com/k0sproject/dig v0.2.0
1616
github.com/k0sproject/k0s v1.29.3-0.20240220215935-6a63dc9024ce
17-
github.com/replicatedhq/embedded-cluster-kinds v1.1.1
17+
github.com/replicatedhq/embedded-cluster-kinds v1.1.2
1818
github.com/replicatedhq/embedded-cluster-operator v0.26.0
1919
github.com/replicatedhq/embedded-cluster-utils v1.0.0
2020
github.com/replicatedhq/kotskinds v0.0.0-20230724164735-f83482cc9cfe

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lne
241241
github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY=
242242
github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo=
243243
github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo=
244-
github.com/replicatedhq/embedded-cluster-kinds v1.1.1 h1:300bVpCBHtZ9acJgEHL3/S4CapvxCRfcSwg/adMNWW8=
245-
github.com/replicatedhq/embedded-cluster-kinds v1.1.1/go.mod h1:LheSDOgMngMRAbwAj0sVZUVv2ciKIVR2bYTMeOBGwlg=
244+
github.com/replicatedhq/embedded-cluster-kinds v1.1.2 h1:2ITzcUzh5uh0fsnfZsVHvkwS6XC6NGBbHf99gLgZM9M=
245+
github.com/replicatedhq/embedded-cluster-kinds v1.1.2/go.mod h1:LheSDOgMngMRAbwAj0sVZUVv2ciKIVR2bYTMeOBGwlg=
246246
github.com/replicatedhq/embedded-cluster-operator v0.26.0 h1:ys7qq054KdgpfQ+NmXIDzp3xTNrZdw4NmRyGONGNypI=
247247
github.com/replicatedhq/embedded-cluster-operator v0.26.0/go.mod h1:kP/gI2X/fhgTKSRBC52077RPYmHOpvwezChnM26nvDo=
248248
github.com/replicatedhq/embedded-cluster-utils v1.0.0 h1:Axdni1nYfl5zeOP9g5U79yvN8cRdClyU6hz0wV1Hmdc=

pkg/addons/embeddedclusteroperator/embeddedclusteroperator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ func (e *EmbeddedClusterOperator) Outro(ctx context.Context, cli client.Client)
183183
AirGap: e.airgap,
184184
Config: cfgspec,
185185
EndUserK0sConfigOverrides: euOverrides,
186+
BinaryName: defaults.BinaryName(),
186187
},
187188
}
188189
embeddedclusterv1beta1.AddToScheme(cli.Scheme())

0 commit comments

Comments
 (0)