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

pass volumes/volume-mounts and env-vars through to gitsync containers #456

Merged
merged 7 commits into from
Jun 21, 2024

Conversation

adwk67
Copy link
Member

@adwk67 adwk67 commented Jun 20, 2024

Description

See https://github.com/orgs/stackabletech/discussions/49.
Also part of stackabletech/issues#548.

This is to enable SSH-usage using volumes/volumeMounts/envOverrides (which should be available anyway): incorporating this into the CRD is not part of this ticket.

CI tests 🟢 https://ci.stackable.tech/view/02%20Operator%20Tests%20(custom)/job/airflow-operator-it-custom/136/

OKD 🟢

--- PASS: kuttl (806.00s)
    --- PASS: kuttl/harness (0.00s)
        --- PASS: kuttl/harness/smoke_airflow-2.8.1_openshift-true_executor-kubernetes (215.72s)
        --- PASS: kuttl/harness/cluster-operation_airflow-latest-2.8.1_openshift-true (269.89s)
        --- PASS: kuttl/harness/logging_airflow-2.8.1_openshift-true (188.91s)
        --- PASS: kuttl/harness/orphaned-resources_airflow-latest-2.8.1_openshift-true (176.65s)
        --- PASS: kuttl/harness/ldap_airflow-latest-2.8.1_ldap-authentication-server-verification-tls_openshift-true_executor-kubernetes (195.68s)
        --- PASS: kuttl/harness/mount-dags-gitsync_airflow-latest-2.8.1_openshift-true_executor-kubernetes (223.35s)
        --- PASS: kuttl/harness/mount-dags-configmap_airflow-latest-2.8.1_openshift-true_executor-kubernetes (144.86s)
        --- PASS: kuttl/harness/resources_airflow-latest-2.8.1_openshift-true (127.48s)

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

Reviewer

Acceptance

@adwk67 adwk67 changed the title pass volumes/volume-monuts and env-vars through to gitsync containers pass volumes/volume-mounts and env-vars through to gitsync containers Jun 20, 2024
@adwk67 adwk67 self-assigned this Jun 20, 2024
@adwk67 adwk67 marked this pull request as ready for review June 20, 2024 12:14
@razvan razvan self-requested a review June 21, 2024 07:36
Copy link
Member

@razvan razvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments. Happy to approve after you respond.

rust/operator-binary/src/env_vars.rs Show resolved Hide resolved
rust/operator-binary/src/env_vars.rs Show resolved Hide resolved
tests/templates/kuttl/mount-dags-gitsync/31-assert.yaml.j2 Outdated Show resolved Hide resolved
razvan
razvan previously approved these changes Jun 21, 2024
@adwk67 adwk67 enabled auto-merge June 21, 2024 09:44
@adwk67 adwk67 added this pull request to the merge queue Jun 21, 2024
Merged via the queue into main with commit 490684c Jun 21, 2024
32 checks passed
@adwk67 adwk67 deleted the fix/gitsync-overrides branch June 21, 2024 09:56
@PaulienVa
Copy link

@adwk67 Thank you lots for merging this so fast! when will this be released?

@adwk67
Copy link
Member Author

adwk67 commented Jun 24, 2024

You can use the nightly version of the operator chart already (version e.g. airflow-operator:0.0.0-dev). The next release (24.7) is due by the end of next month.

@lfrancke
Copy link
Member

Is there anything to document here?

@adwk67
Copy link
Member Author

adwk67 commented Jun 26, 2024

This was a bugfix as they should have been passed through anyway. Now the code hopefully matches the docs :)

@PaulienVa
Copy link

@adwk67 we are testing the nightly atm and it is not working yet.

We are connecting the git-sync container through https, so we need to use some certificates.
Again; for the webserver and the scheduler it works perfectly fine. However when starting off a DAG with a kubernetesExecutor the property http.sslCAInfo configured like documented here, using the gitSyncConf in the AirflowCluster Resource does not get propagated through the git-sync container of my kubernetes Executor. Hence my DAGs cannot connect to git and do not run.

Is it possible to fix this in the shortest terms; this still is an inconsistent state of the operator. (webserver and scheduler working fine, executors not)

@razvan
Copy link
Member

razvan commented Jul 16, 2024

@adwk67 we are testing the nightly atm and it is not working yet.

Hey, are looking into this.

Would you mind in the meantime, opening a new issue and providing the exact definition of the AirflowCluster object ?

Thank you.

@PaulienVa
Copy link

Will do! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants