Skip to content

Instantly share code, notes, and snippets.

Dr. Stefan Schimanski sttts

  • Red Hat
  • Germany
Block or report user

Report or block sttts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:e4200e8a60fa92ffa0b4dbb31316cfdc
diff --git a/vendor/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go b/vendor/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go
index e06a478429..6826e5950d 100644
--- a/vendor/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go
+++ b/vendor/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go
@@ -19,11 +19,8 @@ package json
import (
"encoding/json"
"io"
- "strconv"
- "unsafe"
View gist:f2feda2314368c012fc9f54246591319
diff --git a/pkg/operator/encryption/state/types.go b/pkg/operator/encryption/state/types.go
index 9a7174e4..4ca9fdab 100644
--- a/pkg/operator/encryption/state/types.go
+++ b/pkg/operator/encryption/state/types.go
@@ -49,6 +49,18 @@ type MigrationState struct {
Resources []schema.GroupResource
}
+func (s *MigrationState) HasAll(rs []schema.GroupResource) bool {
+nextR:
View gist:7120198617ffda4787a1cc81476736b2
diff --git a/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/unfold.go b/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/unfold.go
index d135757ee7b..bfc361abadd 100644
--- a/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/unfold.go
+++ b/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/unfold.go
@@ -35,6 +35,9 @@ func (s *Structural) Unfold() *Structural {
return false
}
+ if s.ValueValidation == nil {
+ s.ValueValidation = &ValueValidation{}
View gist:4a159c7705049bbc9d36ef9c8585f988
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
View gist:90beda3f1a854fa1e08b26186cec1d53
diff --git a/.travis.yml b/.travis.yml
index 977712f351..e49e1fc1a0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,7 @@
language: go
go:
- - 1.11
+ - 1.12
View gist:6e06d2fbb4de46e39dce02b2384c7190
diff --git a/vendor/k8s.io/kubernetes/pkg/volume/csi/csi_block_test.go b/vendor/k8s.io/kubernetes/pkg/volume/csi/csi_block_test.go
index a63988c2d5..d0377cd30a 100644
--- a/vendor/k8s.io/kubernetes/pkg/volume/csi/csi_block_test.go
+++ b/vendor/k8s.io/kubernetes/pkg/volume/csi/csi_block_test.go
@@ -358,9 +358,7 @@ func TestBlockMapperMapDevice(t *testing.T) {
func TestBlockMapperMapDeviceNotSupportAttach(t *testing.T) {
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.CSIBlockVolume, true)()
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.CSIDriverRegistry, true)()
- plug, tmpDir := newTestPlugin(t, nil)
- defer os.RemoveAll(tmpDir)
View gist:0d8a75db15d1e590eef202fb2b32f63c
diff --git a/vendor/k8s.io/kubernetes/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go b/vendor/k8s.io/kubernetes/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
index d13e0437c2..6658f4f649 100644
--- a/vendor/k8s.io/kubernetes/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
+++ b/vendor/k8s.io/kubernetes/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
@@ -88,17 +88,19 @@ func BuildSwagger(crd *apiextensions.CustomResourceDefinition, version string, o
if s != nil && s.OpenAPIV3Schema != nil {
if !validation.SchemaHasInvalidTypes(s.OpenAPIV3Schema) {
if ss, err := structuralschema.NewStructural(s.OpenAPIV3Schema); err == nil {
- // skip non-structural schemas
- schema = ss
View gist:ac21ef3a5d270ada7573ef508ad77c6e
diff --git a/vendor/k8s.io/kubernetes/staging/src/k8s.io/kube-aggregator/pkg/apiserver/handler_proxy.go b/vendor/k8s.io/kubernetes/staging/src/k8s.io/kube-aggregator/pkg/apiserver/handler_proxy.go
index 99b7b4b82e..83a43dbddf 100644
--- a/vendor/k8s.io/kubernetes/staging/src/k8s.io/kube-aggregator/pkg/apiserver/handler_proxy.go
+++ b/vendor/k8s.io/kubernetes/staging/src/k8s.io/kube-aggregator/pkg/apiserver/handler_proxy.go
@@ -189,9 +189,14 @@ func (r *proxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
// newRequestForProxy returns a shallow copy of the original request with a context that may include a timeout for discovery requests
func newRequestForProxy(location *url.URL, req *http.Request, enableAggregatedDiscoveryTimeout bool) (*http.Request, context.CancelFunc) {
- newCtx := req.Context()
+ newCtx := req.Context() // context.Background()
View gist:60ca4e9efb840ded7708cbbb04d1415e
00:59:24.785 [DEBUG] [rtsystems.zigbee.ZigBeeNetworkManager] - Network state is updated to SHUTDOWN
00:59:24.790 [DEBUG] [s.zigbee.internal.NotificationService] - NotificationService is shutdown. Not scheduling com.zsmartsystems.zigbee.ZigBeeNetworkManager$3
00:59:24.796 [DEBUG] [pp.discovery.ZigBeeDiscoveryExtension] - DISCOVERY Extension: Shutdown
00:59:24.800 [DEBUG] [database.ZigBeeNetworkDatabaseManager] - Data store: shutting down.
00:59:24.804 [DEBUG] [.transaction.ZigBeeTransactionManager] - Shutting down transaction manager
00:59:24.808 [DEBUG] [ee.transaction.ZigBeeTransactionQueue] - Broadcast: Queue shutdown
00:59:24.813 [DEBUG] [ee.transaction.ZigBeeTransactionQueue] - Multicast: Queue shutdown
00:59:24.817 [DEBUG] [gbee.handler.ZigBeeCoordinatorHandler] - ZigBee network [zigbee:coordinator_ember:01370CA2] closed.
00:59:24.821 [DEBUG] [ing.zigbee.ember.handler.EmberHandler] - Initializing ZigBee Ember serial bridge handler.
00:59:24.825 [DEBUG] [gbee.handler.ZigBeeCoordinatorHandler] - Initializi
View gist:240d94ef67ce5876c76040a53b89afb0
I0803 09:35:30.282329 1 aggregator.go:108] Building initial OpenAPI spec
I0803 09:35:30.920747 1 aggregator.go:110] Finished initial OpenAPI spec generation after 638.346541ms
I0803 09:35:31.347850 1 aggregator.go:217] Updating OpenAPI spec because v1.user.openshift.io is updated
I0803 09:35:33.435215 1 aggregator.go:219] Finished OpenAPI spec generation after 2.087249031s
I0803 09:35:33.435522 1 aggregator.go:217] Updating OpenAPI spec because v1.authorization.openshift.io is updated
I0803 09:35:34.519145 1 aggregator.go:219] Finished OpenAPI spec generation after 1.083591836s
I0803 09:35:34.519239 1 aggregator.go:217] Updating OpenAPI spec because v1.route.openshift.io is updated
I0803 09:35:35.215376 1 aggregator.go:219] Finished OpenAPI spec generation after 696.1147ms
I0803 09:35:35.215466 1 aggregator.go:217] Updating OpenAPI spec because v1.apps.openshift.io is updated
I0803 09:35:35.854839 1 aggregator.go:219] Finished OpenAPI spec generation
You can’t perform that action at this time.