1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

feat(oci): oci helm support [r8s-361] (#787)

This commit is contained in:
Ali 2025-07-13 10:37:43 +12:00 committed by GitHub
parent b6a6ce9aaf
commit 2697d6c5d7
80 changed files with 4264 additions and 812 deletions

View file

@ -101,9 +101,10 @@ class KubernetesDeployController {
this.onChangeNamespace = this.onChangeNamespace.bind(this);
}
onChangeNamespace() {
onChangeNamespace(namespaceName) {
return this.$async(async () => {
const applications = await this.KubernetesApplicationService.get(this.formValues.Namespace);
this.formValues.Namespace = namespaceName;
const applications = await this.KubernetesApplicationService.get(namespaceName);
const stacks = _.map(applications, (item) => item.StackName).filter((item) => item !== '');
this.stacks = _.uniq(stacks);
});
@ -371,6 +372,10 @@ class KubernetesDeployController {
if (this.namespaces.length > 0) {
this.formValues.Namespace = this.namespaces[0].Name;
}
this.namespaceOptions = _.map(namespaces, (namespace) => ({
label: namespace.Name,
value: namespace.Name,
}));
} catch (err) {
this.Notifications.error('Failure', err, 'Unable to load namespaces data');
}
@ -404,7 +409,8 @@ class KubernetesDeployController {
}
}
this.onChangeNamespace();
this.onChangeNamespace(this.formValues.Namespace);
this.state.viewReady = true;
this.$window.onbeforeunload = () => {