From 68829b8439f3fa8a47456bbf8edfb02013eae886 Mon Sep 17 00:00:00 2001 From: Mo Mesgin Date: Mon, 13 Jan 2025 16:04:42 -0800 Subject: [PATCH 001/140] restrict installed apps upgrade --- shell/assets/translations/en-us.yaml | 2 + shell/list/catalog.cattle.io.app.vue | 25 +++++- shell/mixins/__tests__/chart.test.ts | 9 +- shell/mixins/chart.js | 4 +- .../__tests__/catalog.cattle.io.app.test.ts | 88 +++++++++++++++++++ shell/models/catalog.cattle.io.app.js | 85 +++++++++++------- .../pages/c/_cluster/explorer/tools/index.vue | 4 +- shell/store/catalog.js | 21 +++-- 8 files changed, 188 insertions(+), 50 deletions(-) create mode 100644 shell/models/__tests__/catalog.cattle.io.app.test.ts diff --git a/shell/assets/translations/en-us.yaml b/shell/assets/translations/en-us.yaml index 758c7a19d37..603f216ab2a 100644 --- a/shell/assets/translations/en-us.yaml +++ b/shell/assets/translations/en-us.yaml @@ -903,6 +903,8 @@ catalog: label: Resources busy: The related resources will appear when {app} is fully installed. values: Values YAML + upgrade: + uncertainUpgradeWarningTooltip: Unable to identify source chart and repository for this application in order to determine if an upgrade is available chart: registry: label: Container Registry diff --git a/shell/list/catalog.cattle.io.app.vue b/shell/list/catalog.cattle.io.app.vue index 05aaa0c4606..dab3e3e3983 100644 --- a/shell/list/catalog.cattle.io.app.vue +++ b/shell/list/catalog.cattle.io.app.vue @@ -1,5 +1,6 @@ @@ -603,7 +598,7 @@ export default { class="wizard" @cancel="done" @error="e=>errors = e" - @finish="saveOverride" + @finish="save" > - - + + - - - From 30d19c9230ac3687ead7b4202e49e0bc84bb9eba Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Mon, 24 Feb 2025 13:44:50 +0100 Subject: [PATCH 075/140] Fleet: move Advanced step in last position of GitRepo wizard; add info banner and fix labels Signed-off-by: Francesco Torchia --- shell/assets/translations/en-us.yaml | 9 +++++---- shell/edit/fleet.cattle.io.gitrepo.vue | 26 ++++++++++++++++---------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/shell/assets/translations/en-us.yaml b/shell/assets/translations/en-us.yaml index 279bd6a51d0..3a1f633a31b 100644 --- a/shell/assets/translations/en-us.yaml +++ b/shell/assets/translations/en-us.yaml @@ -2503,9 +2503,9 @@ fleet: noWorkspaces: There are no workspaces.
Please create a workspace before adding repositories resources: label: 'Resource Handling' - keepResources: Always Keep Resources + keepResources: Always keep resources keepResourcesTooltip: When enabled, resources will be kept when deleting a GitRepo or Bundle - only Helm release secrets will be deleted. - correctDrift: Enable Self-Healing + correctDrift: Enable self-healing correctDriftTooltip: When enabled, Fleet will ensure that the cluster resources are kept in sync with the git repository. All resource changes made on the cluster will be lost. polling: label: Polling @@ -2523,7 +2523,7 @@ fleet: subtext: Placeholder subtext description: Placeholder description repo: - label: Repository Details + label: Repository details title: Specify the Git Repository to add to fleet subtext: 'Define repository details' description: Fleet will continuously monitor the Git Repository you configure below and synchronise the resources contained in it to the configured targets. @@ -2532,8 +2532,9 @@ fleet: title: Placeholder title subtext: Placeholder subtext description: Placeholder description + info: These settings are for advanced usage and optional. You can skip them and finish the creation process. targetInfo: - label: Target Details + label: Target details title: Specify which target to synchronise this repository to subtext: 'Define target details' description: You can configure which clusters will be used as the target of synchronisation with the resources in the repository. diff --git a/shell/edit/fleet.cattle.io.gitrepo.vue b/shell/edit/fleet.cattle.io.gitrepo.vue index 85b8b80d990..051aa4bfc1c 100644 --- a/shell/edit/fleet.cattle.io.gitrepo.vue +++ b/shell/edit/fleet.cattle.io.gitrepo.vue @@ -184,15 +184,6 @@ export default { ready: this.isView || (!!this.refValue && !!this.fvFormIsValid), weight: 1 }, - { - name: 'stepAdvanced', - title: this.t('fleet.gitRepo.add.steps.advanced.title'), - label: this.t('fleet.gitRepo.add.steps.advanced.label'), - subtext: this.t('fleet.gitRepo.add.steps.advanced.subtext'), - descriptionKey: 'fleet.gitRepo.add.steps.advanced.description', - ready: true, - weight: 1, - }, { name: 'stepTarget', title: this.t('fleet.gitRepo.add.steps.targetInfo.title'), @@ -201,7 +192,16 @@ export default { descriptionKey: 'fleet.gitRepo.steps.add.targetInfo.description', ready: this.isView || !!this.fvFormIsValid, weight: 1 - } + }, + { + name: 'stepAdvanced', + title: this.t('fleet.gitRepo.add.steps.advanced.title'), + label: this.t('fleet.gitRepo.add.steps.advanced.label'), + subtext: this.t('fleet.gitRepo.add.steps.advanced.subtext'), + descriptionKey: 'fleet.gitRepo.add.steps.advanced.description', + ready: !!this.fvFormIsValid, + weight: 1, + }, ]; }, @@ -659,6 +659,12 @@ export default {