Skip to content

Commit

Permalink
Remove labels from service objects in TestDotnet_Guestbook (#3500)
Browse files Browse the repository at this point in the history
<!--Thanks for your contribution. See [CONTRIBUTING](CONTRIBUTING.md)
    for Pulumi's contribution guidelines.

    Help us merge your changes more quickly by adding more details such
    as labels, milestones, and reviewers.-->

### Proposed changes

Test failures identified in #3480 surfaced a regression in upstream
pulumi/pulumi. The usage of the deployment's labels as the service
object's label is unnecessary, since it is empty and can be removed.
This PR removes them to unblock CI.

### Related issues (optional)

Closes: #3480
  • Loading branch information
rquitales authored Feb 19, 2025
1 parent 744012c commit e67c0c1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/sdk/dotnet/guestbook/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ static Task<int> Main(string[] args)

var redisMasterService = new Pulumi.Kubernetes.Core.V1.Service("redis-master", new ServiceArgs
{
Metadata = new ObjectMetaArgs
{
Labels = redisMasterDeployment.Metadata.Apply(metadata => metadata.Labels),
},
Spec = new ServiceSpecArgs
{
Ports =
Expand Down Expand Up @@ -152,10 +148,6 @@ static Task<int> Main(string[] args)

var redisReplicaService = new Pulumi.Kubernetes.Core.V1.Service("redis-replica", new ServiceArgs
{
Metadata = new ObjectMetaArgs
{
Labels = redisReplicaDeployment.Metadata.Apply(metadata => metadata.Labels),
},
Spec = new ServiceSpecArgs
{
Ports =
Expand Down Expand Up @@ -231,10 +223,6 @@ static Task<int> Main(string[] args)

var frontendService = new Pulumi.Kubernetes.Core.V1.Service("frontend", new ServiceArgs
{
Metadata = new ObjectMetaArgs
{
Labels = frontendDeployment.Metadata.Apply(metadata => metadata.Labels),
},
Spec = new ServiceSpecArgs
{
Type = isMiniKube ? "ClusterIP" : "LoadBalancer",
Expand Down

0 comments on commit e67c0c1

Please sign in to comment.