From 9ca48e541d0d824e9d7b4f2297dafad83a6f0221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 10:39:42 +0300 Subject: [PATCH 01/23] Update deploy-to-k8s.yml for Azure Pipelines --- etc/azure/deploy-to-k8s.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 98c3a1f..0892c29 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -5,7 +5,12 @@ steps: - task: PowerShell@2 inputs: filePath: 'etc/k8s/scripts/build-images.ps1' - +- task: ContainerBuild@0 + inputs: + dockerRegistryServiceConnection: 'volocr' + repository: 'eventhub.www' + Dockerfile: 'src/EventHub.Web/Dockerfile' + tags: 'latest' - task: PowerShell@2 inputs: filePath: 'etc/azure/scripts/push-images.ps1' From aaa1db7fab2a914805f476fdc394e22742b95cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 10:54:16 +0300 Subject: [PATCH 02/23] added login to deploy --- etc/azure/deploy-to-k8s.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 0892c29..4782a19 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -5,12 +5,10 @@ steps: - task: PowerShell@2 inputs: filePath: 'etc/k8s/scripts/build-images.ps1' -- task: ContainerBuild@0 +- task: Docker@2 inputs: - dockerRegistryServiceConnection: 'volocr' - repository: 'eventhub.www' - Dockerfile: 'src/EventHub.Web/Dockerfile' - tags: 'latest' + containerRegistry: 'volocr' + command: 'login' - task: PowerShell@2 inputs: filePath: 'etc/azure/scripts/push-images.ps1' From 3c9c89e89d708c2ee24e25c7aad94f31b1fb0d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 11:09:15 +0300 Subject: [PATCH 03/23] fix chart path --- etc/azure/deploy-to-k8s.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 4782a19..87d05a3 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -22,7 +22,7 @@ steps: namespace: 'eventhub' command: 'upgrade' chartType: 'Name' - chartName: 'eventhub' + chartName: 'etc/k8s/helm-chart/eventhub' releaseName: 'eh-az' valueFile: 'etc/k8s/helm-chart/eventhub/values.azure.yaml' arguments: '--namespace eventhub --create-namespace' \ No newline at end of file From 622b588c8d88aa664935bd977c9d74ea513b5858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 11:10:32 +0300 Subject: [PATCH 04/23] Update deploy-to-k8s.yml for Azure Pipelines --- etc/azure/deploy-to-k8s.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 87d05a3..e3a3bc0 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -1,3 +1,5 @@ +trigger: none + pool: vmImage: 'windows-latest' From 8cbe312d5aa5818cd9676217f641979fd24ae7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 11:24:32 +0300 Subject: [PATCH 05/23] test change --- src/EventHub.Web/Pages/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventHub.Web/Pages/Index.cshtml b/src/EventHub.Web/Pages/Index.cshtml index 42caf6e..c79277c 100644 --- a/src/EventHub.Web/Pages/Index.cshtml +++ b/src/EventHub.Web/Pages/Index.cshtml @@ -58,7 +58,7 @@

.Net Foundation Week

- Lorem ipsum is placeholder text commonly used in the graphic. + Lorem ipsum is placeholder text commonly used in the graphic..!

Join Now From 909d0f2d8428d2475b693c2e42efd41b04d5d75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 11:25:02 +0300 Subject: [PATCH 06/23] change build image to ubuntu --- etc/azure/deploy-to-k8s.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index e3a3bc0..a625c1b 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -1,7 +1,7 @@ trigger: none pool: - vmImage: 'windows-latest' + vmImage: 'ubuntu-latest' steps: - task: PowerShell@2 From af44f37997350d38844e9d5527412203069029ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 11:48:02 +0300 Subject: [PATCH 07/23] Update Index.cshtml --- src/EventHub.Web/Pages/Index.cshtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EventHub.Web/Pages/Index.cshtml b/src/EventHub.Web/Pages/Index.cshtml index c79277c..a0fcfa3 100644 --- a/src/EventHub.Web/Pages/Index.cshtml +++ b/src/EventHub.Web/Pages/Index.cshtml @@ -40,7 +40,7 @@

.Net Foundation Week

- Lorem ipsum is placeholder text commonly used in the graphic. + Lorem ipsum is placeholder text commonly used in the graphic..!

Join Now @@ -74,8 +74,8 @@
-

Let's Share Together

-

Try something new, or do more of what you love.

+

Let's Share Together!

+

Try something new, or do more of what you love :)

From 48900a92e8c48cdda22425f5323ff211f06aae8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 14:37:44 +0300 Subject: [PATCH 08/23] Revised EventHubUrlOptions --- .../EventHubAdminHttpApiHostModule.cs | 4 +- .../Web/EventHubUrlOptions.cs | 60 ++++++++++++------- .../EventHubHttpApiHostModule.cs | 4 +- .../EventHubIdentityServerModule.cs | 21 ++++--- src/EventHub.Web/EventHubWebModule.cs | 4 +- .../Menus/EventHubMenuContributor.cs | 2 +- 6 files changed, 55 insertions(+), 40 deletions(-) diff --git a/src/EventHub.Admin.HttpApi.Host/EventHubAdminHttpApiHostModule.cs b/src/EventHub.Admin.HttpApi.Host/EventHubAdminHttpApiHostModule.cs index 17946a0..a2b47f8 100644 --- a/src/EventHub.Admin.HttpApi.Host/EventHubAdminHttpApiHostModule.cs +++ b/src/EventHub.Admin.HttpApi.Host/EventHubAdminHttpApiHostModule.cs @@ -112,7 +112,7 @@ namespace EventHub.Admin private static void ConfigureSwaggerServices(ServiceConfigurationContext context, IConfiguration configuration) { context.Services.AddAbpSwaggerGenWithOAuth( - configuration[EventHubUrlOptions.GetAccountConfigKey()], + EventHubUrlOptions.GetAccountConfigValue(configuration), new Dictionary { {"EventHubAdmin", "EventHub Admin API"} @@ -151,7 +151,7 @@ namespace EventHub.Admin { builder .WithOrigins( - configuration[EventHubUrlOptions.GetAdminConfigKey()] + EventHubUrlOptions.GetAdminConfigValue(configuration) ) .WithAbpExposedHeaders() .SetIsOriginAllowedToAllowWildcardSubdomains() diff --git a/src/EventHub.Domain.Shared/Web/EventHubUrlOptions.cs b/src/EventHub.Domain.Shared/Web/EventHubUrlOptions.cs index 5d758a1..9446c4d 100644 --- a/src/EventHub.Domain.Shared/Web/EventHubUrlOptions.cs +++ b/src/EventHub.Domain.Shared/Web/EventHubUrlOptions.cs @@ -1,49 +1,65 @@ -namespace EventHub.Web +using Microsoft.Extensions.Configuration; + +namespace EventHub.Web { public class EventHubUrlOptions { private const string ConfigurationName = "AppUrls"; + private const string AccountDefaultValue = "https://localhost:44313"; + private const string AdminDefaultValue = "https://localhost:44307"; + private const string WwwDefaultValue = "https://localhost:44308"; + private const string ApiDefaultValue = "https://localhost:44362"; + private const string ApiInternalDefaultValue = ApiDefaultValue; + private const string AdminApiDefaultValue = "https://localhost:44305"; - public string Account { get; set; } = "https://localhost:44313"; - public string Www { get; set; } = "https://localhost:44308"; - public string Api { get; set; } = "https://localhost:44362"; - public string ApiInternal { get; set; } = "https://localhost:44362"; - public string Admin { get; set; } = "https://localhost:44307"; - public string AdminApi { get; set; } = "https://localhost:44305"; + public string Account { get; set; } = AccountDefaultValue; + public string Www { get; set; } = WwwDefaultValue; + public string Api { get; set; } = ApiDefaultValue; + public string ApiInternal { get; set; } = ApiInternalDefaultValue; + public string Admin { get; set; } = AdminDefaultValue; + public string AdminApi { get; set; } = AdminApiDefaultValue; - public static string GetAccountConfigKey() + public static string GetAccountConfigValue(IConfiguration configuration) { - return GetConfigKey(nameof(Account)); + return GetConfigValue(configuration, nameof(Account), AccountDefaultValue); } - public static string GetWwwConfigKey() + public static string GetWwwConfigValue(IConfiguration configuration) { - return GetConfigKey(nameof(Www)); + return GetConfigValue(configuration, nameof(Www), WwwDefaultValue); } - public static string GetApiInternalConfigKey() + public static string GetApiInternalConfigValue(IConfiguration configuration) { - return GetConfigKey(nameof(ApiInternal)); + return GetConfigValue(configuration, nameof(ApiInternal), ApiInternalDefaultValue); } - - public static string GetApiConfigKey() + + public static string GetApiConfigValue(IConfiguration configuration) { - return GetConfigKey(nameof(Api)); + return GetConfigValue(configuration, nameof(Api), ApiDefaultValue); } - public static string GetAdminConfigKey() + public static string GetAdminConfigValue(IConfiguration configuration) { - return GetConfigKey(nameof(Admin)); + return GetConfigValue(configuration, nameof(Admin), AdminDefaultValue); } - - public static string GetAdminApiConfigKey() + + public static string GetAdminApiConfigValue(IConfiguration configuration) { - return GetConfigKey(nameof(AdminApi)); + return GetConfigValue(configuration, nameof(AdminApi), AdminApiDefaultValue); } - + private static string GetConfigKey(string appName) { return $"{ConfigurationName}:{appName}"; } + + private static string GetConfigValue( + IConfiguration configuration, + string appName, + string defaultValue) + { + return configuration[GetConfigKey(appName)] ?? defaultValue; + } } } \ No newline at end of file diff --git a/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs b/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs index 3769b07..b164b37 100644 --- a/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs +++ b/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs @@ -114,7 +114,7 @@ namespace EventHub private static void ConfigureSwaggerServices(ServiceConfigurationContext context, IConfiguration configuration) { context.Services.AddAbpSwaggerGenWithOAuth( - configuration[EventHubUrlOptions.GetAccountConfigKey()], + EventHubUrlOptions.GetAccountConfigValue(configuration), new Dictionary { {"EventHub", "EventHub API"} @@ -153,7 +153,7 @@ namespace EventHub { builder .WithOrigins( - configuration[EventHubUrlOptions.GetWwwConfigKey()] + EventHubUrlOptions.GetWwwConfigValue(configuration) ) .WithAbpExposedHeaders() .SetIsOriginAllowedToAllowWildcardSubdomains() diff --git a/src/EventHub.IdentityServer/EventHubIdentityServerModule.cs b/src/EventHub.IdentityServer/EventHubIdentityServerModule.cs index 55d63bc..81e8f25 100644 --- a/src/EventHub.IdentityServer/EventHubIdentityServerModule.cs +++ b/src/EventHub.IdentityServer/EventHubIdentityServerModule.cs @@ -118,7 +118,7 @@ namespace EventHub Configure(options => { - options.IssuerUri = configuration[EventHubUrlOptions.GetAccountConfigKey()]; + options.IssuerUri = EventHubUrlOptions.GetAccountConfigValue(configuration); }); if (hostingEnvironment.IsDevelopment()) @@ -133,14 +133,13 @@ namespace EventHub Configure(options => { - options.Applications["MVC"].RootUrl = configuration[EventHubUrlOptions.GetAccountConfigKey()]; + options.Applications["MVC"].RootUrl = EventHubUrlOptions.GetAccountConfigValue(configuration); options.RedirectAllowedUrls.AddRange( new[] { - configuration[EventHubUrlOptions.GetWwwConfigKey()], - configuration[EventHubUrlOptions.GetAdminConfigKey()], - configuration[EventHubUrlOptions.GetApiConfigKey()], - configuration[EventHubUrlOptions.GetAdminApiConfigKey()] + EventHubUrlOptions.GetWwwConfigValue(configuration), + EventHubUrlOptions.GetApiConfigValue(configuration), + EventHubUrlOptions.GetAdminApiConfigValue(configuration) }); }); @@ -165,10 +164,10 @@ namespace EventHub { builder .WithOrigins( - configuration[EventHubUrlOptions.GetWwwConfigKey()], - configuration[EventHubUrlOptions.GetApiConfigKey()], - configuration[EventHubUrlOptions.GetAdminConfigKey()], - configuration[EventHubUrlOptions.GetAdminApiConfigKey()] + EventHubUrlOptions.GetWwwConfigValue(configuration), + EventHubUrlOptions.GetApiConfigValue(configuration), + EventHubUrlOptions.GetAdminConfigValue(configuration), + EventHubUrlOptions.GetAdminApiConfigValue(configuration) ) .WithAbpExposedHeaders() .SetIsOriginAllowedToAllowWildcardSubdomains() @@ -191,7 +190,7 @@ namespace EventHub { if (ctx.Request.Headers.ContainsKey("from-ingress")) { - ctx.SetIdentityServerOrigin(configuration[EventHubUrlOptions.GetAccountConfigKey()]); + ctx.SetIdentityServerOrigin(EventHubUrlOptions.GetAccountConfigValue(configuration)); } await next(); diff --git a/src/EventHub.Web/EventHubWebModule.cs b/src/EventHub.Web/EventHubWebModule.cs index 1daba58..5fae0ba 100644 --- a/src/EventHub.Web/EventHubWebModule.cs +++ b/src/EventHub.Web/EventHubWebModule.cs @@ -112,13 +112,13 @@ namespace EventHub.Web { Configure(options => { - options.Applications["MVC"].RootUrl = configuration[EventHubUrlOptions.GetWwwConfigKey()]; + options.Applications["MVC"].RootUrl = EventHubUrlOptions.GetWwwConfigValue(configuration); }); Configure(options => { options.RemoteServices.Default = new RemoteServiceConfiguration( - configuration[EventHubUrlOptions.GetApiInternalConfigKey()] + EventHubUrlOptions.GetApiInternalConfigValue(configuration) .EnsureEndsWith('/') ); }); diff --git a/src/EventHub.Web/Menus/EventHubMenuContributor.cs b/src/EventHub.Web/Menus/EventHubMenuContributor.cs index 2d5fda7..a2fb640 100644 --- a/src/EventHub.Web/Menus/EventHubMenuContributor.cs +++ b/src/EventHub.Web/Menus/EventHubMenuContributor.cs @@ -51,7 +51,7 @@ namespace EventHub.Web.Menus if (currentUser.IsAuthenticated) { context.Menu.AddItem(new ApplicationMenuItem("Account.Manage", accountStringLocalizer["ManageYourProfile"], - $"{identityServerUrl.EnsureEndsWith('/')}Account/Manage?returnUrl={_configuration[EventHubUrlOptions.GetWwwConfigKey()]}", icon: "fa fa-cog", order: 1000, null, "_blank")); + $"{identityServerUrl.EnsureEndsWith('/')}Account/Manage?returnUrl={EventHubUrlOptions.GetWwwConfigValue(_configuration)}", icon: "fa fa-cog", order: 1000, null, "_blank")); context.Menu.AddItem(new ApplicationMenuItem("Account.Logout", l["Logout"], url: "~/Account/Logout", icon: "fa fa-power-off", order: int.MaxValue - 1000)); } From 25fd8ed521245be269df4c954a4e5a2790c813ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 15:27:24 +0300 Subject: [PATCH 09/23] Added version parameter to the images --- etc/azure/scripts/push-images.ps1 | 37 +++++++++++++++++++------------ etc/k8s/scripts/build-images.ps1 | 16 +++++++------ 2 files changed, 32 insertions(+), 21 deletions(-) diff --git a/etc/azure/scripts/push-images.ps1 b/etc/azure/scripts/push-images.ps1 index a3e504d..a1fdd44 100644 --- a/etc/azure/scripts/push-images.ps1 +++ b/etc/azure/scripts/push-images.ps1 @@ -1,22 +1,31 @@ +param ($version='latest') + az acr login --name volocr -docker tag eventhub.dbmigrator:latest volocr.azurecr.io/eventhub.dbmigrator:latest -docker push volocr.azurecr.io/eventhub.dbmigrator:latest +docker tag eventhub.dbmigrator:$version volocr.azurecr.io/eventhub.dbmigrator:$version +docker push volocr.azurecr.io/eventhub.dbmigrator:$version +docker tag volocr.azurecr.io/eventhub.dbmigrator:$version volocr.azurecr.io/eventhub.dbmigrator:latest -docker tag eventhub.www:latest volocr.azurecr.io/eventhub.www:latest -docker push volocr.azurecr.io/eventhub.www:latest +docker tag eventhub.www:$version volocr.azurecr.io/eventhub.www:$version +docker push volocr.azurecr.io/eventhub.www:$version +docker tag volocr.azurecr.io/eventhub.www:$version volocr.azurecr.io/eventhub.www:latest -docker tag eventhub.api:latest volocr.azurecr.io/eventhub.api:latest -docker push volocr.azurecr.io/eventhub.api:latest +docker tag eventhub.api:$version volocr.azurecr.io/eventhub.api:$version +docker push volocr.azurecr.io/eventhub.api:$version +docker tag volocr.azurecr.io/eventhub.api:$version volocr.azurecr.io/eventhub.api:latest -docker tag eventhub.admin:latest volocr.azurecr.io/eventhub.admin:latest -docker push volocr.azurecr.io/eventhub.admin:latest +docker tag eventhub.admin:$version volocr.azurecr.io/eventhub.admin:$version +docker push volocr.azurecr.io/eventhub.admin:$version +docker tag volocr.azurecr.io/eventhub.admin:$version volocr.azurecr.io/eventhub.admin:latest -docker tag eventhub.admin-api:latest volocr.azurecr.io/eventhub.admin-api:latest -docker push volocr.azurecr.io/eventhub.admin-api:latest +docker tag eventhub.admin-api:$version volocr.azurecr.io/eventhub.admin-api:$version +docker push volocr.azurecr.io/eventhub.admin-api:$version +docker tag volocr.azurecr.io/eventhub.admin-api:$version volocr.azurecr.io/eventhub.admin-api:latest -docker tag eventhub.account:latest volocr.azurecr.io/eventhub.account:latest -docker push volocr.azurecr.io/eventhub.account:latest +docker tag eventhub.account:$version volocr.azurecr.io/eventhub.account:$version +docker push volocr.azurecr.io/eventhub.account:$version +docker tag volocr.azurecr.io/eventhub.account:$version volocr.azurecr.io/eventhub.account:latest -docker tag eventhub.background-services:latest volocr.azurecr.io/eventhub.background-services:latest -docker push volocr.azurecr.io/eventhub.background-services:latest \ No newline at end of file +docker tag eventhub.background-services:$version volocr.azurecr.io/eventhub.background-services:$version +docker push volocr.azurecr.io/eventhub.background-services:$version +docker tag volocr.azurecr.io/eventhub.background-services:$version volocr.azurecr.io/eventhub.background-services:latest diff --git a/etc/k8s/scripts/build-images.ps1 b/etc/k8s/scripts/build-images.ps1 index a8f6bcb..a89ba68 100644 --- a/etc/k8s/scripts/build-images.ps1 +++ b/etc/k8s/scripts/build-images.ps1 @@ -1,3 +1,5 @@ +param ($version='latest') + $currentFolder = $PSScriptRoot $slnFolder = Join-Path $currentFolder "../../../" $dbmigratorFolder = Join-Path $slnFolder "src/EventHub.DbMigrator" @@ -13,49 +15,49 @@ $backgroundServicesFolder = Join-Path $slnFolder "src/EventHub.BackgroundService Write-Host "*** BUILDING DB MIGRATOR ****************" -ForegroundColor Green Set-Location $dbmigratorFolder dotnet publish -c Release -docker build -t eventhub.dbmigrator . +docker build -t eventhub.dbmigrator:$version . ### WEB (WWW) Write-Host "*** BUILDING WEB (WWW) ****************" -ForegroundColor Green Set-Location $webFolder dotnet publish -c Release -docker build -t eventhub.www . +docker build -t eventhub.www:$version . ### API Write-Host "*** BUILDING API ****************" -ForegroundColor Green Set-Location $apiFolder dotnet publish -c Release -docker build -t eventhub.api . +docker build -t eventhub.api:$version . ### ADMIN (BLAZOR) Write-Host "*** BUILDING ADMIN (BLAZOR) ****************" -ForegroundColor Green Set-Location $adminFolder dotnet publish -c Release -docker build -t eventhub.admin . +docker build -t eventhub.admin:$version . ### ADMIN API Write-Host "*** BUILDING ADMIN API ****************" -ForegroundColor Green Set-Location $adminApiFolder dotnet publish -c Release -docker build -t eventhub.admin-api . +docker build -t eventhub.admin-api:$version . ### IDENTITY SERVER (ACCOUNT) Write-Host "*** BUILDING IDENTITY SERVER (ACCOUNT) ****************" -ForegroundColor Green Set-Location $identityServerFolder dotnet publish -c Release -docker build -t eventhub.account . +docker build -t eventhub.account:$version . ### BACKGROUND SERVICES Write-Host "*** BUILDING BACKGROUND SERVICES ****************" -ForegroundColor Green Set-Location $backgroundServicesFolder dotnet publish -c Release -docker build -t eventhub.background-services . +docker build -t eventhub.background-services:$version . ### ALL COMPLETED From ad5f4c1df137892a55d4fc5f0e151b40cdef7df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:05:24 +0300 Subject: [PATCH 10/23] Add versioning on azure deployment --- etc/k8s/helm-chart/deploy-azure.ps1 | 4 +++- .../helm-chart/eventhub/charts/account/templates/account.yaml | 2 +- .../eventhub/charts/admin-api/templates/admin-api.yaml | 2 +- etc/k8s/helm-chart/eventhub/charts/admin/templates/admin.yaml | 2 +- etc/k8s/helm-chart/eventhub/charts/api/templates/api.yaml | 2 +- .../background-services/templates/background-services.yaml | 2 +- .../eventhub/charts/dbmigrator/templates/migrator.yaml | 2 +- etc/k8s/helm-chart/eventhub/charts/www/templates/www.yaml | 2 +- etc/k8s/helm-chart/eventhub/values.azure.yaml | 1 + etc/k8s/helm-chart/eventhub/values.yaml | 1 + 10 files changed, 12 insertions(+), 8 deletions(-) diff --git a/etc/k8s/helm-chart/deploy-azure.ps1 b/etc/k8s/helm-chart/deploy-azure.ps1 index 96bc82d..891f24b 100644 --- a/etc/k8s/helm-chart/deploy-azure.ps1 +++ b/etc/k8s/helm-chart/deploy-azure.ps1 @@ -1 +1,3 @@ -helm upgrade --install eh-az eventhub -f .\eventhub\values.azure.yaml --namespace eventhub --create-namespace \ No newline at end of file +param ($version='latest') + +helm upgrade --install eh-az eventhub -f .\eventhub\values.azure.yaml --namespace eventhub --create-namespace --set global.eventHubImageVersion=$version \ No newline at end of file diff --git a/etc/k8s/helm-chart/eventhub/charts/account/templates/account.yaml b/etc/k8s/helm-chart/eventhub/charts/account/templates/account.yaml index 0fc80aa..08ee5e4 100644 --- a/etc/k8s/helm-chart/eventhub/charts/account/templates/account.yaml +++ b/etc/k8s/helm-chart/eventhub/charts/account/templates/account.yaml @@ -12,7 +12,7 @@ spec: app: {{ .Release.Name }}-{{ .Chart.Name }} spec: containers: - - image: {{ .Values.containerImage }} + - image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} name: {{ .Release.Name }}-{{ .Chart.Name }} ports: diff --git a/etc/k8s/helm-chart/eventhub/charts/admin-api/templates/admin-api.yaml b/etc/k8s/helm-chart/eventhub/charts/admin-api/templates/admin-api.yaml index 0fc80aa..08ee5e4 100644 --- a/etc/k8s/helm-chart/eventhub/charts/admin-api/templates/admin-api.yaml +++ b/etc/k8s/helm-chart/eventhub/charts/admin-api/templates/admin-api.yaml @@ -12,7 +12,7 @@ spec: app: {{ .Release.Name }}-{{ .Chart.Name }} spec: containers: - - image: {{ .Values.containerImage }} + - image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} name: {{ .Release.Name }}-{{ .Chart.Name }} ports: diff --git a/etc/k8s/helm-chart/eventhub/charts/admin/templates/admin.yaml b/etc/k8s/helm-chart/eventhub/charts/admin/templates/admin.yaml index ca27707..939994b 100644 --- a/etc/k8s/helm-chart/eventhub/charts/admin/templates/admin.yaml +++ b/etc/k8s/helm-chart/eventhub/charts/admin/templates/admin.yaml @@ -12,7 +12,7 @@ spec: app: {{ .Release.Name }}-{{ .Chart.Name }} spec: containers: - - image: {{ .Values.containerImage }} + - image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} name: {{ .Release.Name }}-{{ .Chart.Name }} ports: diff --git a/etc/k8s/helm-chart/eventhub/charts/api/templates/api.yaml b/etc/k8s/helm-chart/eventhub/charts/api/templates/api.yaml index 0fc80aa..08ee5e4 100644 --- a/etc/k8s/helm-chart/eventhub/charts/api/templates/api.yaml +++ b/etc/k8s/helm-chart/eventhub/charts/api/templates/api.yaml @@ -12,7 +12,7 @@ spec: app: {{ .Release.Name }}-{{ .Chart.Name }} spec: containers: - - image: {{ .Values.containerImage }} + - image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} name: {{ .Release.Name }}-{{ .Chart.Name }} ports: diff --git a/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml b/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml index 6e7d8ee..570a6c2 100644 --- a/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml +++ b/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml @@ -8,7 +8,7 @@ spec: spec: containers: - name: {{ .Release.Name }}-{{ .Chart.Name }} - image: {{ .Values.containerImage }} + image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} env: {{ include "eventhub.global.env" . | indent 8 }} diff --git a/etc/k8s/helm-chart/eventhub/charts/dbmigrator/templates/migrator.yaml b/etc/k8s/helm-chart/eventhub/charts/dbmigrator/templates/migrator.yaml index 03b7b64..b595bd7 100644 --- a/etc/k8s/helm-chart/eventhub/charts/dbmigrator/templates/migrator.yaml +++ b/etc/k8s/helm-chart/eventhub/charts/dbmigrator/templates/migrator.yaml @@ -8,7 +8,7 @@ spec: spec: containers: - name: {{ .Release.Name }}-{{ .Chart.Name }} - image: {{ .Values.containerImage }} + image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} env: {{ include "eventhub.global.env" . | indent 8 }} diff --git a/etc/k8s/helm-chart/eventhub/charts/www/templates/www.yaml b/etc/k8s/helm-chart/eventhub/charts/www/templates/www.yaml index ca27707..939994b 100644 --- a/etc/k8s/helm-chart/eventhub/charts/www/templates/www.yaml +++ b/etc/k8s/helm-chart/eventhub/charts/www/templates/www.yaml @@ -12,7 +12,7 @@ spec: app: {{ .Release.Name }}-{{ .Chart.Name }} spec: containers: - - image: {{ .Values.containerImage }} + - image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} name: {{ .Release.Name }}-{{ .Chart.Name }} ports: diff --git a/etc/k8s/helm-chart/eventhub/values.azure.yaml b/etc/k8s/helm-chart/eventhub/values.azure.yaml index c98ca3c..4aba737 100644 --- a/etc/k8s/helm-chart/eventhub/values.azure.yaml +++ b/etc/k8s/helm-chart/eventhub/values.azure.yaml @@ -19,6 +19,7 @@ global: internalAuthServerRequireHttpsMetadata: "false" stringEncryptionDefaultPassPhrase: "TxVIZFPxK33czbbv" imagePullPolicy: Always + eventHubImageVersion: latest account: containerImage: "volocr.azurecr.io/eventhub.account" api: diff --git a/etc/k8s/helm-chart/eventhub/values.yaml b/etc/k8s/helm-chart/eventhub/values.yaml index 0fd8d6a..153b4d5 100644 --- a/etc/k8s/helm-chart/eventhub/values.yaml +++ b/etc/k8s/helm-chart/eventhub/values.yaml @@ -19,6 +19,7 @@ global: internalAuthServerRequireHttpsMetadata: "false" stringEncryptionDefaultPassPhrase: "TxVIZFPxK33czbbv" imagePullPolicy: Never + eventHubImageVersion: latest account: containerImage: "eventhub.account" api: From 4ab7e055c51faed286393e044ab324263483bc95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:07:44 +0300 Subject: [PATCH 11/23] Update deploy-to-k8s.yml for Azure Pipelines --- etc/azure/deploy-to-k8s.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index a625c1b..23b8290 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -7,13 +7,18 @@ steps: - task: PowerShell@2 inputs: filePath: 'etc/k8s/scripts/build-images.ps1' + arguments: '-version $(Build.BuildId)' + - task: Docker@2 inputs: containerRegistry: 'volocr' command: 'login' + - task: PowerShell@2 inputs: filePath: 'etc/azure/scripts/push-images.ps1' + arguments: '-version $(Build.BuildId)' + - task: HelmDeploy@0 inputs: connectionType: 'Azure Resource Manager' @@ -27,4 +32,4 @@ steps: chartName: 'etc/k8s/helm-chart/eventhub' releaseName: 'eh-az' valueFile: 'etc/k8s/helm-chart/eventhub/values.azure.yaml' - arguments: '--namespace eventhub --create-namespace' \ No newline at end of file + arguments: '--namespace eventhub --create-namespace --set global.eventHubImageVersion=$(Build.BuildId)' \ No newline at end of file From e60a990cf9a8f0aab51b61c11b1cdbf1ecc71639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:08:26 +0300 Subject: [PATCH 12/23] example change --- src/EventHub.Web/Pages/Index.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventHub.Web/Pages/Index.cshtml b/src/EventHub.Web/Pages/Index.cshtml index a0fcfa3..72917f4 100644 --- a/src/EventHub.Web/Pages/Index.cshtml +++ b/src/EventHub.Web/Pages/Index.cshtml @@ -40,7 +40,7 @@

.Net Foundation Week

- Lorem ipsum is placeholder text commonly used in the graphic..! + Lorem ipsum is placeholder text commonly used in the graphic...

Join Now @@ -58,7 +58,7 @@

.Net Foundation Week

- Lorem ipsum is placeholder text commonly used in the graphic..! + Lorem ipsum is placeholder text commonly used in the graphic...

Join Now From 0b7b5e248ed8559cc185c7b852631c3244304180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:34:23 +0300 Subject: [PATCH 13/23] Make background-services a deployment --- .../templates/background-services.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml b/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml index 570a6c2..5d83c0d 100644 --- a/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml +++ b/etc/k8s/helm-chart/eventhub/charts/background-services/templates/background-services.yaml @@ -1,18 +1,21 @@ -apiVersion: batch/v1 -kind: Job +apiVersion: apps/v1 +kind: Deployment metadata: name: {{ .Release.Name }}-{{ .Chart.Name }} spec: - activeDeadlineSeconds: 180 + selector: + matchLabels: + app: {{ .Release.Name }}-{{ .Chart.Name }} template: + metadata: + labels: + app: {{ .Release.Name }}-{{ .Chart.Name }} spec: containers: - - name: {{ .Release.Name }}-{{ .Chart.Name }} - image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} + - image: {{ .Values.containerImage }}:{{ .Values.global.eventHubImageVersion }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} + name: {{ .Release.Name }}-{{ .Chart.Name }} env: {{ include "eventhub.global.env" . | indent 8 }} - name: "ConnectionStrings__Default" - value: {{ .Values.global.defaultConnString }} - restartPolicy: Never - backoffLimit: 10 \ No newline at end of file + value: {{ .Values.global.defaultConnString }} \ No newline at end of file From fab1b73d04863a1fac50481bf9ab6ba56dc9ccd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:36:54 +0300 Subject: [PATCH 14/23] Delete migrator job before helm deployment --- etc/azure/deploy-to-k8s.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 23b8290..3a5f114 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -18,7 +18,9 @@ steps: inputs: filePath: 'etc/azure/scripts/push-images.ps1' arguments: '-version $(Build.BuildId)' - +- task: CmdLine@2 + inputs: + script: 'kubectl delete job eh-az-dbmigrator --namespace eventhub' - task: HelmDeploy@0 inputs: connectionType: 'Azure Resource Manager' From 6303c62b58dc022195b44e5da998c075b4369c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:37:33 +0300 Subject: [PATCH 15/23] delete migrator job before helm upgrade --- etc/k8s/helm-chart/deploy-azure.ps1 | 1 + src/EventHub.Web/Pages/Index.cshtml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/k8s/helm-chart/deploy-azure.ps1 b/etc/k8s/helm-chart/deploy-azure.ps1 index 891f24b..ba800d6 100644 --- a/etc/k8s/helm-chart/deploy-azure.ps1 +++ b/etc/k8s/helm-chart/deploy-azure.ps1 @@ -1,3 +1,4 @@ param ($version='latest') +kubectl delete job eh-az-dbmigrator helm upgrade --install eh-az eventhub -f .\eventhub\values.azure.yaml --namespace eventhub --create-namespace --set global.eventHubImageVersion=$version \ No newline at end of file diff --git a/src/EventHub.Web/Pages/Index.cshtml b/src/EventHub.Web/Pages/Index.cshtml index 72917f4..057ef09 100644 --- a/src/EventHub.Web/Pages/Index.cshtml +++ b/src/EventHub.Web/Pages/Index.cshtml @@ -40,7 +40,7 @@

.Net Foundation Week

- Lorem ipsum is placeholder text commonly used in the graphic... + Lorem ipsum is placeholder text commonly used in the graphic.

Join Now From 8321e40b1e73d9a6e762a4eaf50b3d2242e87c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:38:18 +0300 Subject: [PATCH 16/23] Create deploy-staging.ps1 --- etc/k8s/helm-chart/deploy-staging.ps1 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 etc/k8s/helm-chart/deploy-staging.ps1 diff --git a/etc/k8s/helm-chart/deploy-staging.ps1 b/etc/k8s/helm-chart/deploy-staging.ps1 new file mode 100644 index 0000000..6b992e2 --- /dev/null +++ b/etc/k8s/helm-chart/deploy-staging.ps1 @@ -0,0 +1,4 @@ +param ($version='latest') + +kubectl delete job eh-st-dbmigrator +helm upgrade --install eh-st eventhub --namespace eventhub --create-namespace --set global.eventHubImageVersion=$version \ No newline at end of file From b30b224aed835b42e6027fd058f1cb0db800c7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:48:35 +0300 Subject: [PATCH 17/23] Add displaynames and fix migrator delete job --- etc/azure/deploy-to-k8s.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 3a5f114..058cba4 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -5,23 +5,38 @@ pool: steps: - task: PowerShell@2 + displayName: Build docker images inputs: filePath: 'etc/k8s/scripts/build-images.ps1' arguments: '-version $(Build.BuildId)' - task: Docker@2 + displayName: Login to ACR inputs: containerRegistry: 'volocr' command: 'login' - task: PowerShell@2 + displayName: Push images to ACR inputs: filePath: 'etc/azure/scripts/push-images.ps1' arguments: '-version $(Build.BuildId)' -- task: CmdLine@2 + +- task: Kubernetes@1 + displayName: Delete migrator job inputs: - script: 'kubectl delete job eh-az-dbmigrator --namespace eventhub' + connectionType: 'Azure Resource Manager' + azureSubscriptionEndpoint: 'volosoft (fe02ef9f-9e1c-4e40-b924-505981688dd8)' + azureResourceGroup: 'volo' + kubernetesCluster: 'volo' + namespace: 'eventhub' + command: 'delete' + arguments: 'job eh-az-dbmigrator' + secretType: 'dockerRegistry' + containerRegistryType: 'Azure Container Registry' + - task: HelmDeploy@0 + displayName: Helm deploy inputs: connectionType: 'Azure Resource Manager' azureSubscription: 'volosoft(fe02ef9f-9e1c-4e40-b924-505981688dd8)' From 5394a170eb5ef99aa7d188792e5247809bf0bdca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:55:11 +0300 Subject: [PATCH 18/23] Update Index.cshtml --- src/EventHub.Web/Pages/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventHub.Web/Pages/Index.cshtml b/src/EventHub.Web/Pages/Index.cshtml index 057ef09..834d269 100644 --- a/src/EventHub.Web/Pages/Index.cshtml +++ b/src/EventHub.Web/Pages/Index.cshtml @@ -58,7 +58,7 @@

.Net Foundation Week

- Lorem ipsum is placeholder text commonly used in the graphic... + Lorem ipsum is placeholder text commonly used in the graphic!

Join Now From 419903e25bdd47aa562e98e888e53c2af2ef2f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 17:07:50 +0300 Subject: [PATCH 19/23] change versioning format --- etc/azure/deploy-to-k8s.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 058cba4..860292e 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -1,3 +1,6 @@ +variables: + version: '$(Date:yyyyMMdd).$(Rev:r)' + trigger: none pool: @@ -8,7 +11,7 @@ steps: displayName: Build docker images inputs: filePath: 'etc/k8s/scripts/build-images.ps1' - arguments: '-version $(Build.BuildId)' + arguments: '-version $(version)' - task: Docker@2 displayName: Login to ACR @@ -20,7 +23,7 @@ steps: displayName: Push images to ACR inputs: filePath: 'etc/azure/scripts/push-images.ps1' - arguments: '-version $(Build.BuildId)' + arguments: '-version $(version)' - task: Kubernetes@1 displayName: Delete migrator job @@ -49,4 +52,4 @@ steps: chartName: 'etc/k8s/helm-chart/eventhub' releaseName: 'eh-az' valueFile: 'etc/k8s/helm-chart/eventhub/values.azure.yaml' - arguments: '--namespace eventhub --create-namespace --set global.eventHubImageVersion=$(Build.BuildId)' \ No newline at end of file + arguments: '--namespace eventhub --create-namespace --set global.eventHubImageVersion=$(version)' \ No newline at end of file From 7831c86d7dca2cfde3d7969c5ad26c7c399720af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 17:08:08 +0300 Subject: [PATCH 20/23] Update Index.cshtml --- src/EventHub.Web/Pages/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventHub.Web/Pages/Index.cshtml b/src/EventHub.Web/Pages/Index.cshtml index 834d269..b5e6042 100644 --- a/src/EventHub.Web/Pages/Index.cshtml +++ b/src/EventHub.Web/Pages/Index.cshtml @@ -40,7 +40,7 @@

.Net Foundation Week

- Lorem ipsum is placeholder text commonly used in the graphic. + Lorem ipsum is placeholder text commonly used in the graphic!!

Join Now From d56393b7a5c58114990991b2e82704d6f41de85e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 17:13:57 +0300 Subject: [PATCH 21/23] Update deploy-to-k8s.yml for Azure Pipelines --- etc/azure/deploy-to-k8s.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 860292e..e06499e 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -1,5 +1,5 @@ variables: - version: '$(Date:yyyyMMdd).$(Rev:r)' + version: $(Build.BuildNumber) trigger: none From d6caed844a09901d3ac27168ed36ca064986cd5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 17:29:43 +0300 Subject: [PATCH 22/23] Update deploy-to-k8s.yml for Azure Pipelines --- etc/azure/deploy-to-k8s.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index e06499e..ae46fb3 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -1,5 +1,5 @@ variables: - version: $(Build.BuildNumber) + version: $(Build.BuildId) trigger: none From 521b0b06ebff52d683d958d92ddb1c9461eebcd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 23:36:22 +0300 Subject: [PATCH 23/23] continue on error for delete migrator job --- etc/azure/deploy-to-k8s.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index ae46fb3..de891da 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -27,6 +27,7 @@ steps: - task: Kubernetes@1 displayName: Delete migrator job + continueOnError: true inputs: connectionType: 'Azure Resource Manager' azureSubscriptionEndpoint: 'volosoft (fe02ef9f-9e1c-4e40-b924-505981688dd8)'