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

Map PV Annotations from storageClass while restore #1653

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rakeshgm
Copy link
Member

@rakeshgm rakeshgm commented Nov 15, 2024

Map PV Annotations from storageClass while restore

@rakeshgm rakeshgm changed the title map pv annotations from storageClass while restore Map PV Annotations from storageClass while restore Nov 15, 2024
// provisionerDeletionSecretName with the values from provisionerSecretName and its namespace values.
secFromSC, exists = secretsFromSC(sc.Parameters, provisionerSecretName, provisionerSecretNamespace)
if exists {
pv.Annotations[provisionerDeletionSecretName] = secFromSC.Name
Copy link
Member

Choose a reason for hiding this comment

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

Use util.AddAnnotation to add annotations, which also helps deal with nil map to create one. the test failure is due to attempting to write to a nil map in this case. (here and in other lines that add the annotation).

Copy link
Member

@ShyamsundarR ShyamsundarR left a comment

Choose a reason for hiding this comment

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

See AddAnnotation comment

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.

2 participants