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

AWX ee_extra_env not working #1948

Closed
3 tasks done
rsdoherty opened this issue Aug 30, 2024 · 3 comments
Closed
3 tasks done

AWX ee_extra_env not working #1948

rsdoherty opened this issue Aug 30, 2024 · 3 comments

Comments

@rsdoherty
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that the AWX Operator is open source software provided for free and that I might not receive a timely response.

Bug Summary

I've just deployed a very basic AWX install via helm, and I have this as my spec:

- name: Deploy AWX
  kubernetes.core.helm:
    name: awx
    chart_ref: awx-operator/awx-operator
    release_namespace: default
    values:
      AWX:
        enabled: true
        spec:
          ee_extra_env: |
            - name: MYCUSTOMVAR
              value: foo

Yet whenever the globally available EE is launched, I do not see MYCUSTOMVAR populated in the pod spec - the environment is blank.

Is this expected? I cannot seem to find a way to have the AWX crd pass environment variables to the globally available EE's.

I do see the config when I do k get awxs -o yaml, and as a test I set ee_extra_volume_mounts with no extra_volumes and things still worked - suggesting this isn't getting passed to the container at all.

AWX Operator version

2.19.1

AWX version

24.6.1

Kubernetes platform

kubernetes

Kubernetes/Platform version

1.29.7

Modifications

no

Steps to reproduce

Expected results

Environment variables show in globally available EE as expected

Actual results

Container starts with no environment set

Additional information

No response

Operator Logs

No response

@kurokobo
Copy link
Contributor

@rsdoherty
Hi, this is expected. The globally available EE means that awx-ee container in awx-task pod, which does not mean the EE for your automation job.
If you want to pass environment variables to your automation job pod, use Extra Environment Variables in Settings > Job settings on the Web GUI, or pass AWX_TASK_ENV to your AWX CR by extra_settings or extra_settings_files.

Alternatively you can use customized Container Group with customized pod spec.

@rsdoherty
Copy link
Author

I haven't configured any further execution environments yet:

image

I'd have expected the ee_extra_env keys to show up in these?

@oraNod oraNod added the Helm label Sep 3, 2024
@oraNod
Copy link
Contributor

oraNod commented Sep 4, 2024

Hi @rsdoherty

The helm chart code has moved to a new repository, ansible/awx-operator-helm. You can find more information about this move in the recent forum post about changes to the AWX operator installation methods.

We now plan to close this issue because it is no longer relevant to the code in this repository. If you think the issue is still valid and needs to be fixed, please recreate it in the ansible/awx-operator-helm repository.

Thank you.

@oraNod oraNod closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants