Skip to content

Mount credentials secret to reverse proxy#473

Merged
lukeatdell merged 22 commits into
mainfrom
usr/spark/mount-credentials
Mar 5, 2025
Merged

Mount credentials secret to reverse proxy#473
lukeatdell merged 22 commits into
mainfrom
usr/spark/mount-credentials

Conversation

@lukeatdell

@lukeatdell lukeatdell commented Feb 28, 2025

Copy link
Copy Markdown
Contributor

Description

The csi-reverseproxy accesses Unisphere credentials by using a K8s API call to read them from a configmap, unlike all the other drivers, which mount a secret as a volume in the driver pod.

This feature brings the reverseproxy in line with all the other drivers – the configmap will be converted to a secret and mounted to the controller pod as a volume.

The ConfigMap functionality has been deprecated but currently remains intact for backward compatibility until it is removed in a later release.

GitHub Issues

GitHub Issue

Checklist:

  • Have you run format,vet & lint checks against your submission?
  • Have you made sure that the code compiles?
  • Did you run the unit & integration tests successfully?
  • Have you maintained at least 85% and 90% code coverage?
  • Have you commented your code, particularly in hard-to-understand areas
  • Have you done corresponding changes to the documentation
  • Did you run tests in a real Kubernetes cluster?
  • Backward compatibility is not broken

How Has This Been Tested?

cert-csi suites for both mount credentials and configmap config methods

@lukeatdell lukeatdell changed the title Updating secret format for mount credentials Mount credentials secret to reverse proxy Feb 28, 2025
Comment thread csireverseproxy/deploy/powermax-reverseproxy-secret.yaml Outdated
Comment thread csireverseproxy/deploy/powermax-reverseproxy-secret.yaml Outdated
Comment thread csireverseproxy/main.go
@falfaroc falfaroc marked this pull request as ready for review March 4, 2025 19:07
Comment thread csireverseproxy/deploy/powermax-reverseproxy-secret.yaml Outdated
falfaroc
falfaroc previously approved these changes Mar 4, 2025
xuluna
xuluna previously approved these changes Mar 4, 2025
@bharathsreekanth bharathsreekanth dismissed stale reviews from xuluna and falfaroc via 3b12431 March 4, 2025 19:51
Comment thread csireverseproxy/pkg/config/config.go
To ensure backwards compatibility, the inCluster variable will be defaulted to true. All charts
already set this to true so functionality will stay consistent
tdawe
tdawe previously approved these changes Mar 4, 2025
falfaroc
falfaroc previously approved these changes Mar 4, 2025
- removing old linting/vetting targets and shell scripts that use outdated static checkers. defer to GH actions
@lukeatdell lukeatdell dismissed stale reviews from falfaroc and tdawe via d6a5276 March 5, 2025 19:18
@github-actions

github-actions Bot commented Mar 5, 2025

Copy link
Copy Markdown
Contributor

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/csi-powermax/csireverseproxy 0.00% (ø)
github.com/dell/csi-powermax/csireverseproxy/pkg/common 0.00% (ø)
github.com/dell/csi-powermax/csireverseproxy/pkg/config 0.00% (ø)
github.com/dell/csi-powermax/csireverseproxy/pkg/config/mocks 0.00% (ø)
github.com/dell/csi-powermax/csireverseproxy/pkg/k8smock 0.00% (ø)
github.com/dell/csi-powermax/csireverseproxy/pkg/k8sutils 0.00% (ø)
github.com/dell/csi-powermax/csireverseproxy/pkg/proxy 0.00% (ø)
github.com/dell/csi-powermax/csireverseproxy/pkg/servermock 0.00% (ø)
github.com/dell/csi-powermax/csireverseproxy/pkg/utils 0.00% (ø)
github.com/dell/csi-powermax/service 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/csi-powermax/csireverseproxy/main.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/csireverseproxy/pkg/common/constants.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/csireverseproxy/pkg/config/config.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/csireverseproxy/pkg/config/mocks/config-manager.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/csireverseproxy/pkg/k8smock/k8smock.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/csireverseproxy/pkg/k8sutils/k8sutils.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/csireverseproxy/pkg/proxy/proxy.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/csireverseproxy/pkg/servermock/servermock.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/csireverseproxy/pkg/utils/locks.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/csireverseproxy/pkg/utils/utils.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/service/controller.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/service/envvars.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/service/service.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/dell/csi-powermax/csireverseproxy/main_test.go
  • github.com/dell/csi-powermax/csireverseproxy/pkg/config/config_test.go
  • github.com/dell/csi-powermax/csireverseproxy/pkg/k8smock/k8smock_test.go
  • github.com/dell/csi-powermax/csireverseproxy/pkg/k8sutils/k8sutils_test.go
  • github.com/dell/csi-powermax/csireverseproxy/pkg/proxy/proxy_test.go
  • github.com/dell/csi-powermax/csireverseproxy/pkg/servermock/servermock_test.go
  • github.com/dell/csi-powermax/csireverseproxy/pkg/utils/locks_test.go
  • github.com/dell/csi-powermax/csireverseproxy/pkg/utils/utils_test.go
  • github.com/dell/csi-powermax/service/service_unit_test.go
  • github.com/dell/csi-powermax/service/step_defs_test.go

@falfaroc falfaroc requested review from falfaroc and tdawe March 5, 2025 20:20
@lukeatdell lukeatdell merged commit 6d3b4f2 into main Mar 5, 2025
@lukeatdell lukeatdell deleted the usr/spark/mount-credentials branch March 5, 2025 21:22
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.

8 participants