go run main.go --input=k8s.io/kubelet/config/v1beta1/types.go \
--version=v1beta1 --title=kubelet.config.k8s.io > swagger.json
flags:
diff --git a/cmd/kubeadm/app/apis/kubeadm/types.go b/cmd/kubeadm/app/apis/kubeadm/types.go | |
index 1759b765513..87557c2b754 100644 | |
--- a/cmd/kubeadm/app/apis/kubeadm/types.go | |
+++ b/cmd/kubeadm/app/apis/kubeadm/types.go | |
@@ -451,6 +451,9 @@ type ComponentConfig interface { | |
// SetUserSupplied sets the state of the component config "user supplied" flag to, either true, or false. | |
SetUserSupplied(userSupplied bool) | |
+ | |
+ // Mutate allows applying pre-defined modifications to the config before it's marshaled. |
this is a short guide for testing concurrent HA cluster join with kinder. currently it requires patching both kubeadm and kinder.
you need:
kuberentes/kubeadm
and kubernetes/kubernetes
// performance comparison between RtlGenRandom and BCryptGenRandom | |
// with BCRYPT_USE_SYSTEM_PREFERRED_RNG. | |
// | |
// gcc -O3 -std=c99 -Wall test.c -lbcrypt && a | |
#include <windows.h> | |
#include <stdio.h> | |
#include <bcrypt.h> | |
BOOLEAN(APIENTRY *RtlGenRandom) | |
(void *, ULONG); |
# `origin` is this repository, 'github' is the remote fork | |
# and '1.18-kubeadm-upgrade' is the remote branch | |
git checkout 1.18-kubeadm-upgrade | |
# create a patch between current PR branch and dev-1.18 | |
# results in '0001-kubeadm-update-upgrade-documentation-for-1.18.patch' | |
git format-patch dev-1.18 | |
git checkout master | |
# delete old branches | |
# at this point dev-1.18 was rebased remoteley and just pulling it locally | |
# would cause conflicts. |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"math" | |
"math/rand" | |
"os" | |
"strconv" | |
"time" |
the bellow bash script (k8s-release-dev-debug.sh
) was executed for about 1 hour
until it started catching problems in the cross-build.
it fetches versions using:
gsutil cat gs://kubernetes-release-dev/ci/latest.txt
gsutil cat gs://kubernetes-release-dev/ci/latest-bazel.txt
and based on the versions tries to gsutil ls
the contents of:
bufio | |
bytes | |
compress/gzip | |
context | |
crypto/rand | |
crypto/rsa | |
crypto/sha256 | |
crypto/tls | |
crypto/x509 | |
crypto/x509/pkix |
reviewers | title | content_template | weight | |
---|---|---|---|---|
|
Creating Highly Available Clusters with kubeadm |
templates/task |
60 |
{{% capture overview %}}
package main | |
import ( | |
"fmt" | |
"k8s.io/kubernetes/pkg/kubelet/apis/config" | |
"sigs.k8s.io/yaml" | |
) | |
// https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/apis/config/types.go |