Uploaded image for project: 'Maistra'
  1. Maistra
  2. MAISTRA-755

Allow running operator locally without extracting serviceaccount token to local filesystem

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • maistra-rc1
    • None
    • operator
    • None
    • RC1

      Currently, the operator reads the operator's namespace from `/var/run/secrets/kubernetes.io/serviceaccount/namespace`. If you try to run the operator locally, you need to create that file.

      The serviceaccount token does not need to be in the same directory, since the operator already supports specifying a kubeconfig file through either `--kubeconfig` or the `KUBECONFIG` environment variable.

      Let's add the option of specifying the operator namespace through the environment variable `POD_NAMESPACE` so we can easily run it locally without having to extract the default token secret to the local filesystem.

            mluksa@redhat.com Marko Luksa
            mluksa@redhat.com Marko Luksa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: