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

Ensure that the fields mentioned in samples are configurable. #162

Merged
merged 5 commits into from
Feb 14, 2023

Conversation

karthikk92
Copy link
Collaborator

@karthikk92 karthikk92 commented Feb 10, 2023

Ensure that the fields mentioned in samples are configurable.

Fixed issue:

  • PV creation is not processed for csi-powerstore installed using csm-operator

  • Added checks to validate secrets.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#613

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have maintained backward compatibility

log.Debugw("preCheck", "secrets", len(secrets))
return nil
}

// ModifyPowerstoreCR -
func ModifyPowerstoreCR(YamlString string, cr csmv1.ContainerStorageModule, file_type string) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please maintain the naming convention for variables

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Taken care

nfsacls := ""
healthmonitor_controller := ""
chap := ""
healthmonitor_node := ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above for all the variables declared from Line No 84-89

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

taken care

@rensyct
Copy link
Contributor

rensyct commented Feb 13, 2023

@karthikk92 , Please ensure to rebase your branch and also fix the linting issues

@karthikk92 karthikk92 force-pushed the configPar branch 3 times, most recently from 67af051 to 49db8c5 Compare February 13, 2023 16:15
- name: X_CSI_POWERSTORE_CONFIG_PATH
value: /powerstore-config/config
- name: X_CSI_POWERSTORE_CONFIG_PARAMS_PATH
value: /powerstore-config-params/driver-config-params.yaml
- name: GOPOWERSTORE_DEBUG
value: "true"
- name: X_CSI_HEALTH_MONITOR_ENABLED
value: "false"
value: "<X_CSI_HEALTH_MONITOR_ENABLED>"
Copy link
Contributor

Choose a reason for hiding this comment

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

@karthikk92 , Do we need quotes 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.

taken care

@karthikk92
Copy link
Collaborator Author

@karthikk92 , Please ensure to rebase your branch and also fix the linting issues

taken care

mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi
mountPropagation: "Bidirectional"
- name: pods-path
mountPath: /var/lib/kubelet/pods
value: "false"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have value for volumeMounts. @kk3 please check

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

taken care

- name: X_CSI_POWERSTORE_CONFIG_PATH
value: /powerstore-config/config
- name: X_CSI_POWERSTORE_CONFIG_PARAMS_PATH
value: /powerstore-config-params/driver-config-params.yaml
- name: GOPOWERSTORE_DEBUG
value: "true"
- name: X_CSI_HEALTH_MONITOR_ENABLED
value: "<X_CSI_HEALTH_MONITOR_ENABLED>"
volumeMounts:
Copy link
Contributor

Choose a reason for hiding this comment

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

@kk3, please check if volumeMounts section is duplicated in this file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

taken care

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.

4 participants