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

View File

@@ -18,8 +18,11 @@ limitations under the License.
Package event contains the definitions for the Event types produced by source.Sources and transformed into
reconcile.Requests by handler.EventHandler.
The details of how events are produced and transformed into reconcile.Requests are not something most
users should need to use or understand. Instead of working with Events, users should use
source.Sources and handler.EventHandlers with Controller.Watch.
You should rarely need to work with these directly -- instead, use Controller.Watch with
source.Sources and handler.EventHandlers.
Events generally contain both a full runtime.Object that caused the event, as well
as a direct handle to that object's metadata. This saves a lot of typecasting in
code that works with Events.
*/
package event

View File

@@ -17,7 +17,7 @@ limitations under the License.
package event
import (
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)
@@ -25,7 +25,7 @@ import (
// by a source.Source and transformed into a reconcile.Request by an handler.EventHandler.
type CreateEvent struct {
// Meta is the ObjectMeta of the Kubernetes Type that was created
Meta v1.Object
Meta metav1.Object
// Object is the object from the event
Object runtime.Object
@@ -35,13 +35,13 @@ type CreateEvent struct {
// by a source.Source and transformed into a reconcile.Request by an handler.EventHandler.
type UpdateEvent struct {
// MetaOld is the ObjectMeta of the Kubernetes Type that was updated (before the update)
MetaOld v1.Object
MetaOld metav1.Object
// ObjectOld is the object from the event
ObjectOld runtime.Object
// MetaNew is the ObjectMeta of the Kubernetes Type that was updated (after the update)
MetaNew v1.Object
MetaNew metav1.Object
// ObjectNew is the object from the event
ObjectNew runtime.Object
@@ -51,7 +51,7 @@ type UpdateEvent struct {
// by a source.Source and transformed into a reconcile.Request by an handler.EventHandler.
type DeleteEvent struct {
// Meta is the ObjectMeta of the Kubernetes Type that was deleted
Meta v1.Object
Meta metav1.Object
// Object is the object from the event
Object runtime.Object
@@ -66,7 +66,7 @@ type DeleteEvent struct {
// handler.EventHandler.
type GenericEvent struct {
// Meta is the ObjectMeta of a Kubernetes Type this event is for
Meta v1.Object
Meta metav1.Object
// Object is the object from the event
Object runtime.Object