8 writes to Labels
Aspire.Hosting.Kubernetes (7)
Extensions\ResourceExtensions.cs (7)
21
Labels
= context.Labels.ToDictionary(),
50
Labels
= context.Labels.ToDictionary(),
75
Labels
= context.Labels.ToDictionary(),
109
Labels
= context.Labels.ToDictionary(),
141
Labels
= context.Labels.ToDictionary(),
192
Labels
= context.Labels.ToDictionary(),
476
Labels
= context.Labels.ToDictionary(),
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
183
Metadata = { Name = "myapp-rollout",
Labels
= serviceResource.Labels.ToDictionary() },
9 references to Labels
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
96
serviceAccount.Metadata.
Labels
["azure.workload.identity/use"] = "true";
116
podTemplate.Metadata.
Labels
["azure.workload.identity/use"] = "true";
Aspire.Hosting.Kubernetes (2)
KubernetesManifestResource.cs (1)
52
Metadata.
Labels
[key] = value;
KubernetesResource.cs (1)
141
resource.Metadata.
Labels
.TryAdd(label.Key, label.Value);
Aspire.Hosting.Kubernetes.Tests (5)
KubernetesPublisherTests.cs (5)
1987
claim.Metadata.
Labels
["example.com/retention"] = "retain";
1999
Assert.Equal("retain", claim.Metadata.
Labels
["example.com/retention"]);
2133
claim.Metadata.
Labels
["stage"] = "first";
2137
Assert.Equal("first", claim.Metadata.
Labels
["stage"]);
2138
claim.Metadata.
Labels
["stage"] = "second";