Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
gofmt
  • Loading branch information
xtineskim committed Oct 21, 2024
1 parent fbcdff8 commit 56f3621
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ import (

// Call init function for the providers
_ "github.com/kubernetes-sigs/ingress2gateway/pkg/i2gw/providers/apisix"
_ "github.com/kubernetes-sigs/ingress2gateway/pkg/i2gw/providers/cilium"
_ "github.com/kubernetes-sigs/ingress2gateway/pkg/i2gw/providers/gce"
_ "github.com/kubernetes-sigs/ingress2gateway/pkg/i2gw/providers/ingressnginx"
_ "github.com/kubernetes-sigs/ingress2gateway/pkg/i2gw/providers/istio"
_ "github.com/kubernetes-sigs/ingress2gateway/pkg/i2gw/providers/kong"
_ "github.com/kubernetes-sigs/ingress2gateway/pkg/i2gw/providers/openapi3"
_ "github.com/kubernetes-sigs/ingress2gateway/pkg/i2gw/providers/cilium"

// Call init for notifications
_ "github.com/kubernetes-sigs/ingress2gateway/pkg/i2gw/notifications"
Expand Down
2 changes: 1 addition & 1 deletion pkg/i2gw/providers/cilium/cilium.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type Provider struct {
resourcesToIRConverter *resourcesToIRConverter
}

// NewProvider constructs and returns the apisix implementation of i2gw.Provider.
// NewProvider constructs and returns the cilium implementation of i2gw.Provider.
func NewProvider(conf *i2gw.ProviderConf) i2gw.Provider {
return &Provider{
storage: newResourcesStorage(),
Expand Down
4 changes: 2 additions & 2 deletions pkg/i2gw/providers/cilium/resource_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func newResourceReader(conf *i2gw.ProviderConf) *resourceReader {
}

func (r *resourceReader) readResourcesFromCluster(ctx context.Context) (*storage, error) {
// read apisix related resources from cluster.
// read cilium related resources from cluster.
storage := newResourcesStorage()

ingresses, err := common.ReadIngressesFromCluster(ctx, r.conf.Client, sets.New(CiliumIngressClass))
Expand All @@ -49,7 +49,7 @@ func (r *resourceReader) readResourcesFromCluster(ctx context.Context) (*storage
}

func (r *resourceReader) readResourcesFromFile(filename string) (*storage, error) {
// read apisix related resources from file.
// read cilium related resources from file.
storage := newResourcesStorage()

ingresses, err := common.ReadIngressesFromFile(filename, r.conf.Namespace, sets.New[string](CiliumIngressClass))
Expand Down

0 comments on commit 56f3621

Please sign in to comment.