Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Update docker distribution #6621

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
0b5870f
update docker go mod
mkumatag Jan 24, 2022
8053946
ClusterClass: add MD variables to the ClusterClass proposal
sbueringer Jan 24, 2022
53c1335
book: add TGIK ClusterClass video
sbueringer Jan 25, 2022
b909f6d
Merge pull request #5983 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 25, 2022
b613189
Merge pull request #5981 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 25, 2022
c19e74a
Merge pull request #5973 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 25, 2022
7d5fa22
Add HasPausedAnnotation and HasSkipRemediationAnnotation func depreca…
furkatgofurov7 Jan 25, 2022
40a090f
Merge pull request #5985 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 25, 2022
249663d
Remove generated names from error messages to reduce reconciliation
killianmuldoon Jan 21, 2022
3cf3de4
Merge pull request #5992 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 26, 2022
67b1665
handle error in case ownerRef is not set on crs binding
aartij17 Jan 21, 2022
c0951a8
Merge pull request #5996 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 26, 2022
3c0d58b
ClusterClass: fix YAMLs in proposal
sbueringer Jan 26, 2022
dc4be40
Merge pull request #6005 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 27, 2022
83315e0
book: Add note about Kubernetes v1.23.{0-2} CRD issue and ClusterClass
sbueringer Jan 26, 2022
64a3189
allow KCP to Update when CoreDNS version doesn't change
killianmuldoon Jan 25, 2022
5d31399
Upgrade to Kubernetes 1.23.3 in Quickstart and CI
MartinForReal Jan 26, 2022
8758057
Merge pull request #6012 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 28, 2022
57d8a98
use kubebuilder envtest v1.23.3
sbueringer Jan 27, 2022
c373170
Merge pull request #6010 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 28, 2022
01b155c
Merge pull request #6011 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 28, 2022
7110c92
Merge pull request #6015 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 28, 2022
b06431d
book: add Writing a ClusterClass doc
sbueringer Jan 25, 2022
17bb94c
fix review findings
sbueringer Jan 26, 2022
10ec4dc
fix review findings
sbueringer Jan 27, 2022
776e481
more review findings + additional fixes
sbueringer Jan 27, 2022
2930a08
fix review finding
sbueringer Jan 27, 2022
5f75322
reference CAPD quickstart ClusterClass
sbueringer Jan 27, 2022
244585d
fix review findings
sbueringer Jan 28, 2022
81cf133
topology plan command doc
Jan 27, 2022
5c6d5bc
Merge pull request #6022 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 31, 2022
65bf0d0
Merge pull request #6023 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jan 31, 2022
312b64d
book: make links in generate CRDS relative
sbueringer Feb 1, 2022
29d016b
Merge pull request #6030 from sbueringer/pr-fix-links-in-gen-crds
k8s-ci-robot Feb 1, 2022
699ae81
Document how to change a ClusterClass
fabriziopandini Feb 1, 2022
92a5954
Merge pull request #6031 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 1, 2022
2f1b282
simplified communication of CoreDNS compatibility
killianmuldoon Feb 1, 2022
5246841
book: Writing a ClusterClass: add ref example
sbueringer Feb 2, 2022
d669071
Merge pull request #6043 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 2, 2022
7efd2b9
Fix cert manager repo and add troubleshooting guide
killianmuldoon Feb 2, 2022
33eb755
Merge pull request #6048 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 2, 2022
e2aafb6
Merge pull request #6052 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 2, 2022
147aa04
update clsuterctl version in e2e to latest patch
Feb 2, 2022
7e83b8b
Merge pull request #6060 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 3, 2022
3837012
ClusterToInfrastructureMapFunc: Exclude externally managed infrastruc…
alvaroaleman Feb 1, 2022
79fb3d5
Merge pull request #6064 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 3, 2022
de9eaae
Add note on where to find ClusterClass specific Cluster creation comm…
killianmuldoon Feb 1, 2022
c6b2347
Merge pull request #6065 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 3, 2022
85a5c85
extend Operating a Managed Cluster doc
killianmuldoon Jan 31, 2022
13fcc67
Merge pull request #6066 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 3, 2022
6177b6e
seedling: Adding hetzner provider
batistein Feb 3, 2022
16ad231
Merge pull request #6071 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 6, 2022
5717dc4
allow provider specific infra machine template for upgrade tests
aartij17 Feb 7, 2022
98f9589
Support new control plane label and taint
sbueringer Jan 10, 2022
abf682a
:running: ClusterToInfrastructureMapFuncWithExternallyManagedCheck: R…
alvaroaleman Feb 9, 2022
78700cf
kcp: don't rollout machines when format is defaulted
sbueringer Feb 10, 2022
810c2a6
Merge pull request #6095 from sbueringer/pr-fix-kcp-rollout
k8s-ci-robot Feb 10, 2022
c650f69
Merge pull request #6083 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 11, 2022
b900a8c
Merge pull request #6084 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 11, 2022
7ee79fe
Merge pull request #6085 from alvaroaleman/remove-debug
k8s-ci-robot Feb 11, 2022
7278d9d
Update cert-manager links after migration
apricote Feb 13, 2022
fec2feb
Merge pull request #6123 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 14, 2022
ef73bda
Uplift controller runtime to v0.11.1
furkatgofurov7 Feb 15, 2022
3f68d67
Merge pull request #6145 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 16, 2022
a5829fb
Fix panics in conversions
sbueringer Feb 16, 2022
af20d2c
Merge pull request #6146 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 16, 2022
4c36784
The old `1.0.x` wasn't matching the new version.
joekr Feb 15, 2022
3433f7b
Merge pull request #6148 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 16, 2022
bc35df6
improve version support documentation
fabriziopandini Feb 16, 2022
f6015c1
Merge pull request #6175 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 22, 2022
c421683
fix log output for node drain scale down
detiber Feb 17, 2022
fc7cec6
Merge pull request #6186 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 22, 2022
0b8bbd0
Add sprig functions to ClusterClass templates
fabriziopandini Feb 18, 2022
760d751
Merge pull request #6191 from sbueringer/pr-cc-support-sprig
k8s-ci-robot Feb 23, 2022
21f79e1
book: update refs to older books
sbueringer Feb 23, 2022
cf8994d
Merge pull request #6194 from sbueringer/pr-update-book-refs-1.1
k8s-ci-robot Feb 24, 2022
375e791
book: refactor verification
sbueringer Feb 17, 2022
eca826f
Merge pull request #6204 from sbueringer/pr-refactor-book-verificatio…
k8s-ci-robot Feb 24, 2022
85c9870
handle kubeadm 1.24 kubelet ConfigMap name change
fabriziopandini Feb 24, 2022
9878caf
Merge pull request #6206 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Feb 24, 2022
8a2ec3a
ClusterClass: add ref and controlPlane name builtin variables
sbueringer Feb 25, 2022
6b449fe
Merge pull request #6215 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Mar 1, 2022
9090ad4
Add network builtins to topology controller
killianmuldoon Feb 17, 2022
3db1d8d
e2e: add option to configure both control-plane and workers machine t…
cpanato Feb 24, 2022
b309832
Merge pull request #6242 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Mar 2, 2022
7199405
Merge pull request #6241 from killianmuldoon/variables/net-builtins-1-1
k8s-ci-robot Mar 7, 2022
9669e62
clusterctl: allow Namespace objects in topology plan input
apricote Mar 4, 2022
c9a2f3f
Merge pull request #6265 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Mar 7, 2022
c770b46
make listObjByGVK resilient
Mar 7, 2022
fd4ff01
retry delete during clusterctl upgrade
Mar 8, 2022
880b4b3
Merge pull request #6268 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Mar 8, 2022
bc27d3e
Merge pull request #6269 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Mar 8, 2022
affc1d9
book: add support deadlines
sbueringer Mar 8, 2022
b1b05b6
fix: permit empty/not set providerIDList
mweibel Feb 25, 2022
e9b3872
Merge pull request #6276 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Mar 8, 2022
31146bd
Merge pull request #6271 from sbueringer/pr-support-dates
k8s-ci-robot Mar 8, 2022
da8cccb
fix the version assumption in topology plan command
Mar 8, 2022
c8b9f3f
Merge pull request #6301 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Mar 15, 2022
2210653
🌱 Add CAPOCI provider
joekr Mar 10, 2022
4f16895
Merge pull request #6314 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Mar 18, 2022
891ad9c
seedling: update talos/sidero references
rsmitty Mar 24, 2022
c4c9df9
Merge pull request #6343 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Mar 31, 2022
3a4358c
Upgrade to controller-runtime v0.11.2
sbueringer Mar 31, 2022
f47e565
bug: Make sure MachinePool Version is a valid Kubernetes version
Mar 17, 2022
162dba4
Merge pull request #6360 from sbueringer/pr-upgrade-cr-v0.11.2-v1.1
k8s-ci-robot Mar 31, 2022
d1abb1e
Merge pull request #6364 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Apr 1, 2022
cb513e2
Update golangci-lint action
killianmuldoon Apr 4, 2022
be57626
Merge pull request #6371 from killianmuldoon/fix/lint-release-1.1
k8s-ci-robot Apr 4, 2022
acb01e9
Add Nutanix Provider
tuxtof Mar 29, 2022
3906843
Merge pull request #6378 from nutanix-cloud-native/release-1.1-capx
k8s-ci-robot Apr 6, 2022
429cf50
Update controlplane example in book
killianmuldoon Apr 7, 2022
9f166c9
Merge pull request #6427 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Apr 20, 2022
b7306f9
Add IBM Cloud
Amulyam24 Apr 20, 2022
8ac7e2d
Merge pull request #6428 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Apr 20, 2022
3f4fd8f
update cert-manager to v1.7.2
Apr 15, 2022
c9feb08
Merge pull request #6432 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Apr 21, 2022
8ea1939
allow up to 20 tabs in book
apricote Apr 22, 2022
7181b0b
Merge pull request #6440 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Apr 25, 2022
b43f519
use WaitForMachinePools to configure machine pool test waits
jackfrancis Apr 26, 2022
7d05374
Merge pull request #6447 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Apr 27, 2022
1d232b4
clusterctl: retry github i/o operations
jackfrancis Apr 28, 2022
7c58a30
Merge pull request #6461 from jackfrancis/github-retries-1.1
k8s-ci-robot Apr 29, 2022
45f5b08
test: retry controller-runtime client instantiation
jackfrancis Apr 20, 2022
3e9b507
test: tolerate zero pods in WaitForPodListCondition
jackfrancis May 3, 2022
ad4b4dd
bug: Fix cluster reconcilation predicates
Unix4ever Apr 19, 2022
c4cf824
Merge pull request #6488 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot May 6, 2022
c727d95
Merge pull request #6479 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot May 8, 2022
6391758
Merge pull request #6433 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot May 10, 2022
bf071fb
fix crs
tranthang2404 May 12, 2022
669b915
Merge pull request #6512 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot May 13, 2022
844268d
Add IBM VPC environment variables
Amulyam24 May 25, 2022
4886050
Merge pull request #6544 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot May 25, 2022
5def82e
Use Kubernetes 1.24 in quickstart and CAPD, bump to kind v0.14
chrischdi May 12, 2022
298356c
Merge pull request #6560 from sbueringer/pr-use-1.24-on-release-1.1
k8s-ci-robot May 28, 2022
1ca48ff
Update docker to v20.10.16
mkumatag May 29, 2022
a17624c
sync OWNERS_ALIAS file with main
sbueringer May 30, 2022
3ce426d
bump kubebuilder-release-tools GitHub action to v0.2.0
sbueringer May 30, 2022
b4065d1
Merge pull request #6566 from sbueringer/pr-sync-owners-alias
k8s-ci-robot May 31, 2022
d7bf75b
Merge pull request #6558 from mkumatag/update-docker-1.1
k8s-ci-robot May 31, 2022
ad12352
retryable errors in test/framework
jackfrancis May 31, 2022
2891f78
Merge pull request #6579 from jackfrancis/cherry-pick-6485
k8s-ci-robot Jun 1, 2022
d777df1
more retryable errors in test/framework
jackfrancis Jun 1, 2022
dffadb9
Merge pull request #6582 from jackfrancis/cherry-pick-6490
k8s-ci-robot Jun 1, 2022
ba8da95
book: add videos from KubeCon and Let's chat about sessions
sbueringer Jun 2, 2022
3ea9243
Merge pull request #6589 from sbueringer/pr-add-more-videos-1.1
k8s-ci-robot Jun 3, 2022
e6bca6a
book: update supported Kubernetes versions
sbueringer May 25, 2022
1c3a152
Merge pull request #6592 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jun 3, 2022
60349d8
Merge pull request #6575 from sbueringer/pr-cherry-pick-verify
k8s-ci-robot Jun 6, 2022
735e6ad
hack/release-notes: trim [release-*] in PR titles
sbueringer May 30, 2022
212083a
Merge pull request #6606 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jun 7, 2022
3d0ba85
fix: no nodeRefs when empty providerIDList is ok
mweibel Mar 18, 2022
3823957
Merge pull request #6609 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jun 8, 2022
deaee4c
added kubevirt infrastructure provider
May 17, 2022
4801471
Merge pull request #6610 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jun 8, 2022
88fd1a8
added vcluster infrastructure provider
FabianKramm May 26, 2022
c8bdf13
Merge pull request #6611 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jun 8, 2022
abad574
Adding support for CAPC
davidjumani Jun 6, 2022
dadc5b6
Merge pull request #6612 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jun 8, 2022
82bfb99
Update docker distribution
mkumatag Jun 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ jobs:
- test
- hack/tools
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.17
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3.1.0
with:
version: v1.43.0
working-directory: ${{matrix.working-directory}}
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
steps:
- name: Verifier action
id: verifier
uses: kubernetes-sigs/kubebuilder-release-tools@v0.1
uses: kubernetes-sigs/kubebuilder-release-tools@v0.2.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ vendor
# User-supplied Tiltfile extensions, settings, and builds
tilt.d
tilt-settings.json
tilt-settings.yaml
tilt_modules
.tiltbuild

# User-supplied clusterctl hacks settings
Expand All @@ -74,4 +76,4 @@ out
_releasenotes

# Helm
.helm
.helm
13 changes: 9 additions & 4 deletions .markdownlinkcheck.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"ignorePatterns": [
{
"ignorePatterns": [{
"pattern": "^http://localhost"
}],
"httpHeaders": [{
"comment": "Workaround as suggested here: https://github.com/tcort/markdown-link-check/issues/201",
"urls": ["https://docs.github.com/"],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
],
"timeout": "5s",
}],
"timeout": "10s",
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
Expand Down
15 changes: 8 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ this should generally not be the case.

Cluster API maintains the most recent release branch for all supported API and contract versions. Support for this section refers to the ability to backport and release patch versions.

| API Version | Branch | Supported Until |
| ------------- | ----------- | ---------- |
| **v1beta1** | release-1.0 | current stable |
| **v1alpha4** | release-0.4 | 2022-04-06 |
| **v1alpha3** | release-0.3 | 2022-02-23 |
| API Version | Branch | Supported Until |
| ------------- |-------------|-----------------|
| **v1beta1** | release-1.1 | current stable |
| **v1beta1** | release-1.0 | 2022-02-02 |
| **v1alpha4** | release-0.4 | 2022-04-06 |
| **v1alpha3** | release-0.3 | 2022-02-23 |

- The API version is determined from the GroupVersion defined in the top-level `api/` package.
- The EOL date is determined from the last release available once a new API version is published.
Expand Down Expand Up @@ -391,10 +392,10 @@ Examples:
```bash
$ kubectl get kubeadmcontrolplane
NAMESPACE NAME INITIALIZED API SERVER AVAILABLE REPLICAS READY UPDATED UNAVAILABLE AGE VERSION
quick-start-d5ufye quick-start-ntysk0-control-plane true true 1 1 1 2m44s v1.23.0
quick-start-d5ufye quick-start-ntysk0-control-plane true true 1 1 1 2m44s v1.23.3
$ kubectl get machinedeployment
NAMESPACE NAME CLUSTER REPLICAS READY UPDATED UNAVAILABLE PHASE AGE VERSION
quick-start-d5ufye quick-start-ntysk0-md-0 quick-start-ntysk0 1 1 1 ScalingUp 3m28s v1.23.0
quick-start-d5ufye quick-start-ntysk0-md-0 quick-start-ntysk0 1 1 1 ScalingUp 3m28s v1.23.3
```

## Google Doc Viewing Permissions
Expand Down
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export GO111MODULE=on
#
# Kubebuilder.
#
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.23.1
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.23.3
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT ?= 60s
export KUBEBUILDER_CONTROLPLANE_STOP_TIMEOUT ?= 60s

Expand Down Expand Up @@ -309,11 +309,7 @@ lint-fix: $(GOLANGCI_LINT) ## Lint the codebase and run auto-fixers if supported
apidiff: $(GO_APIDIFF) ## Check for API differences
$(GO_APIDIFF) $(shell git rev-parse origin/main) --print-compatible

.PHONY: format-tiltfile
format-tiltfile: ## Format the Tiltfile
./hack/verify-starlark.sh fix

ALL_VERIFY_CHECKS = doctoc boilerplate shellcheck tiltfile modules gen conversions docker-provider book-links
ALL_VERIFY_CHECKS = doctoc boilerplate shellcheck tiltfile modules gen conversions docker-provider

.PHONY: verify
verify: $(addprefix verify-,$(ALL_VERIFY_CHECKS)) ## Run all verify-* targets
Expand Down Expand Up @@ -361,10 +357,6 @@ verify-docker-provider:
@echo "Verifying CAPD"
cd $(CAPD_DIR); $(MAKE) verify

.PHONY: verify-book-links
verify-book-links: ## Verify book links
$(MAKE) -C docs/book verify

## --------------------------------------
## Binaries
## --------------------------------------
Expand Down Expand Up @@ -426,6 +418,14 @@ docker-build-kubeadm-control-plane: ## Build the docker image for kubeadm contro
e2e-framework: ## Builds the CAPI e2e framework
cd $(E2E_FRAMEWORK_DIR); go build ./...

.PHONY: build-book
build-book: ## Build the book
$(MAKE) -C docs/book build

.PHONY: serve-book
serve-book: ## Build and serve the book (with live-reload)
$(MAKE) -C docs/book serve

## --------------------------------------
## Testing
## --------------------------------------
Expand Down Expand Up @@ -757,4 +757,4 @@ $(KUSTOMIZE): # Download kustomize using hack script into tools folder.
$(GOLANGCI_LINT): .github/workflows/golangci-lint.yml # Download golanci-lint using hack script into tools folder.
hack/ensure-golangci-lint.sh \
-b $(TOOLS_DIR)/$(BIN_DIR) \
$(shell cat .github/workflows/golangci-lint.yml | grep version | sed 's/.*version: //')
$(shell cat .github/workflows/golangci-lint.yml | grep [[:space:]]version | sed 's/.*version: //')
5 changes: 4 additions & 1 deletion OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ aliases:
- CecileRobertMichon
- enxebre
- fabriziopandini
- sbueringer
- vincepri

# folks who can review and LGTM any PRs in the repo
Expand All @@ -45,6 +46,7 @@ aliases:

cluster-api-bootstrap-provider-kubeadm-maintainers:
cluster-api-bootstrap-provider-kubeadm-reviewers:
- killianmuldoon

# -----------------------------------------------------------
# OWNER_ALIASES for bootstrap/kubeadm/internal/ignition
Expand All @@ -69,14 +71,14 @@ aliases:

cluster-api-clusterctl-maintainers:
cluster-api-clusterctl-reviewers:
- ykakarap

# -----------------------------------------------------------
# OWNER_ALIASES for test
# -----------------------------------------------------------

cluster-api-test-reviewers:
cluster-api-test-maintainers:
- sbueringer

# -----------------------------------------------------------
# OWNER_ALIASES for test/framework
Expand All @@ -97,4 +99,5 @@ aliases:
# -----------------------------------------------------------

cluster-api-docs-reviewers:
- killianmuldoon
cluster-api-docs-maintainers:
6 changes: 6 additions & 0 deletions api/v1alpha4/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@ func (src *Cluster) ConvertTo(dstRaw conversion.Hub) error {
}

if restored.Spec.Topology != nil {
if dst.Spec.Topology == nil {
dst.Spec.Topology = &clusterv1.Topology{}
}
dst.Spec.Topology.Variables = restored.Spec.Topology.Variables
if restored.Spec.Topology.Workers != nil {
if dst.Spec.Topology.Workers == nil {
dst.Spec.Topology.Workers = &clusterv1.WorkersTopology{}
}
for i := range restored.Spec.Topology.Workers.MachineDeployments {
dst.Spec.Topology.Workers.MachineDeployments[i].FailureDomain = restored.Spec.Topology.Workers.MachineDeployments[i].FailureDomain
dst.Spec.Topology.Workers.MachineDeployments[i].Variables = restored.Spec.Topology.Workers.MachineDeployments[i].Variables
Expand Down
12 changes: 12 additions & 0 deletions bootstrap/kubeadm/api/v1alpha3/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,15 @@ func (src *KubeadmConfig) ConvertTo(dstRaw conversion.Hub) error {

dst.Spec.Ignition = restored.Spec.Ignition
if restored.Spec.InitConfiguration != nil {
if dst.Spec.InitConfiguration == nil {
dst.Spec.InitConfiguration = &bootstrapv1.InitConfiguration{}
}
dst.Spec.InitConfiguration.Patches = restored.Spec.InitConfiguration.Patches
}
if restored.Spec.JoinConfiguration != nil {
if dst.Spec.JoinConfiguration == nil {
dst.Spec.JoinConfiguration = &bootstrapv1.JoinConfiguration{}
}
dst.Spec.JoinConfiguration.Patches = restored.Spec.JoinConfiguration.Patches
}

Expand Down Expand Up @@ -119,9 +125,15 @@ func (src *KubeadmConfigTemplate) ConvertTo(dstRaw conversion.Hub) error {

dst.Spec.Template.Spec.Ignition = restored.Spec.Template.Spec.Ignition
if restored.Spec.Template.Spec.InitConfiguration != nil {
if dst.Spec.Template.Spec.InitConfiguration == nil {
dst.Spec.Template.Spec.InitConfiguration = &bootstrapv1.InitConfiguration{}
}
dst.Spec.Template.Spec.InitConfiguration.Patches = restored.Spec.Template.Spec.InitConfiguration.Patches
}
if restored.Spec.Template.Spec.JoinConfiguration != nil {
if dst.Spec.Template.Spec.JoinConfiguration == nil {
dst.Spec.Template.Spec.JoinConfiguration = &bootstrapv1.JoinConfiguration{}
}
dst.Spec.Template.Spec.JoinConfiguration.Patches = restored.Spec.Template.Spec.JoinConfiguration.Patches
}

Expand Down
12 changes: 12 additions & 0 deletions bootstrap/kubeadm/api/v1alpha4/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,15 @@ func (src *KubeadmConfig) ConvertTo(dstRaw conversion.Hub) error {

dst.Spec.Ignition = restored.Spec.Ignition
if restored.Spec.InitConfiguration != nil {
if dst.Spec.InitConfiguration == nil {
dst.Spec.InitConfiguration = &bootstrapv1.InitConfiguration{}
}
dst.Spec.InitConfiguration.Patches = restored.Spec.InitConfiguration.Patches
}
if restored.Spec.JoinConfiguration != nil {
if dst.Spec.JoinConfiguration == nil {
dst.Spec.JoinConfiguration = &bootstrapv1.JoinConfiguration{}
}
dst.Spec.JoinConfiguration.Patches = restored.Spec.JoinConfiguration.Patches
}

Expand Down Expand Up @@ -85,9 +91,15 @@ func (src *KubeadmConfigTemplate) ConvertTo(dstRaw conversion.Hub) error {

dst.Spec.Template.Spec.Ignition = restored.Spec.Template.Spec.Ignition
if restored.Spec.Template.Spec.InitConfiguration != nil {
if dst.Spec.Template.Spec.InitConfiguration == nil {
dst.Spec.Template.Spec.InitConfiguration = &bootstrapv1.InitConfiguration{}
}
dst.Spec.Template.Spec.InitConfiguration.Patches = restored.Spec.Template.Spec.InitConfiguration.Patches
}
if restored.Spec.Template.Spec.JoinConfiguration != nil {
if dst.Spec.Template.Spec.JoinConfiguration == nil {
dst.Spec.Template.Spec.JoinConfiguration = &bootstrapv1.JoinConfiguration{}
}
dst.Spec.Template.Spec.JoinConfiguration.Patches = restored.Spec.Template.Spec.JoinConfiguration.Patches
}

Expand Down
2 changes: 2 additions & 0 deletions bootstrap/kubeadm/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ spec:
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: default
spec: {}
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: ClusterClass
metadata:
Expand Down
16 changes: 11 additions & 5 deletions cmd/clusterctl/client/cluster/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,18 @@ func (p *providerComponents) Delete(options DeleteOptions) error {

// Otherwise delete the object
log.V(5).Info("Deleting", logf.UnstructuredToValues(obj)...)
if err := cs.Delete(ctx, &obj); err != nil {
if apierrors.IsNotFound(err) {
// Tolerate IsNotFound error that might happen because we are not enforcing a deletion order
// that considers relation across objects (e.g. Deployments -> ReplicaSets -> Pods)
continue
deleteBackoff := newWriteBackoff()
if err := retryWithExponentialBackoff(deleteBackoff, func() error {
if err := cs.Delete(ctx, &obj); err != nil {
if apierrors.IsNotFound(err) {
// Tolerate IsNotFound error that might happen because we are not enforcing a deletion order
// that considers relation across objects (e.g. Deployments -> ReplicaSets -> Pods)
return nil
}
return err
}
return nil
}); err != nil {
errList = append(errList, errors.Wrapf(err, "Error deleting object %s, %s/%s", obj.GroupVersionKind(), obj.GetNamespace(), obj.GetName()))
}
}
Expand Down
11 changes: 6 additions & 5 deletions cmd/clusterctl/client/cluster/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (

"github.com/pkg/errors"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"
Expand Down Expand Up @@ -359,11 +358,13 @@ func listObjByGVK(c client.Client, groupVersion, kind string, options []client.L
objList.SetAPIVersion(groupVersion)
objList.SetKind(kind)

if err := c.List(ctx, objList, options...); err != nil {
if !apierrors.IsNotFound(err) {
return nil, errors.Wrapf(err, "failed to list objects for the %q GroupVersionKind", objList.GroupVersionKind())
}
resourceListBackoff := newReadBackoff()
if err := retryWithExponentialBackoff(resourceListBackoff, func() error {
return c.List(ctx, objList, options...)
}); err != nil {
return nil, errors.Wrapf(err, "failed to list objects for the %q GroupVersionKind", objList.GroupVersionKind())
}

return objList, nil
}

Expand Down
Loading