Skip to content

Conversation

@pkalsi97
Copy link
Contributor

Summary

This change adds the annotation kubectl.kubernetes.io/default-container: integration to pod templates for the following:

  • Deployment
  • Knative Service
  • CronJob

This allows kubectl to automatically target the integration container.
Closes #2200

Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution. I will give a deeper look asap. In the while, we better use a constant for the annotation.

@github-actions
Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 51.5% to 51.6% (+0.1%)

@pkalsi97
Copy link
Contributor Author

@squakez I have replaced the hardcoded annotation string with defaultContainerAnnotation constant.

Regarding CI, Kafka test was failing, I remember you mentioned once it acts flaky sometimes.

@pkalsi97 pkalsi97 requested a review from squakez December 12, 2025 11:16
@github-actions
Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 51.5% to 51.6% (+0.1%)

Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

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

Cool work! +1 for the unit test!

@pkalsi97
Copy link
Contributor Author

@squakez
Thanks. Actually the approach to write test first and then make changes to make it work helped a lot 😁.

@squakez squakez merged commit ac62461 into apache:main Dec 13, 2025
10 of 11 checks passed
@pkalsi97 pkalsi97 deleted the feat/2200 branch December 13, 2025 12:45
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.

Label Integration container as default container

2 participants