Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <[email protected]>
  • Loading branch information
duckhawk committed Apr 21, 2024
1 parent a566dae commit 8ad6f5a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions images/webhooks/src/validators/mcValidator.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
/*
Copyright 2024 Flant JSC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package validators

import (
"context"
"encoding/json"
"github.com/deckhouse/deckhouse/deckhouse-controller/pkg/apis/deckhouse.io/v1alpha1"
dhctl "github.com/deckhouse/deckhouse/deckhouse-controller/pkg/apis/deckhouse.io/v1alpha1"
"github.com/go-logr/logr"
"k8s.io/api/admission/v1beta1"
"k8s.io/klog/v2"
Expand Down Expand Up @@ -69,7 +85,7 @@ func MCValidate(w http.ResponseWriter, r *http.Request) {
klog.Fatal(err.Error())
}

objs := v1alpha1.ModuleConfigList{}
objs := dhctl.ModuleConfigList{}

err = cl.List(ctx, &objs)

Expand Down
2 changes: 1 addition & 1 deletion openapi/config-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ properties:
default: INFO
enableThinProvisioning:
type: boolean
default: true
default: false
description: Allow thin LVM volumes usage

0 comments on commit 8ad6f5a

Please sign in to comment.