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 for CRD upgrade with Helm pre-upgrade hook #526

Merged
merged 2 commits into from
May 22, 2023

Conversation

ykulazhenkov
Copy link
Collaborator

This MR contains two changes:

  1. Add CRDs for network-operator and sriov-network-operator to network-operator image
  2. Add helm pre-upgrade hook to automatically apply CRDs

Dockerfile Outdated

# Add helm chart DIR to get CRDs from it
COPY deployment/network-operator chart
# Update helm dependencies and copy CRDs from them
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: there is no update of helm dependencies here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct. I updated the docstring. Update here will be required after we will upgrade the version of the NFD chart

Dockerfile Outdated Show resolved Hide resolved
@@ -183,22 +183,6 @@ helm search repo mellanox/network-operator -l

> __NOTE__: add `--devel` option if you want to list beta releases as well

### Download CRDs for the specific release
Copy link
Collaborator

Choose a reason for hiding this comment

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

Im thinking we should still keep a section about upgrading CRDs.

we should have two subsections

  1. manual upgrade (what we have here)
  2. automatic upgrade using helm chart by setting .Values.upgradeCRDs to true

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed this section to keep info about manual process

@ykulazhenkov ykulazhenkov force-pushed the auto-crd-upgrade branch 3 times, most recently from 06a8774 to 182de23 Compare May 16, 2023 11:49
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
@ykulazhenkov
Copy link
Collaborator Author

ykulazhenkov commented May 17, 2023

Latest released kubectl has known security issue which is detected by image_scan job. Need to wait for new kubectl release (the issue is already fixed in master)

@ykulazhenkov ykulazhenkov changed the title Add support for CRD upgrade with Helm pre-upgrade hook [DNM] Add support for CRD upgrade with Helm pre-upgrade hook May 17, 2023
@rollandf rollandf added the on hold This enhancement is currently on hold pending additional clarification and evaluation label May 17, 2023
@ykulazhenkov
Copy link
Collaborator Author

/retest-image_scan

@ykulazhenkov ykulazhenkov changed the title [DNM] Add support for CRD upgrade with Helm pre-upgrade hook Add support for CRD upgrade with Helm pre-upgrade hook May 22, 2023
@ykulazhenkov ykulazhenkov removed the on hold This enhancement is currently on hold pending additional clarification and evaluation label May 22, 2023
@adrianchiris adrianchiris merged commit db60a32 into Mellanox:master May 22, 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.

None yet

3 participants