mirror of
https://github.com/stakater/Reloader.git
synced 2026-02-14 18:09:50 +00:00
Added check to see if CSI CRDs are installed before running controller
This commit is contained in:
@@ -179,8 +179,14 @@ func startReloader(cmd *cobra.Command, args []string) {
|
||||
|
||||
var controllers []*controller.Controller
|
||||
for k := range kube.ResourceMap {
|
||||
if k == "secretproviderclasspodstatuses" && !options.EnableCSIIntegration {
|
||||
continue
|
||||
if k == "secretproviderclasspodstatuses" {
|
||||
if !options.EnableCSIIntegration {
|
||||
continue
|
||||
}
|
||||
if !kube.IsCSIInstalled {
|
||||
logrus.Infof("Can't run CSI controller as CSI CRDs are not installed")
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
if ignoredResourcesList.Contains(k) || (len(namespaceLabelSelector) == 0 && k == "namespaces") {
|
||||
|
||||
Reference in New Issue
Block a user