Skip to content

Commit a0a277f

Browse files
authored
[controller] Fix version add in module-config (#70)
Signed-off-by: Vasily Oleynikov <[email protected]>
1 parent 6d1e776 commit a0a277f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

images/webhooks/src/handlers/nscValidator.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package handlers
33
import (
44
"context"
55
"encoding/json"
6+
mc "webhooks/api"
67

78
cn "github.com/deckhouse/csi-nfs/api/v1alpha1"
89
"github.com/slok/kubewebhook/v2/pkg/model"
@@ -11,7 +12,6 @@ import (
1112
"k8s.io/apimachinery/pkg/types"
1213
"k8s.io/klog/v2"
1314
"sigs.k8s.io/controller-runtime/pkg/client"
14-
mc "webhooks/api"
1515
)
1616

1717
const (
@@ -76,6 +76,7 @@ func NSCValidate(ctx context.Context, arReview *model.AdmissionReview, obj metav
7676
"settings": map[string]interface{}{
7777
"v3support": true,
7878
},
79+
"version": "1",
7980
},
8081
})
8182
if err != nil {
@@ -93,6 +94,7 @@ func NSCValidate(ctx context.Context, arReview *model.AdmissionReview, obj metav
9394
"settings": map[string]interface{}{
9495
"v3support": false,
9596
},
97+
"version": "1",
9698
},
9799
})
98100
if err != nil {

0 commit comments

Comments
 (0)