From 867d34f7974d42b73cd340f55a49dad78753c4c1 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Tue, 24 May 2022 21:22:50 +0800 Subject: [PATCH] initial all commands --- .vscode/configurationCache.log | 1 - .vscode/dryrun.log | 10 - .vscode/settings.json | 3 - .vscode/targets.log | 365 ------------------ Makefile | 2 +- api/v1alpha1/command_descriptor_types.go | 29 +- api/v1alpha1/zz_generated.deepcopy.go | 21 +- commands/kubeadm_renew_certificate.go | 19 + commands/kubeadm_upgrade_node.go | 21 +- commands/kubectl_drain.go | 16 +- commands/kubectl_uncordon.go | 16 +- commands/preflight.go | 3 +- commands/upgrade_kubeadm.go | 33 +- commands/upgrade_kubectlkubelet.go | 36 +- .../operator.kubeadm.x-k8s.io_operations.yaml | 43 +++ ...or.kubeadm.x-k8s.io_runtimetaskgroups.yaml | 37 ++ ...perator.kubeadm.x-k8s.io_runtimetasks.yaml | 35 ++ config/manager/kustomization.yaml | 2 +- config/manager/manager.yaml | 2 +- 19 files changed, 300 insertions(+), 394 deletions(-) delete mode 100644 .vscode/configurationCache.log delete mode 100644 .vscode/dryrun.log delete mode 100644 .vscode/settings.json delete mode 100644 .vscode/targets.log diff --git a/.vscode/configurationCache.log b/.vscode/configurationCache.log deleted file mode 100644 index 0ee3133..0000000 --- a/.vscode/configurationCache.log +++ /dev/null @@ -1 +0,0 @@ -{"buildTargets":["all","controller-gen","deploy","docker-build","docker-push","fmt","generate","install","manager","manifests","release","run","test","undeploy","vet"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}} \ No newline at end of file diff --git a/.vscode/dryrun.log b/.vscode/dryrun.log deleted file mode 100644 index 7805d68..0000000 --- a/.vscode/dryrun.log +++ /dev/null @@ -1,10 +0,0 @@ -make --dry-run --always-make --keep-going --print-directory -make: Entering directory `/Users/pacoxu/git/gopath/src/k8s.io/kubeadm-operator' -go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.8.0 - -/Users/pacoxu/go/bin/controller-gen object:headerFile=./hack/boilerplate.go.txt paths="./..." -go fmt ./... -go vet ./... -go build -o bin/manager main.go -make: Leaving directory `/Users/pacoxu/git/gopath/src/k8s.io/kubeadm-operator' - diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 65e1ec0..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "makefile.extensionOutputFolder": "./.vscode" -} \ No newline at end of file diff --git a/.vscode/targets.log b/.vscode/targets.log deleted file mode 100644 index bad887a..0000000 --- a/.vscode/targets.log +++ /dev/null @@ -1,365 +0,0 @@ -make all --print-data-base --no-builtin-variables --no-builtin-rules --question -# GNU Make 3.81 -# Copyright (C) 2006 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. -# There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -# This program built for i386-apple-darwin11.3.0 - - -# Make data base, printed on Thu May 19 22:39:00 2022 - -# Variables - -# automatic -/dev/null || echo /Developer)/Makefiles -# environment -VSCODE_CODE_CACHE_PATH = /Users/pacoxu/Library/Application Support/Code/CachedData/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5 -# environment -LOGNAME = pacoxu -# environment -APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = true -# environment -ZSH = /Users/pacoxu/.oh-my-zsh -# environment -VSCODE_HANDLES_UNCAUGHT_ERRORS = true -# automatic -^D = $(patsubst %/,%,$(dir $^)) -# environment -XPC_FLAGS = 0x0 -# makefile (from `Makefile', line 5) -CRD_OPTIONS = "crd" -# default -MAKE = $(MAKE_COMMAND) -# default -MAKECMDGOALS := all -# environment -SHLVL = 1 -# default -MAKE_VERSION := 3.81 -# environment -USER = pacoxu -# makefile -.DEFAULT_GOAL := all -# environment -LESS = -R -# automatic -%D = $(patsubst %/,%,$(dir $%)) -# default -MAKE_COMMAND := /Library/Developer/CommandLineTools/usr/bin/make -# default -.VARIABLES := -# environment -TMPDIR = /var/folders/g7/ywncky4109zfc_6v5ww1fc2w0000gn/T/ -# automatic -*F = $(notdir $*) -# makefile (from `Makefile', line 3) -IMG = daocloud.io/daocloud/kubeadm-operator:v0.0.3-dev -# environment -VSCODE_IPC_HOOK = /Users/pacoxu/Library/Application Support/Code/1.67.2-main.sock -# makefile -MAKEFLAGS = Rrqp -# environment -MFLAGS = -Rrqp -# automatic -*D = $(patsubst %/,%,$(dir $*)) -# environment -XPC_SERVICE_NAME = application.com.microsoft.VSCode.58980345.58980351 -# automatic -+D = $(patsubst %/,%,$(dir $+)) -# automatic -+F = $(notdir $+) -# environment -__CF_USER_TEXT_ENCODING = 0x1F5:0x19:0x34 -# environment -COMMAND_MODE = unix2003 -# environment -GITHUB_USER = pacoxu -# default -MAKEFILES := -# automatic -