...

Text file src/edge-infra.dev/config/components/google-app-creds/deployment-patch/patch.json

Documentation: edge-infra.dev/config/components/google-app-creds/deployment-patch

     1[
     2  {
     3    "op": "add",
     4    "path": "/spec/template/spec/containers/0/volumeMounts",
     5    "value": []
     6  },
     7  {
     8    "op": "add",
     9    "path": "/spec/template/spec/containers/0/env",
    10    "value": []
    11  },
    12  {
    13    "op": "add",
    14    "path": "/spec/template/spec/volumes",
    15    "value": []
    16  },
    17  {
    18    "op": "add",
    19    "path": "/spec/template/spec/containers/0/volumeMounts/-",
    20    "value": {
    21      "name": "gcp-api-key",
    22      "readOnly": true,
    23      "mountPath": "/opt/secrets/gcp-api-key"
    24    }
    25  },
    26  {
    27    "op": "add",
    28    "path": "/spec/template/spec/volumes/-",
    29    "value": {
    30      "name": "gcp-api-key",
    31      "secret": {
    32        "secretName": "gcp-api-key"
    33      }
    34    }
    35  },
    36  {
    37    "op": "add",
    38    "path": "/spec/template/spec/containers/0/env/-",
    39    "value": {
    40      "name": "GOOGLE_APPLICATION_CREDENTIALS",
    41      "value": "/opt/secrets/gcp-api-key/key.json"
    42    }
    43  }
    44]

View as plain text