Skip to content

Commit

Permalink
[api] Refactor: Listener pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed Jun 16, 2022
1 parent 1986fd6 commit c3112ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/limitador_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type LimitadorSpec struct {
Version *string `json:"version,omitempty"`

// +optional
Listener Listener `json:"listener,omitempty"`
Listener *Listener `json:"listener,omitempty"`
}

// LimitadorStatus defines the observed state of Limitador
Expand Down
6 changes: 5 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

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

2 changes: 1 addition & 1 deletion controllers/limitador_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var _ = Describe("Limitador controller", func() {
Spec: limitadorv1alpha1.LimitadorSpec{
Replicas: &replicas,
Version: &version,
Listener: limitadorv1alpha1.Listener{
Listener: &limitadorv1alpha1.Listener{
HTTP: httpPort,
GRPC: grpcPort,
},
Expand Down

0 comments on commit c3112ad

Please sign in to comment.