Skip to content

Commit

Permalink
fix: optional APIPlan on APIAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
jspdown authored Sep 17, 2024
1 parent 06b3c6e commit 51d57f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/hub/v1alpha1/api_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type APIAccessSpec struct {

// APIPlan defines which APIPlan will be used.
// +optional
APIPlan APIPlanReference `json:"apiPlan,omitempty"`
APIPlan *APIPlanReference `json:"apiPlan,omitempty"`

// Weight specifies the evaluation order of the plan.
// +kubebuilder:validation:XValidation:message="must be a positive number",rule="self >= 0"
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/hub/v1alpha1/crd/hub.traefik.io_apiaccesses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
properties:
apiBundles:
description: |-
APIBundles defines a set of APIBundles that will be accessible to the configured audience.
APIBundles defines a set of APIBundle that will be accessible to the configured audience.
Multiple APIAccesses can select the same APIBundles.
items:
description: APIBundleReference references an APIBundle.
Expand Down
6 changes: 5 additions & 1 deletion pkg/apis/hub/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51d57f9

Please sign in to comment.