From 75feaca673441d190e97bbe5af3dc25ac16a5bab Mon Sep 17 00:00:00 2001 From: Robert E Date: Fri, 16 Aug 2024 13:26:34 +1000 Subject: [PATCH] Update applied-manifest --- .../Plumbing/ServiceMessages/ServiceMessageNames.cs | 8 +++++++- .../Commands/Executors/GatherAndApplyRawYamlExecutor.cs | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/source/Calamari.Common/Plumbing/ServiceMessages/ServiceMessageNames.cs b/source/Calamari.Common/Plumbing/ServiceMessages/ServiceMessageNames.cs index cb3f1d2b1..4190d370f 100644 --- a/source/Calamari.Common/Plumbing/ServiceMessages/ServiceMessageNames.cs +++ b/source/Calamari.Common/Plumbing/ServiceMessages/ServiceMessageNames.cs @@ -55,7 +55,13 @@ public static class CalamariDeploymentMetric public static class Kubernetes { - public const string AppliedManifest = "k8s-applied-manifest"; + + + public static class AppliedManifest + { + public const string Name = "k8s-applied-manifest"; + public const string Yaml = "yaml"; + } public const string ResourceStatus = "k8s-status"; } } diff --git a/source/Calamari/Kubernetes/Commands/Executors/GatherAndApplyRawYamlExecutor.cs b/source/Calamari/Kubernetes/Commands/Executors/GatherAndApplyRawYamlExecutor.cs index 6a5b9bafc..3f9b216da 100644 --- a/source/Calamari/Kubernetes/Commands/Executors/GatherAndApplyRawYamlExecutor.cs +++ b/source/Calamari/Kubernetes/Commands/Executors/GatherAndApplyRawYamlExecutor.cs @@ -141,10 +141,10 @@ IEnumerable ApplyBatchAndReturnResourceIdentifiers(RunningDe var updatedDocument = serializer.Serialize(rootNode); - log.WriteServiceMessage(new ServiceMessage(ServiceMessageNames.Kubernetes.AppliedManifest, + log.WriteServiceMessage(new ServiceMessage(ServiceMessageNames.Kubernetes.AppliedManifest.Name, new Dictionary { - { ServiceMessageNames.SetVariable.ValueAttribute, updatedDocument } + { ServiceMessageNames.Kubernetes.AppliedManifest.Yaml, updatedDocument } })); } }