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 } })); } }