...

Text file src/edge-infra.dev/config/pallets/edge/ctlfish/generic/patch.json

Documentation: edge-infra.dev/config/pallets/edge/ctlfish/generic

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

View as plain text