use istio client-go library instead of knative (#1661)

use istio client-go library instead of knative
bump kubernetes dependency version
change code coverage to codecov
This commit is contained in:
zryfish
2019-12-13 11:26:18 +08:00
committed by GitHub
parent f249a6e081
commit ea88c8803d
2071 changed files with 354531 additions and 108336 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1alpha2
import (
"github.com/knative/pkg/apis/istio/v1alpha3"
"istio.io/api/networking/v1alpha3"
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -51,7 +51,7 @@ type DestinationRuleSpecTemplate struct {
// Spec indicates the behavior of a destination rule.
// +optional
Spec v1alpha3.DestinationRuleSpec `json:"spec,omitempty"`
Spec v1alpha3.DestinationRule `json:"spec,omitempty"`
}
type ServicePolicyConditionType string

View File

@@ -17,6 +17,7 @@ limitations under the License.
package v1alpha2
import (
"istio.io/api/networking/v1alpha3"
"testing"
"github.com/onsi/gomega"
@@ -34,7 +35,15 @@ func TestStorageServicePolicy(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "foo",
Namespace: "default",
}}
},
Spec: ServicePolicySpec{
Template: DestinationRuleSpecTemplate{
Spec: v1alpha3.DestinationRule{
Host: "foo",
},
},
},
}
g := gomega.NewGomegaWithT(t)
// Test Create

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1alpha2
import (
"github.com/knative/pkg/apis/istio/v1alpha3"
"istio.io/api/networking/v1alpha3"
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@@ -93,7 +93,7 @@ type VirtualServiceTemplateSpec struct {
// Spec indicates the behavior of a virtual service.
// +optional
Spec v1alpha3.VirtualServiceSpec `json:"spec,omitempty"`
Spec v1alpha3.VirtualService `json:"spec,omitempty"`
}
// StrategyStatus defines the observed state of Strategy

View File

@@ -17,8 +17,8 @@ limitations under the License.
package v1alpha2
import (
"github.com/knative/pkg/apis/istio/v1alpha3"
"io/ioutil"
apinetworkingv1alpha3 "istio.io/api/networking/v1alpha3"
"k8s.io/apimachinery/pkg/util/json"
"k8s.io/client-go/kubernetes/scheme"
"testing"
@@ -41,7 +41,7 @@ func TestStorageStrategy(t *testing.T) {
},
Spec: StrategySpec{
Template: VirtualServiceTemplateSpec{
Spec: v1alpha3.VirtualServiceSpec{
Spec: apinetworkingv1alpha3.VirtualService{
Hosts: []string{
"details",
},