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

ci: update install-snapshot script to deploy newer version of snapshotter #4438

Merged
merged 6 commits into from
Feb 15, 2024

Conversation

Madhu-1
Copy link
Collaborator

@Madhu-1 Madhu-1 commented Feb 15, 2024

Updated the install-snapshot.sh to support installing of new snapshotter version and also to enable volumegroupsnapshot flag during installation. Used kubectl_retry helper to retry if there is any failure.

updates #4435

updating csi snapshotter deployment to pull
image and rbac from latest released version.

Signed-off-by: Madhu Rajanna <[email protected]>
@mergify mergify bot added the component/testing Additional test cases or CI work label Feb 15, 2024
@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Feb 15, 2024

/test ci/centos/k8s-e2e-external-storage/1.27

@Madhu-1 Madhu-1 requested review from nixpanic and a team February 15, 2024 13:13
@Madhu-1 Madhu-1 added the ci/skip/multi-arch-build skip building on multiple architectures label Feb 15, 2024
echo "Argument already present and matching."
else
# Add the argument if it's not present
sed -i -E "/^(\s+)args:/a\ \ \ \ \ \ \ \ \ \ \ \ - $ARGUMENT" "${temp_snap_controller}"
Copy link
Member

Choose a reason for hiding this comment

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

wow, do you really need to add the \ before each space?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not required but works, updated to remove extra \ :D

Install latest version of snapshotter and also
take care of create/delete of new CRD's and
required flag for volumegroupsnapshot operation

Signed-off-by: Madhu Rajanna <[email protected]>
remove unused function from the
install-snapshot script

Signed-off-by: Madhu Rajanna <[email protected]>
canary tag is no more used in the
snapshotter yaml and latest version are
used, instead of searching for tag check
for the image name and do sed to replace
the required tag only.

Signed-off-by: Madhu Rajanna <[email protected]>
use kubectl_retry helper to avoid
intermediate failure and retry again

Signed-off-by: Madhu Rajanna <[email protected]>
with new release of snapshotter the
labels are changed, this commit uses
the new labels to list the snapshot
controller pod.

Signed-off-by: Madhu Rajanna <[email protected]>
@nixpanic nixpanic requested a review from a team February 15, 2024 17:40
@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Feb 15, 2024

@Mergifyio queue

Copy link
Contributor

mergify bot commented Feb 15, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 0a82f17

@Madhu-1 Madhu-1 added the ok-to-test Label to trigger E2E tests label Feb 15, 2024
@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.29

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.27

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.28

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.27

@ceph-csi-bot ceph-csi-bot removed the ok-to-test Label to trigger E2E tests label Feb 15, 2024
@mergify mergify bot merged commit 0a82f17 into ceph:devel Feb 15, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/skip/multi-arch-build skip building on multiple architectures component/testing Additional test cases or CI work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants