I started seeing these warnings on all of our `app...
# kubernetes
r
I started seeing these warnings on all of our
apps/v1
resources some time ago:
Copy code
warning: ignoring user-specified value for internal annotation "<http://pulumi.com/autonamed|pulumi.com/autonamed>"
I thought it was because our Pulumi versions were out of date, but updated now (and ran
pulumi up
on the new update), but still seeing the warnings. We are not setting the
<http://pulumi.com/autonamed|pulumi.com/autonamed>
annotation, and we're using auto-naming everywhere. Here's an example of one of the apps with warnings:
Copy code
const provider = new k8s.Provider('dm-k8s-provider', {
  kubeconfig,
});

const labels = {
  app: 'dm-cron',
  'scrape-metrics': String(true),
};

export const cronApp = new k8s.apps.v1.Deployment('dm-cron-app', {
  metadata: { labels },
  spec: {
    strategy: { type: 'Recreate' },
    replicas: 1,
    selector: { matchLabels: labels },
    template: {
      metadata: { labels },
      spec: {
        nodeSelector: {
          '<http://cloud.google.com/gke-nodepool|cloud.google.com/gke-nodepool>': nodePools.misc.name,
        },
        serviceAccountName: dmAppServiceAccountName,
        imagePullSecrets,
        containers: [ {
          name: 'dm-cron-app-container',
          image: image.imageName,
          env: environmentVariables,
          command: [ 'yarn', 'workspace', 'cron', 'start' ],
          ports: [ dmMetricsPort ],
        } ],
      },
    },
  },
}, {
  provider,
});
Using Pulumi CLI v3.78.1,
@pulumi/pulumi
v3.78.1,
@pulumi/kubernetes
v4.1.1