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:
@@ -71,7 +71,7 @@ func RenderOpenAPISpec(cfg Config) (string, error) {
|
||||
|
||||
serverConfig := genericapiserver.NewRecommendedConfig(cfg.Codecs)
|
||||
|
||||
if err := recommendedOptions.ApplyTo(serverConfig, cfg.Scheme); err != nil {
|
||||
if err := recommendedOptions.ApplyTo(serverConfig); err != nil {
|
||||
log.Fatal(err)
|
||||
return "", err
|
||||
}
|
||||
|
||||
@@ -74,12 +74,12 @@ func (r *StandardStorage) Update(ctx context.Context, name string, objInfo rest.
|
||||
}
|
||||
|
||||
// GracefulDeleter
|
||||
func (r *StandardStorage) Delete(ctx context.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error) {
|
||||
func (r *StandardStorage) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error) {
|
||||
return r.New(), true, nil
|
||||
}
|
||||
|
||||
// CollectionDeleter
|
||||
func (r *StandardStorage) DeleteCollection(ctx context.Context, options *metav1.DeleteOptions, listOptions *metainternalversion.ListOptions) (runtime.Object, error) {
|
||||
func (r *StandardStorage) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions, listOptions *metainternalversion.ListOptions) (runtime.Object, error) {
|
||||
return r.NewList(), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user