Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator should error out when credentialsSecret is missing #292

Open
sbernauer opened this issue Jun 27, 2023 · 1 comment
Open

Operator should error out when credentialsSecret is missing #292

sbernauer opened this issue Jun 27, 2023 · 1 comment
Assignees
Labels

Comments

@sbernauer
Copy link
Member

Affected version

0.0.0-dev

Current and expected behavior

When spec.clusterConfig.credentialsSecret points to a non-existent Secret the operator should error out, currently it just does not apply a Job manifests, no error is shown.
At least the following code is affected:

Possible solution

No response

Additional context

---
apiVersion: airflow.stackable.tech/v1alpha1
kind: AirflowCluster
metadata:
  name: airflow2
spec:
  image:
    productVersion: 2.6.1
    stackableVersion: 0.0.0-dev
  clusterConfig:
    executor: CeleryExecutor
    loadExamples: false
    exposeConfig: false
    credentialsSecret: simple-airflow-credentials # <<< Does not exist
    dagsGitSync:
      - repo: https://github.com/stackabletech/XXX
        branch: "main"
        gitFolder: "airflow_dags"
        depth: 10
        wait: 20
        gitSyncConf:
          --rev: HEAD
  webservers:
    roleGroups:
      default:
        replicas: 1
  workers:
    roleGroups:
      default:
        replicas: 2
  schedulers:
    roleGroups:
      default:
        replicas: 1

Environment

No response

Would you like to work on fixing this bug?

None

@Maleware Maleware self-assigned this Jun 27, 2023
@Maleware
Copy link
Contributor

#293 fixed by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants