Skip to content

Commit 612041c

Browse files
Simon Emmsroboquat
Simon Emms
authored andcommitted
[werft]: get shiftfs image from Installer for KOTS publish
1 parent c633b3f commit 612041c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.werft/jobs/build/build-and-publish.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ function publishKots(werft: Werft, jobConfig: JobConfig) {
113113
exec(`yq w -i ${REPLICATED_YAML_DIR}/gitpod-installer-job.yaml ${INSTALLER_JOB_IMAGE} ${image}:${jobConfig.version}`, { slice: phases.PUBLISH_KOTS });
114114
exec(`yq w -i ${REPLICATED_YAML_DIR}/gitpod-installation-status.yaml ${INSTALLER_JOB_IMAGE} ${image}:${jobConfig.version}`, { slice: phases.PUBLISH_KOTS });
115115

116+
// Set the ShiftFS Module Loader tag to version defined in Installer
117+
const shiftFsImageAndTag = exec(`yq r ${REPLICATED_YAML_DIR}/gitpod-shiftfs-module-loader.yaml ${INSTALLER_JOB_IMAGE}`);
118+
const [shiftFsImage] = shiftFsImageAndTag.split(':');
119+
const shiftfsModuleLoaderVersion = exec(`/tmp/installer version | yq r - 'components.wsDaemon.userNamespaces.shiftfsModuleLoader.version'`);
120+
exec(`yq w -i ${REPLICATED_YAML_DIR}/gitpod-shiftfs-module-loader.yaml ${INSTALLER_JOB_IMAGE} ${shiftFsImage}:${shiftfsModuleLoaderVersion}`, { slice: phases.PUBLISH_KOTS });
121+
116122
// Generate the logo
117123
exec(`make logo -C ${REPLICATED_DIR}`, { slice: phases.PUBLISH_KOTS });
118124

0 commit comments

Comments
 (0)