mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 22:09:41 +02:00
feature(kubernetes): stack name made optional & add toggle to disable stack in kubernetes [EE-6170] (#10436)
This commit is contained in:
parent
44d66cc633
commit
7840e0bfe1
29 changed files with 305 additions and 47 deletions
|
@ -210,10 +210,14 @@ class KubernetesApplicationService {
|
|||
* To synchronise with kubernetes resource creation summary output, any new resources created in this method should
|
||||
* also be displayed in the summary output (getCreatedApplicationResources)
|
||||
*/
|
||||
async createAsync(formValues) {
|
||||
async createAsync(formValues, hideStacks) {
|
||||
// formValues -> Application
|
||||
let [app, headlessService, services, , claims] = KubernetesApplicationConverter.applicationFormValuesToApplication(formValues);
|
||||
|
||||
if (hideStacks) {
|
||||
app.StackName = '';
|
||||
}
|
||||
|
||||
if (services) {
|
||||
services.forEach(async (service) => {
|
||||
try {
|
||||
|
@ -264,8 +268,8 @@ class KubernetesApplicationService {
|
|||
await apiService.create(app);
|
||||
}
|
||||
|
||||
create(formValues) {
|
||||
return this.$async(this.createAsync, formValues);
|
||||
create(formValues, _, hideStacks) {
|
||||
return this.$async(this.createAsync, formValues, hideStacks);
|
||||
}
|
||||
/* #endregion */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue