Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xtineskim committed Oct 21, 2024
1 parent fbcdff8 commit be5f267
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 be5f267

Please sign in to comment.