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

Add support to specify different annotation for the task and web deployments in AWX operator #1351

Conversation

djyasin
Copy link
Member

@djyasin djyasin commented Apr 11, 2023

SUMMARY

Fixes #1331

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
Test-Case Scenarios
  • 4 Test cases total
    • No annotations
      • Web and task should deploy successfully with no additional annotations
    • Just web_annotations
      • Only web deployment has custom annotations, matches what was set
        • Added example from defaults to spec, checked web deployment to ensure they were present, then checked other deployments to be sure they were not there.
    • Just task_annotations
      • Only task deployment has custom annotations, matches what was set
    • Common annotations for both deployments
      • Both deployments have common annotations
    • Override scenario, have web_annotations, task _annotations, and annotations
      • Ensure these remain distinct

@djyasin djyasin marked this pull request as ready for review April 13, 2023 19:02
@TheRealHaoLiu
Copy link
Member

please update x-descriptor for the ClusterServiceVersion resource

example

- displayName: Annotations
path: annotations
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- urn:alm:descriptor:com.tectonic.ui:hidden

@@ -184,6 +184,18 @@ web_affinity: {}
# my.annotation/2: value2
annotations: ''

# Add annotations to awx task pods. Specify as literal block. E.g.:
Copy link
Member

Choose a reason for hiding this comment

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

s/Add/Override/

@TheRealHaoLiu TheRealHaoLiu force-pushed the 1331_Add_support_to_specify_different_annotation_for_task_and_web_deployments branch 2 times, most recently from e2ea117 to 5faca19 Compare April 17, 2023 19:57
- add web_annotations to override annotations for web pods
- add task_annotations to override annotations for task pods
@TheRealHaoLiu TheRealHaoLiu force-pushed the 1331_Add_support_to_specify_different_annotation_for_task_and_web_deployments branch from 5faca19 to e542158 Compare April 17, 2023 20:07
Copy link
Contributor

@jjwatt jjwatt left a comment

Choose a reason for hiding this comment

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

Paired with @djyasin @TheRealHaoLiu @gamuniz coding, debugging and testing. LGTM 🤌

@djyasin djyasin merged commit e1e97a1 into ansible:devel Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to specify different annotation for the task and web deployments in AWX operator 2.x.x
5 participants