Skip to content

Commit

Permalink
refactor: v1beta3 as storage version
Browse files Browse the repository at this point in the history
Signed-off-by: KevFan <[email protected]>
  • Loading branch information
KevFan committed Oct 3, 2024
1 parent 7df9885 commit ae2dc81
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ report-benchmarks:
cover: ## Shows test coverage
go tool cover -html=cover.out

AUTHCONFIG_VERSION ?= v1beta2
AUTHCONFIG_VERSION ?= v1beta3
VERBOSE ?= 0
e2e: ## Runs the end-to-end tests on a local environment setup
$(MAKE) local-setup NAMESPACE=authorino KIND_CLUSTER_NAME=authorino-e2e AUTHORINO_IMAGE=$(AUTHORINO_IMAGE) TLS_ENABLED=$(TLS_ENABLED) OPERATOR_BRANCH=$(OPERATOR_BRANCH) AUTHORINO_MANIFESTS=$(AUTHORINO_MANIFESTS) AUTHORINO_INSTANCE=$(AUTHORINO_INSTANCE) ENVOY_OVERLAY=$(ENVOY_OVERLAY) DEPLOY_KEYCLOAK=1 FF=1
Expand Down
1 change: 0 additions & 1 deletion api/v1beta2/auth_config_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ type StatusConditionType string
// AuthConfig is the schema for Authorino's AuthConfig API
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.summary.ready`,description="Ready for all hosts"
// +kubebuilder:printcolumn:name="Hosts",type=string,JSONPath=`.status.summary.numHostsReady`,description="Number of hosts ready"
// +kubebuilder:printcolumn:name="Authentication",type=integer,JSONPath=`.status.summary.numIdentitySources`,description="Number of trusted identity sources",priority=2
Expand Down
1 change: 1 addition & 0 deletions api/v1beta3/auth_config_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ type StatusConditionType string
// AuthConfig is the schema for Authorino's AuthConfig API
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.summary.ready`,description="Ready for all hosts"
// +kubebuilder:printcolumn:name="Hosts",type=string,JSONPath=`.status.summary.numHostsReady`,description="Number of hosts ready"
// +kubebuilder:printcolumn:name="Authentication",type=integer,JSONPath=`.status.summary.numIdentitySources`,description="Number of trusted identity sources",priority=2
Expand Down
2 changes: 1 addition & 1 deletion controllers/auth_config_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"sort"
"sync"

api "github.com/kuadrant/authorino/api/v1beta2"
api "github.com/kuadrant/authorino/api/v1beta3"
"github.com/kuadrant/authorino/pkg/auth"
"github.com/kuadrant/authorino/pkg/evaluators"
authorization_evaluators "github.com/kuadrant/authorino/pkg/evaluators/authorization"
Expand Down
2 changes: 1 addition & 1 deletion controllers/auth_config_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

api "github.com/kuadrant/authorino/api/v1beta2"
api "github.com/kuadrant/authorino/api/v1beta3"
"github.com/kuadrant/authorino/pkg/evaluators"
"github.com/kuadrant/authorino/pkg/httptest"
"github.com/kuadrant/authorino/pkg/index"
Expand Down
2 changes: 1 addition & 1 deletion controllers/auth_config_status_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
"strings"

api "github.com/kuadrant/authorino/api/v1beta2"
api "github.com/kuadrant/authorino/api/v1beta3"
"github.com/kuadrant/authorino/pkg/log"
"github.com/kuadrant/authorino/pkg/utils"

Expand Down
2 changes: 1 addition & 1 deletion controllers/auth_config_status_updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

api "github.com/kuadrant/authorino/api/v1beta2"
api "github.com/kuadrant/authorino/api/v1beta3"
"github.com/kuadrant/authorino/pkg/log"

"github.com/golang/mock/gomock"
Expand Down
4 changes: 2 additions & 2 deletions install/crd/authorino.kuadrant.io_authconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2313,7 +2313,7 @@ spec:
type: object
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -4615,6 +4615,6 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}
4 changes: 2 additions & 2 deletions install/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2544,7 +2544,7 @@ spec:
type: object
type: object
served: true
storage: true
storage: false
subresources:
status: {}
- additionalPrinterColumns:
Expand Down Expand Up @@ -5078,7 +5078,7 @@ spec:
type: object
type: object
served: true
storage: false
storage: true
subresources:
status: {}
---
Expand Down

0 comments on commit ae2dc81

Please sign in to comment.