Skip to content

Instantly share code, notes, and snippets.

Avatar

Dr. Stefan Schimanski sttts

View GitHub Profile
View gist:22985e820634657332335ac1c759eb5a
diff --git a/pkg/syncer/upsync/upsync_controller.go b/pkg/syncer/upsync/upsync_controller.go
index 6759192ce..aceb52f32 100644
--- a/pkg/syncer/upsync/upsync_controller.go
+++ b/pkg/syncer/upsync/upsync_controller.go
@@ -27,7 +27,6 @@ import (
"github.com/kcp-dev/logicalcluster/v3"
corev1 "k8s.io/api/core/v1"
- "k8s.io/apimachinery/pkg/api/equality"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
View gist:1c38afbddf53608df49aba3b795456fe
diff --git a/staging/src/k8s.io/apiextensions-apiserver/go.mod b/staging/src/k8s.io/apiextensions-apiserver/go.mod
index 9cbe376d16b..10ac25a61c5 100644
--- a/staging/src/k8s.io/apiextensions-apiserver/go.mod
+++ b/staging/src/k8s.io/apiextensions-apiserver/go.mod
@@ -2,7 +2,7 @@
module k8s.io/apiextensions-apiserver
-go 1.16
+go 1.18
View gist:bafa4facad9f57203be3084d7109211b
diff --git a/pkg/apis/apis/v1alpha1/types_apibinding.go b/pkg/apis/apis/v1alpha1/types_apibinding.go
index c256b9431..0d69366dc 100644
--- a/pkg/apis/apis/v1alpha1/types_apibinding.go
+++ b/pkg/apis/apis/v1alpha1/types_apibinding.go
@@ -104,11 +104,25 @@ const (
// ExportReference describes a reference to an APIExport. Exactly one of the
// fields must be set.
type ExportReference struct {
+ // Name of the APIExport that describes the API.
+ //
View apiservicebindingrequest_types.go
/*
Copyright 2022 The Kube Bind 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 bind.go
/*
Copyright 2022 The Kube Bind 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 clusterbinding_types.go
/*
Copyright 2022 The Kube Bind 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:bafd277eb6cb5ce626f3f188ac55085d
commit 4175145b779c0f7709a010d763dc194fe926532c
Author: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
Date: Mon Sep 19 11:01:37 2022 +0200
WIP
diff --git a/cmd/cache-server/main.go b/cmd/cache-server/main.go
index abf99223..3baa2b94 100644
--- a/cmd/cache-server/main.go
+++ b/cmd/cache-server/main.go
View gist:d6a4a00383496a82ab2fb44c081e479b
commit ea73ce4085fa7f05993a075daa9b9e59eaf50933
Author: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
Date: Mon Sep 19 11:01:37 2022 +0200
WIP
diff --git a/cmd/cache-server/options/options.go b/cmd/cache-server/options/options.go
new file mode 100644
index 00000000..575d1f84
--- /dev/null
View gist:31a0e47d5e267ff194aa0f860a6f88e9
diff --git a/cmd/cache-server/main.go b/cmd/cache-server/main.go
index abf99223..3baa2b94 100644
--- a/cmd/cache-server/main.go
+++ b/cmd/cache-server/main.go
@@ -26,7 +26,7 @@ import (
"k8s.io/component-base/cli"
cacheserver "github.com/kcp-dev/kcp/pkg/cache/server"
- "github.com/kcp-dev/kcp/pkg/cache/server/options"
+ "github.com/kcp-dev/kcp/cmd/cache-server/options"
View gist:619c05f67e80ada799d8e2c4c662a15f
diff --git a/cmd/cache-server/main.go b/cmd/cache-server/main.go
index 71cab85e..d6a0da19 100644
--- a/cmd/cache-server/main.go
+++ b/cmd/cache-server/main.go
@@ -84,7 +84,12 @@ func main() {
return err
}
}
- return server.Run(ctx)
+