Skip to content

Instantly share code, notes, and snippets.

View sttts's full-sized avatar

Dr. Stefan Schimanski sttts

View GitHub Profile
diff --git a/pkg/controlplane/apiserver/config.go b/pkg/controlplane/apiserver/config.go
index f1ecb3ec66e..0bdc84fbe47 100644
--- a/pkg/controlplane/apiserver/config.go
+++ b/pkg/controlplane/apiserver/config.go
@@ -137,6 +137,7 @@ func BuildGenericConfig(
storageFactoryConfig := kubeapiserver.NewStorageFactoryConfig()
storageFactoryConfig.APIResourceConfig = genericConfig.MergedResourceConfig
+ storageFactoryConfig.StorageConfig.StorageObjectCountTracker = genericConfig.StorageObjectCountTracker
storageFactory, lastErr = storageFactoryConfig.Complete(s.Etcd).New()
diff --git a/go.mod b/go.mod
index 099edb7..b44bad4 100644
--- a/go.mod
+++ b/go.mod
@@ -11,7 +11,7 @@ require (
github.com/google/go-cmp v0.6.0
github.com/keegancsmith/shell v0.0.0-20160208231706-ccb53e0c7c5c
google.golang.org/protobuf v1.32.0
- gopkg.in/yaml.v2 v2.4.0
+ k8s.io/api v0.29.1
{
"openapi": "3.0.0",
"info":
{
"title": "Kubernetes CRD Swagger",
"version": "v0.1.0"
},
"paths":
{
"/apis/spaces.upbound.io/v1beta1/controlplanes":
diff --git a/examples/pkg/kcp/clients/informers/externalversions/example/interface.go b/examples/pkg/kcp/clients/informers/externalversions/example/interface.go
index 424e1f2..2c68a44 100644
--- a/examples/pkg/kcp/clients/informers/externalversions/example/interface.go
+++ b/examples/pkg/kcp/clients/informers/externalversions/example/interface.go
@@ -81,7 +81,7 @@ type Interface interface {
V2() v2.Interface
}
-type scopedGroup struct {
+type classicalGroup struct {
commit dae68a69377160f6f23165064e4d6c7283981839
Author: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
Date: Mon Aug 7 17:33:02 2023 +0200
gateway: add http access logs
diff --git a/cmd/gateway/main.go b/cmd/gateway/main.go
index c8f5e4df..e5c646c7 100644
--- a/cmd/gateway/main.go
+++ b/cmd/gateway/main.go
diff --git a/apis/generate.go b/apis/generate.go
index 001a9de0..b5bd1df0 100644
--- a/apis/generate.go
+++ b/apis/generate.go
@@ -23,6 +23,7 @@
// Generate deepcopy methodsets and CRD manifests
//go:generate go run -tags generate sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile=../hack/boilerplate.go.txt paths=./spaces/... crd:crdVersions=v1 output:artifacts:config=../package/crds
+//go:generate bash -c "for CRD in ../package/crds/*.yaml; do PATCH=patches/$DOLLAR(basename \"$DOLLAR{CRD}\")-patch; if [ -f \"$DOLLAR{PATCH}\" ]; then echo \"Applying $DOLLAR{PATCH}\"; go run -tags generate github.com/vmware-archive/yaml-patch/cmd/yaml-patch -o \"$DOLLAR{PATCH}\" < \"$DOLLAR{CRD}\" > \"$DOLLAR{CRD}.patched\" && mv \"$DOLLAR{CRD}.patched\" \"$DOLLAR{CRD}\"; fi; done"
diff --git a/internal/plugin/grpc_provider.go b/internal/plugin/grpc_provider.go
index e79fcaa2df..182b148fc6 100644
--- a/internal/plugin/grpc_provider.go
+++ b/internal/plugin/grpc_provider.go
@@ -7,7 +7,9 @@ import (
"context"
"errors"
"fmt"
+ "os"
"sync"
diff --git a/internal/plugin/grpc_provider.go b/internal/plugin/grpc_provider.go
index e79fcaa2df..182b148fc6 100644
--- a/internal/plugin/grpc_provider.go
+++ b/internal/plugin/grpc_provider.go
@@ -7,7 +7,9 @@ import (
"context"
"errors"
"fmt"
+ "os"
"sync"
This file has been truncated, but you can view the full file.
diff --git a/kubernetes/.openapi-generator/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256
index ad6e68738..f225b8380 100644
--- a/kubernetes/.openapi-generator/swagger.json.sha256
+++ b/kubernetes/.openapi-generator/swagger.json.sha256
@@ -1 +1 @@
-56d06eb52679c174306991d7b8f5d210aa4e0a1d74a85a4124e7aa61b7e7cdee
\ No newline at end of file
+7752cdaf6f7628a4f69a2d4ae37d9a40abd11724ef3fdd0259465ccf639e2d00
\ No newline at end of file
diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml
This file has been truncated, but you can view the full file.
diff --git a/kubernetes/.openapi-generator/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256
index 83519ab1e..a2240f7cd 100644
--- a/kubernetes/.openapi-generator/swagger.json.sha256
+++ b/kubernetes/.openapi-generator/swagger.json.sha256
@@ -1 +1 @@
-4b65843bda400b6520c5513127159411f0b9a87485d1ae24377c236e6e920aa8
\ No newline at end of file
+1202c1b8fa9f428685f51af30f9eed72184dccc92e859458d4051e2570369dd1
\ No newline at end of file
diff --git a/kubernetes/client/api/autoscaling_v1_api.py b/kubernetes/client/api/autoscaling_v1_api.py