...

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

Documentation: edge-infra.dev/config/pallets/edge/edge-agent/client/generic

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

View as plain text