Skip to content

Commit

Permalink
Merge pull request #1048 from replicatedhq/laverya/kotsadm-not-ship-v…
Browse files Browse the repository at this point in the history
…ersion

find and replace SHIP_CLUSTER_BUILD_VERSION -> KOTSADM_BUILD_VERSION
  • Loading branch information
laverya committed Sep 1, 2020
2 parents 7358850 + f3922b4 commit 1b26c7a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions kotsadm/web/Makefile
Expand Up @@ -53,9 +53,9 @@ build-local:
--compress

.PHONY: build-kotsadm
build-kotsadm: SHIP_CLUSTER_BUILD_VERSION = $(if ${GIT_TAG},${GIT_TAG},$(shell echo ${GIT_COMMIT} | cut -c1-7))
build-kotsadm: KOTSADM_BUILD_VERSION = $(if ${GIT_TAG},${GIT_TAG},$(shell echo ${GIT_COMMIT} | cut -c1-7))
build-kotsadm:
SHIP_CLUSTER_BUILD_VERSION=$(SHIP_CLUSTER_BUILD_VERSION) \
KOTSADM_BUILD_VERSION=$(KOTSADM_BUILD_VERSION) \
node \
--max_old_space_size=6144 \
./node_modules/webpack/bin/webpack.js \
Expand Down
4 changes: 2 additions & 2 deletions kotsadm/web/env/enterprise.js
Expand Up @@ -2,8 +2,8 @@ module.exports = {
ENVIRONMENT: "production",
SECURE_ADMIN_CONSOLE: true,
API_ENDPOINT: "/api/v1",
SHIP_CLUSTER_BUILD_VERSION: (function () {
return process.env.SHIP_CLUSTER_BUILD_VERSION;
KOTSADM_BUILD_VERSION: (function () {
return process.env.KOTSADM_BUILD_VERSION;
}()),
};

2 changes: 1 addition & 1 deletion kotsadm/web/env/skaffold.js
Expand Up @@ -2,7 +2,7 @@ module.exports = {
ENVIRONMENT: "development",
SECURE_ADMIN_CONSOLE: true,
API_ENDPOINT: "http://127.0.0.1:30065/api/v1",
SHIP_CLUSTER_BUILD_VERSION: (function () {
KOTSADM_BUILD_VERSION: (function () {
return String(Date.now());
}()),
};
2 changes: 1 addition & 1 deletion kotsadm/web/eslint-dist.yml
Expand Up @@ -8,7 +8,7 @@ env:
browser: true
globals:
ENVIRONMENT: true
SHIP_CLUSTER_BUILD_VERSION: true
KOTSADM_BUILD_VERSION: true
GITHUB_CLIENTID: true
BUGSNAG_RELEASE_STAGE: true
INTERCOM_APP_ID: true
Expand Down
2 changes: 1 addition & 1 deletion kotsadm/web/src/utilities/utilities.js
Expand Up @@ -56,7 +56,7 @@ export function getApplicationType(watch) {
* @param {String} - Returns the commit SHA of the current build
*/
export function getBuildVersion() {
return window.env.SHIP_CLUSTER_BUILD_VERSION;
return window.env.KOTSADM_BUILD_VERSION;
}

export function parseIconUri(uri) {
Expand Down
2 changes: 1 addition & 1 deletion kotsadm/web/webpack.config.dist.js
Expand Up @@ -14,7 +14,7 @@ function getPlugins(appEnv, env) {
apiKey: appEnv.BUGSNAG_API_KEY,
publicPath: appEnv.PUBLIC_ASSET_PATH,
releaseStage: appEnv.ENVIRONMENT,
appVersion: appEnv.SHIP_CLUSTER_BUILD_VERSION,
appVersion: appEnv.KOTSADM_BUILD_VERSION,
overwrite: true
}));
}
Expand Down

0 comments on commit 1b26c7a

Please sign in to comment.