Skip to content

Comments

Remove extra__kubernetes__ prefix from k8s hook extras#27021

Merged
dstandish merged 2 commits intoapache:mainfrom
astronomer:kubernetes-no-extra-prefix
Oct 22, 2022
Merged

Remove extra__kubernetes__ prefix from k8s hook extras#27021
dstandish merged 2 commits intoapache:mainfrom
astronomer:kubernetes-no-extra-prefix

Conversation

@dstandish
Copy link
Contributor

We still support connections defined the old way; but we no longer need to use this prefix.

We still support connections defined the old way; but we no longer need to use this prefix.
we needed to store them with the prefix ``extra__kubernetes__``. This method
handles the backcompat, i.e. if the extra dict contains prefixed fields.
"""
if field_name.startswith('extra_'):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we check for the exact string extra__?

@dstandish dstandish merged commit 14a4587 into apache:main Oct 22, 2022
@dstandish dstandish deleted the kubernetes-no-extra-prefix branch October 22, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants