fixed webhook format issue

pull/5596/head
Felix Han 2021-09-03 13:30:07 +12:00
parent f631c1757b
commit 8321318143
1 changed files with 1 additions and 1 deletions

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 {