Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: dmitry.lopatin <[email protected]>
  • Loading branch information
LopatinDmitr committed Oct 27, 2024
1 parent 8a9dbb5 commit 893e4d8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 161 deletions.
153 changes: 0 additions & 153 deletions images/virtualization-artifact/pkg/controller/vd/internal/inuse.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package validators
package validator

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package validators
package validator

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package validators
package validator

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ func NewController(
internal.NewDeletionHandler(sources),
internal.NewAttacheeHandler(mgr.GetClient()),
internal.NewStatsHandler(stat, importer, uploader),
internal.NewInUseHandler(mgr.GetClient()),
)

vdController, err := controller.New(ControllerName, mgr, controller.Options{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"

"github.com/deckhouse/virtualization-controller/pkg/controller/vd/internal/validators"
"github.com/deckhouse/virtualization-controller/pkg/controller/vd/internal/validator"
"github.com/deckhouse/virtualization-controller/pkg/logger"
virtv2 "github.com/deckhouse/virtualization/api/core/v1alpha2"
)
Expand All @@ -43,9 +43,9 @@ type Validator struct {
func NewValidator(client client.Client, logger *slog.Logger) *Validator {
return &Validator{
validators: []VirtualDiskValidator{
validators.NewPVCSizeValidator(client),
validators.NewSpecChangesValidator(),
validators.NewISOSourceValidator(client),
validator.NewPVCSizeValidator(client),
validator.NewSpecChangesValidator(),
validator.NewISOSourceValidator(client),
},
logger: logger.With("webhook", "validator"),
}
Expand Down

0 comments on commit 893e4d8

Please sign in to comment.