Update chart for CSI driver

Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
This commit is contained in:
faizanahmad055
2026-01-03 19:32:43 +01:00
parent eb96bab4e0
commit c9cab4f6e0
5 changed files with 18 additions and 1 deletions

View File

@@ -162,6 +162,7 @@ func startReloader(cmd *cobra.Command, args []string) {
for k := range kube.ResourceMap {
if k == "secretproviderclasspodstatuses" {
if !options.EnableCSIIntegration {
logrus.Infof("EnableCSIIntegration is set to false, won't run secretproviderclasspodstatuses controller")
continue
}
if !kube.IsCSIInstalled {

View File

@@ -106,6 +106,7 @@ func ConfigureReloaderFlags(cmd *cobra.Command) {
cmd.PersistentFlags().BoolVar(&options.SyncAfterRestart, "sync-after-restart", false, "Sync add events after reloader restarts")
cmd.PersistentFlags().BoolVar(&options.EnablePProf, "enable-pprof", false, "Enable pprof for profiling")
cmd.PersistentFlags().StringVar(&options.PProfAddr, "pprof-addr", ":6060", "Address to start pprof server on. Default is :6060")
cmd.PersistentFlags().BoolVar(&options.EnableCSIIntegration, "enable-csi-integration", false, "Enables CSI integration. Default is :true")
}
func GetIgnoredResourcesList() (List, error) {