codex-storage / cs-codex-dist-tests

Distributed System Tests for Nim-Codex
4 stars 4 forks source link

Option to authenticate using Service Account #18

Open veaceslavdoina opened 1 year ago

veaceslavdoina commented 1 year ago

As for now, we are using authentication via KubeConfig at tests run.

C# library we use, support authentication using Service Accounts.

It will be very useful to implement such type of authentication which will simplify tests run. Then, we will create a single Service Account which will be specified in the Kubernetes Job manifest and app will use it.

apiVersion: batch/v1
kind: Job
metadata:
  name: cs-codex-dist-tests
  namespace: cs-codex-dist-tests
  labels:
    name: cs-codex-dist-tests
spec:
  backoffLimit: 0
  template:
    metadata:
      name: cs-codex-dist-tests
    spec:
      serviceAccountName:  cs-codex-dist-tests
      containers:
      - name: cs-codex-dist-tests
        image: codexstorage/cs-codex-dist-tests
        env:
...