Hey. Recently I started to get `GitHub rate limit ...
# kubernetes
q
Hey. Recently I started to get
GitHub rate limit exceeded
in workspace pod. How to implement GH token? Stack:
Copy code
apiVersion: <http://pulumi.com/v1|pulumi.com/v1>
kind: Stack
metadata:
  name: utility-rds-test-2
  namespace: pulumi-kubernetes-operator
spec:
  serviceAccountName: pulumi-operator
  stack: test-labs/kobe-rds/utility-test2
  projectRepo: <https://github.com/test/infra.git>
  repoDir: stacks/kobe/rds
  branch: refs/heads/rds-operator
  gitAuth: 
    accessToken:
      type: Secret
      secret:
        name: pulumi-github-token
        key: token
  envRefs:
    PULUMI_ACCESS_TOKEN:
      type: Secret
      secret:
        name: pulumi-operator-token
        key: token
  config:
    aws:region: eu-central-1
    test: |
      {
      "env": "utility",
      "parentStack": "utility",
      "rds": [
          {
            "name": "test-oper",
            "vpc": "utility-shared-main",
            "subnets": [
              "utility-k8s-private"
            ],
            "engine": "mysql",
            "instanceClass": "db.m5.large",
            "allocatedStorage": 20,
            "environment": "development",
            "tags": {
              "Environment": "Development",
              "Project": "Operator"
            }
          }
        ]
      }
  destroyOnFinalize: true
m
You have to attach it as env var, i wish they would not depend on github packages here 😬 see also https://github.com/pulumi/pulumi/issues/12379
Copy code
apiVersion: <http://pulumi.com/v1|pulumi.com/v1>
kind: Stack
metadata:
  name: default
spec:
  serviceAccountName: pulumi-workspace
  envRefs:
    GITHUB_TOKEN:
      type: Secret
      secret:
        name: pulumi-github-token
        key: GITHUB_TOKEN