Skip to content

Commit

Permalink
Istio provider: register provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpasiukevich committed Dec 30, 2023
1 parent e8cf702 commit 2293259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions cmd/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (

// Call init function for the providers
_ "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"
)

Expand Down
4 changes: 1 addition & 3 deletions pkg/i2gw/providers/istio/istio.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ func NewProvider(conf *i2gw.ProviderConf) i2gw.Provider {

// ToGatewayAPI converts stored Istio API entities to i2gw.GatewayResources
// K8S Ingress resources are not needed, only Istio-based are converted
// TODO(#100) - add istio conversion logic
func (p *Provider) ToGatewayAPI(_ i2gw.InputResources) (i2gw.GatewayResources, field.ErrorList) {
p.converter.convert(p.storage)
return i2gw.GatewayResources{}, field.ErrorList{field.Forbidden(field.NewPath(""), "conversion is WIP")}
return p.converter.convert(p.storage)
}

func (p *Provider) ReadResourcesFromCluster(ctx context.Context) error {
Expand Down

0 comments on commit 2293259

Please sign in to comment.