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)
179
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)
1804
claim.Metadata.
Labels
["example.com/retention"] = "retain";
1816
Assert.Equal("retain", claim.Metadata.
Labels
["example.com/retention"]);
1950
claim.Metadata.
Labels
["stage"] = "first";
1954
Assert.Equal("first", claim.Metadata.
Labels
["stage"]);
1955
claim.Metadata.
Labels
["stage"] = "second";