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(),
113
Labels
= context.Labels.ToDictionary(),
150
Labels
= context.Labels.ToDictionary(),
201
Labels
= context.Labels.ToDictionary(),
485
Labels
= context.Labels.ToDictionary(),
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
685
Metadata = { Name = "myapp-rollout",
Labels
= serviceResource.Labels.ToDictionary() },
9 references to Labels
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
95
serviceAccount.Metadata.
Labels
["azure.workload.identity/use"] = "true";
115
podTemplate.Metadata.
Labels
["azure.workload.identity/use"] = "true";
Aspire.Hosting.Kubernetes (2)
KubernetesManifestResource.cs (1)
52
Metadata.
Labels
[key] = value;
KubernetesResource.cs (1)
140
resource.Metadata.
Labels
.TryAdd(label.Key, label.Value);
Aspire.Hosting.Kubernetes.Tests (5)
KubernetesPublisherTests.cs (5)
2577
claim.Metadata.
Labels
["example.com/retention"] = "retain";
2589
Assert.Equal("retain", claim.Metadata.
Labels
["example.com/retention"]);
2723
claim.Metadata.
Labels
["stage"] = "first";
2727
Assert.Equal("first", claim.Metadata.
Labels
["stage"]);
2728
claim.Metadata.
Labels
["stage"] = "second";