Skip to content

Commit

Permalink
controllers: remove reconcile-time validators, refactor related tests (
Browse files Browse the repository at this point in the history
…#642)

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
  • Loading branch information
joelanford committed Feb 21, 2024
1 parent 6fa2685 commit 6206def
Show file tree
Hide file tree
Showing 12 changed files with 551 additions and 685 deletions.
3 changes: 2 additions & 1 deletion api/v1alpha1/extension_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ type ExtensionSourcePackage struct {
// ExtensionSource defines the source for this Extension, right now, only a package is supported.
type ExtensionSource struct {
// A source package defined by a name, version and/or channel
Package *ExtensionSourcePackage `json:"package,omitempty"`
//+kubebuilder:validation:Required
Package *ExtensionSourcePackage `json:"package"`
}

// ExtensionSpec defines the desired state of Extension
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/olm.operatorframework.io_extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ spec:
required:
- name
type: object
required:
- package
type: object
required:
- serviceAccountName
Expand Down
223 changes: 0 additions & 223 deletions internal/controllers/admission_test.go

This file was deleted.

Loading

0 comments on commit 6206def

Please sign in to comment.