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

Don't use params field, if they are nil, while cloning volumesnapshotclass #1145

Merged
merged 3 commits into from
Nov 19, 2021

Conversation

viveksinghggits
Copy link
Contributor

Change Overview

While cloning VolumeSnapshotClass, as part of #1128
we started passing params. But we should not pass params if the values
is nil, because in that case creation VolumeSnapshotClass fails with
nil not allowed.

Pull request type

Please check the type of change your PR introduces:

  • 🐛 Bugfix

Issues

  • #XXX

Test Plan

  • 💪 Manual

Updated *** with kanister commit id and then updated the image in the env where we have been facing problem to make sure things have been resolved.

While cloning `VolumeSnapshotClass`, as part of #1128
we started passing params. But we should not pass params if the values
is `nil`, because in that case creation `VolumeSnapshotClass` fails with
`nil` not allowed.
pkg/kube/snapshot/snapshot_alpha.go Outdated Show resolved Hide resolved
pkg/kube/snapshot/snapshot_beta.go Outdated Show resolved Hide resolved
Copy link
Contributor

@onkarbhat onkarbhat left a comment

Choose a reason for hiding this comment

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

LGTM

@bathina2
Copy link
Contributor

@viveksinghggits thanks for catching this.

@mergify mergify bot merged commit 5fab1bb into master Nov 19, 2021
@mergify mergify bot deleted the volsnap-params-fix branch November 19, 2021 18:43
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.

None yet

3 participants