1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

fixed webhook format issue

This commit is contained in:
Felix Han 2021-09-03 13:30:07 +12:00
parent f631c1757b
commit 8321318143

View file

@ -122,7 +122,7 @@ class KubernetesDeployController {
payload.AutoUpdate.Interval = this.formValues.RepositoryFetchInterval; payload.AutoUpdate.Interval = this.formValues.RepositoryFetchInterval;
metadata['automatic-updates'] = 'polling'; metadata['automatic-updates'] = 'polling';
} else if (this.formValues.RepositoryMechanism === `Webhook`) { } else if (this.formValues.RepositoryMechanism === `Webhook`) {
payload.AutoUpdate.Webhook = this.formValues.RepositoryWebhookURL; payload.AutoUpdate.Webhook = this.formValues.RepositoryWebhookURL.split('/').reverse()[0];
metadata['automatic-updates'] = 'webhook'; metadata['automatic-updates'] = 'webhook';
} }
} else { } else {