Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
644 commits
Select commit Hold shift + click to select a range
5165ce4
Fixing subnetworks url
rishi-anand Feb 19, 2020
ac018c9
Prep for v0.3.0 release
detiber Mar 13, 2020
24b16f5
Merge pull request #290 from detiber/v1alpha3-prep
k8s-ci-robot Mar 27, 2020
beb0e6c
[ci-conformance] Fix kustomize template to remove ami reference
detiber Apr 3, 2020
2110d87
Merge pull request #291 from detiber/fixConformanceTemplate
k8s-ci-robot Apr 3, 2020
804ab0d
[ci-conformance] Fix kustomize template to better handle envsubst
detiber Apr 6, 2020
e430a7a
Merge pull request #292 from detiber/fixConformanceTemplate
k8s-ci-robot Apr 22, 2020
941ed57
Add gab-satchi to cluster-api-gcp-maintainers
Apr 22, 2020
17111f3
[ci-conformance] Fix tests when not using CI artifacts
detiber Apr 23, 2020
0758d90
Merge pull request #295 from detiber/fixConformanceTemplate
k8s-ci-robot Apr 23, 2020
e363c15
[ci-conformance] fix unbound variable
detiber Apr 24, 2020
202d2a9
Merge pull request #296 from detiber/fixConformanceTemplate
k8s-ci-robot Apr 24, 2020
4da71f8
Makefile: add missing kustomize dependency
justinsb May 27, 2020
8d873e8
Merge pull request #298 from justinsb/makefile_add_kustomize
k8s-ci-robot May 27, 2020
6e0beb2
Register only with first component of local_hostname
justinsb May 27, 2020
9c4bd5a
Merge pull request #299 from justinsb/first_component_of_hostname
k8s-ci-robot Jun 5, 2020
d083cb5
Add support for preemptible instances
Jun 11, 2020
51a5930
Fix conformance script for recent image-builder change
detiber Jun 16, 2020
bd4c698
Merge pull request #301 from detiber/fixConformance
k8s-ci-robot Jun 16, 2020
d7c689f
Merge pull request #294 from gab-satchi/gab-satchi-patch-1
k8s-ci-robot Jun 22, 2020
e96635e
Added common tag for control-plane and worker nodes to resolve LoadBa…
snehala27 Jul 15, 2020
e6d7ba5
Merge pull request #305 from spectrocloud/tagsIssue
k8s-ci-robot Jul 15, 2020
ec0f92b
Auto create Cloud NAT if network is created by CAPG
snehala27 Jul 20, 2020
f321e5d
Handle delete for router
snehala27 Jul 22, 2020
f0aba06
hack/ci: Use ci/latest version marker for retrieving cross builds
justaugustus Jul 29, 2020
c4e82e2
Merge pull request #308 from justaugustus/version-markers
k8s-ci-robot Jul 29, 2020
5fb774a
Support FailureDomains override(optional) in GCPClusterSpec
snehala27 Jul 30, 2020
0ec2fdb
[api/gcpmachine] Support root volume type param.
Aug 11, 2020
1355932
:seedling: add rsmitty to maintainers
rsmitty Aug 24, 2020
7f7ab9e
Update e2e-conformance.sh to use image-builder deps-gce target for in…
detiber Aug 24, 2020
f88904d
Merge pull request #313 from rsmitty/master
k8s-ci-robot Aug 24, 2020
e78263c
Merge pull request #309 from detiber/testFixes
k8s-ci-robot Aug 25, 2020
8ffe00d
make generate-manifests. make comments more readable in CRD defs.
Aug 25, 2020
5762bf7
Add metadata.yaml for defining contracts
cpanato Aug 29, 2020
11b9527
Merge pull request #314 from cpanato/add-metadata
k8s-ci-robot Sep 2, 2020
cd55c9a
fix conformance job
cpanato Oct 21, 2020
0a56245
Merge pull request #318 from cpanato/GH-95729
k8s-ci-robot Oct 22, 2020
cdf258f
dependencies: update several dependencies
cpanato Oct 20, 2020
ed932a9
Merge pull request #317 from cpanato/update-deps
k8s-ci-robot Oct 23, 2020
e60b2d4
manager: add reconcile timeout option
cpanato Oct 26, 2020
10fefd3
manager: add event broadcaster
cpanato Oct 26, 2020
1fac620
Merge pull request #320 from cpanato/reconcile-timeout
k8s-ci-robot Oct 26, 2020
de6a468
Merge pull request #319 from cpanato/broadcaster
k8s-ci-robot Oct 26, 2020
834ee42
deprecate hack tools go mod
cpanato Oct 26, 2020
10e6df2
update golangci spec and fix lints
cpanato Oct 26, 2020
d65cd0e
Merge pull request #323 from cpanato/deprecate-hack-gomod
k8s-ci-robot Oct 28, 2020
428b98e
manager: small flags refactor
cpanato Oct 26, 2020
eff9956
Merge pull request #321 from cpanato/small-flag-refactor
k8s-ci-robot Oct 29, 2020
52bea00
conformance: use kubernetes 1.19 branch
cpanato Oct 29, 2020
2f3b09a
Merge pull request #324 from cpanato/conformance-test
k8s-ci-robot Oct 29, 2020
42fa443
Resolved review comment: Add zone to status only if provided in spec
snehala27 Nov 4, 2020
160ee82
Adding 5 worker nodes
cpanato Nov 5, 2020
c432086
Link in makefile has changed
caulagi Nov 5, 2020
82ee8c3
Merge pull request #325 from cpanato/test-conf
k8s-ci-robot Nov 5, 2020
63357fb
Merge pull request #326 from caulagi/patch-1
k8s-ci-robot Nov 5, 2020
4242d39
Update link to image-builder git repo
caulagi Nov 12, 2020
7a53ab5
Merge pull request #327 from caulagi/patch-1
k8s-ci-robot Nov 12, 2020
a15aa23
Fix calling timeout for osx
caulagi Nov 12, 2020
2f98888
Merge pull request #328 from caulagi/timeout-osx
k8s-ci-robot Nov 12, 2020
3c2e84b
update CAPI to v0.3.10
cpanato Oct 26, 2020
ba8ea07
Merge pull request #322 from cpanato/update-capi
k8s-ci-robot Nov 16, 2020
3bdf6e6
Merge branch 'master' into dilyevsky/gcpmachine-root-volume-type-param
Nov 23, 2020
488dbe0
Fix typo in RootDeviceType doc string.
Nov 23, 2020
ffd5a95
[compute/instances]: Fix subnet resource path.
Oct 30, 2020
be663a9
fix image-builder rule and Use latest k8s version when using ci artif…
cpanato Nov 24, 2020
8750c02
Merge pull request #332 from cpanato/fix_image-builder
k8s-ci-robot Nov 24, 2020
0658328
Re-run `make generate`.
Nov 24, 2020
cda96d4
Add a releasing doc
detiber Nov 18, 2020
5a44551
Merge pull request #312 from muxinc/dilyevsky/gcpmachine-root-volume-…
k8s-ci-robot Nov 24, 2020
6bdeb7f
XMerge remote-tracking branch 'upstream/master' into dilyevsky/upstre…
Nov 25, 2020
b80f098
Merge pull request #331 from muxinc/dilyevsky/upstream-gcpmachine-sub…
k8s-ci-robot Nov 25, 2020
7faf19f
Merge pull request #329 from detiber/releasing
k8s-ci-robot Nov 25, 2020
55dbf0a
Add e2e using cluster-api test framework
cpanato Nov 25, 2020
75abf67
Merge pull request #334 from cpanato/test-e2e
k8s-ci-robot Dec 1, 2020
a08ebb2
owners: update cluster-api-maintainers to match the capi repo
cpanato Dec 1, 2020
be7278e
owners: add cpanato to capg maintainers list
cpanato Dec 1, 2020
4e11548
Merge pull request #337 from cpanato/add-cpanato
k8s-ci-robot Dec 1, 2020
79138f7
Merge pull request #310 from spectrocloud/failureDomainOverride
k8s-ci-robot Dec 2, 2020
6186b9e
Merge pull request #288 from rishi-anand/gce-subnetwork
k8s-ci-robot Dec 2, 2020
da366aa
Merge pull request #307 from spectrocloud/cloudNat
k8s-ci-robot Dec 2, 2020
70b4064
release: update notes and makefile from feedback of release 0.3.0
cpanato Dec 4, 2020
d47d494
docs: update PR template to add kind and release notes section
cpanato Dec 4, 2020
a5db1d5
Merge pull request #338 from cpanato/release-updates
k8s-ci-robot Dec 4, 2020
5bbaada
Merge pull request #339 from cpanato/add-template-release-notes
k8s-ci-robot Dec 4, 2020
caf92ac
capi: update capi to 0.3.11
cpanato Dec 5, 2020
5e84f20
Merge pull request #340 from cpanato/update-capi-0-3-11
k8s-ci-robot Dec 8, 2020
2857e22
Update CAPI to v0.3.12
cpanato Dec 16, 2020
c4f7588
Merge pull request #341 from cpanato/update-capi
k8s-ci-robot Dec 21, 2020
c495997
Merge pull request #300 from alexander-demichev/preemptible
k8s-ci-robot Feb 5, 2021
d1ba1a8
check ErrNotFound for delete requests, also remove finalizer if VM no…
jzhoucliqr Feb 5, 2021
0b4b73e
Support additionalMetadata on an instance
justinsb Dec 20, 2020
a964ed4
[gcpmachine]: Support additional drives.
Dec 28, 2020
3e189d8
Merge pull request #342 from justinsb/additional_metadata
k8s-ci-robot Feb 9, 2021
a75424f
Make AdditionalMetadata Key field required
hasheddan Feb 19, 2021
0744760
Merge pull request #349 from hasheddan/x-k8s-list
k8s-ci-robot Feb 19, 2021
389428f
Remove inactive members from OWNERS_ALIASES
mrbobbytables Feb 21, 2021
fd9bbf1
Merge pull request #351 from mrbobbytables/owners
k8s-ci-robot Feb 22, 2021
02287ce
Merge pull request #344 from muxinc/dilyevsky/local-ssd
k8s-ci-robot Feb 27, 2021
293966e
Grab config.toml for containerd
dims Mar 31, 2021
0952f33
Merge pull request #355 from dims/grab-config-toml-for-containerd
k8s-ci-robot Mar 31, 2021
f37abd4
Bump ginko version to v1.15.2
prankul88 Apr 1, 2021
0bc3013
Merge pull request #357 from prankul88/bump-ginkgo
k8s-ci-robot Apr 1, 2021
c283eb8
initial change to v1alpha4 types
cpanato Mar 7, 2021
933bb54
update kustomize files
cpanato Mar 8, 2021
8b8a4e4
update per feedback review
cpanato Mar 9, 2021
95697d7
update to use go 1.16 and controller-runtime 0.9.0
cpanato Mar 9, 2021
8404af8
Update cloudbuild to Go 1.16
sbueringer Apr 7, 2021
5e25e7e
Merge pull request #358 from sbueringer/patch-1
k8s-ci-robot Apr 7, 2021
39d1516
Merge pull request #352 from cpanato/v1alpha4
k8s-ci-robot Apr 7, 2021
d4cb2ce
Update klog dependency to v2
stmcginnis Mar 11, 2021
2dbe8e5
Merge pull request #354 from stmcginnis/klogv2
k8s-ci-robot Apr 8, 2021
4c820b4
Option to just build image needed
dims Apr 29, 2021
3571af7
Merge pull request #362 from dims/option-to-just-build-image-needed
k8s-ci-robot Apr 30, 2021
8a73bc5
dependencies: upadte several dependencies
cpanato Apr 29, 2021
31be993
capi: update capi components
cpanato Apr 30, 2021
c14ab16
Add dims as maintainer
dims Apr 30, 2021
6c7f2f5
updating sig leads and capi mantainers
fabriziopandini Apr 30, 2021
d57c40a
Merge pull request #364 from dims/add-dims-as-maintainer
k8s-ci-robot Apr 30, 2021
fa90bc7
Merge pull request #360 from cpanato/update-deps
k8s-ci-robot Apr 30, 2021
99a3da7
Install go if needed
dims Apr 30, 2021
5ef142a
Merge pull request #365 from fabriziopandini/update-sig-leads-and-cap…
k8s-ci-robot Apr 30, 2021
b11d7c5
Merge pull request #366 from dims/install-go-if-needed
k8s-ci-robot Apr 30, 2021
700ccf2
Better check for OSTYPE & ensure GOPATH/bin is in PATH
dims May 1, 2021
a05a244
Merge pull request #367 from dims/better-check-for-ostype-and-ensure-…
k8s-ci-robot May 1, 2021
acf133b
kind: upadte kind to v0.11.1
cpanato May 29, 2021
3ff1bf1
capi: update CAPI to the latest nightly build
cpanato May 29, 2021
be031d7
go: update go to use 1.16.4
cpanato May 29, 2021
6715ae4
Merge pull request #369 from cpanato/update-deps
k8s-ci-robot May 29, 2021
4cb3f2c
ci: update k8s cluster to use 1.19.10 version
cpanato May 30, 2021
e28a2dd
Merge pull request #370 from cpanato/update-k8s
k8s-ci-robot Jun 3, 2021
c373005
Add externally managed predicate to GCPCluster controller
asalkeld Jun 7, 2021
505cc02
docs/release: update based on the release v0.3.1
cpanato Jun 9, 2021
622ea30
Merge pull request #372 from asalkeld/externally-managed
k8s-ci-robot Jun 9, 2021
aa8f1dd
Update CAPI to v0.4.0-beta.0
cpanato Jun 9, 2021
458d6f5
Merge pull request #375 from cpanato/update-release-docs
k8s-ci-robot Jun 9, 2021
0a0125b
Merge pull request #347 from spectrocloud/fix-delete-not-found
k8s-ci-robot Jun 9, 2021
98ba621
Merge pull request #374 from cpanato/update-capi
k8s-ci-robot Jun 9, 2021
99985be
capi: using released artifacts from github
cpanato Jun 10, 2021
f304ffb
Merge pull request #376 from cpanato/use-capi-release
k8s-ci-robot Jun 10, 2021
21e72ea
cloudbuild: increase job timeout
cpanato Jun 10, 2021
9626ded
Merge pull request #378 from cpanato/increase-cloudbuild
k8s-ci-robot Jun 10, 2021
07e3186
capg: add initial capi tests
cpanato Jun 10, 2021
12da675
Merge pull request #379 from cpanato/capi-tests
k8s-ci-robot Jun 11, 2021
109dd26
Set default for curl retries
dims Jun 14, 2021
fa14709
Merge pull request #380 from dims/set-default-for-curl-retries
k8s-ci-robot Jun 15, 2021
4d193b2
Update CAPI release to v0.4.0-beta.1
cpanato Jun 17, 2021
ad6b561
Merge pull request #381 from cpanato/capi-040beta1
k8s-ci-robot Jun 17, 2021
6f5b86a
dev-workflow: add tilt and documentation to develop capg
cpanato Jun 19, 2021
24966e9
go: update Go to 1.16.5
cpanato Jun 19, 2021
f7b779f
Merge pull request #382 from cpanato/tilt
k8s-ci-robot Jun 19, 2021
f3fc0fa
deps: update dependencies
cpanato Jun 19, 2021
a3f570e
golangci-lint: update golangci rules and fix the lints
cpanato Jun 19, 2021
0cc11e7
Merge pull request #384 from cpanato/GH-368
k8s-ci-robot Jun 19, 2021
244bb6e
Merge pull request #383 from cpanato/update-deps
k8s-ci-robot Jun 19, 2021
89d0cfa
🏃 Fix compiler UndeclaredName error
ahmadnurus Jun 20, 2021
e498875
🏃 Fixup README googlecloud icon link
ahmadnurus Jun 20, 2021
4ed4269
Merge pull request #386 from prksu/fix-gcloud-link
k8s-ci-robot Jun 20, 2021
e072f57
Merge pull request #385 from prksu/fix-test-common
k8s-ci-robot Jun 21, 2021
dd26a3c
ci: add golangci-lint to run using github-actions
cpanato Jun 21, 2021
c5ef4c2
Merge pull request #387 from cpanato/golangci-lint
k8s-ci-robot Jun 21, 2021
b9f14fa
Update development.md
cpanato Jun 22, 2021
03325ab
Merge pull request #390 from cpanato/fix_typos
k8s-ci-robot Jun 22, 2021
5f0b247
Refactor cloud services into Reconcile/Delete pattern
ahmadnurus Jun 22, 2021
e9f742d
Merge pull request #394 from prksu/refactor-cloud
k8s-ci-robot Jun 30, 2021
4f9d871
Update CAPI to v0.4.0
cpanato Jun 30, 2021
672511f
add pre-requisites for default network setup
Ankitasw Jul 1, 2021
5ce3efd
Merge pull request #395 from cpanato/capi-040
k8s-ci-robot Jul 5, 2021
3d9b269
Merge pull request #396 from Ankitasw/pre-req-doc
k8s-ci-robot Jul 9, 2021
18cfaf7
Use GA TargetTcpProxies after updated upstream
ahmadnurus Jul 14, 2021
93aa965
use dl.k8s.io instead of hardcoded GCS URIs
spiffxp Jul 17, 2021
549b434
Merge pull request #399 from spiffxp/use-dl-k8s-io
k8s-ci-robot Jul 19, 2021
5ad5289
ci: use prebuilt node images for CAPG
cpanato Jul 21, 2021
fa795c8
Merge pull request #400 from cpanato/use-existing-images
k8s-ci-robot Jul 22, 2021
5286fc0
Merge pull request #398 from prksu/targettcpproxy-ga
k8s-ci-robot Jul 22, 2021
392e9a9
GCPCluster template CRD added
shivi28 Jul 26, 2021
5fed20f
Merge pull request #402 from shivi28/gcp_397
k8s-ci-robot Jul 27, 2021
0f9343e
golang: update go to 1.16.7
cpanato Aug 11, 2021
8472a2d
lint: update golangci-lint to v1.41.1
cpanato Aug 11, 2021
52c2a5f
e2e/tests: use k8s 1.20 release to run the tests
cpanato Aug 11, 2021
3ab6c6c
Merge pull request #404 from cpanato/update-k8s
k8s-ci-robot Aug 12, 2021
8206013
dependencies: upgrade several dependencies
cpanato Aug 25, 2021
48c6e53
capi: update capi to v0.4.2
cpanato Aug 26, 2021
5d2bcc4
Merge pull request #407 from cpanato/deps-updates
k8s-ci-robot Aug 27, 2021
655074b
Added quick start section to readme
sayantani11 Sep 16, 2021
2465d23
Merge pull request #410 from sayantani11/quickstart
k8s-ci-robot Sep 16, 2021
224fb28
Added contributing & involvement section
sayantani11 Sep 16, 2021
92e36b4
Merge pull request #411 from sayantani11/contribution-involvement
k8s-ci-robot Sep 17, 2021
093ae30
Modified the office hours & communication section
sayantani11 Sep 17, 2021
2bc4dbe
Merge pull request #412 from sayantani11/office-communication
k8s-ci-robot Sep 18, 2021
04a18f8
Added github issues section
sayantani11 Sep 19, 2021
511713b
Updated the definition and added docs section
sayantani11 Sep 19, 2021
4e40827
Merge pull request #414 from sayantani11/docs
k8s-ci-robot Sep 20, 2021
65f263a
Remove implement-notes link
sayantani11 Sep 20, 2021
582ef8e
Merge pull request #413 from sayantani11/github-issues
k8s-ci-robot Sep 20, 2021
9897138
Added support policy of gcp
sayantani11 Sep 20, 2021
f1a25ea
Documents divided into different folders
sayantani11 Sep 20, 2021
24857eb
releasing.md editing
sayantani11 Sep 20, 2021
881be34
prerequisites.md edit
sayantani11 Sep 20, 2021
4fcd2fc
K8s 1.22 added to support policy
sayantani11 Sep 21, 2021
aa41e3f
Added flannel.md to the docs
sayantani11 Sep 21, 2021
c2e9764
Yaml configurations added
sayantani11 Sep 21, 2021
82aac58
Merge pull request #416 from sayantani11/support-policy
k8s-ci-robot Sep 22, 2021
b3b63fe
Merge pull request #418 from sayantani11/flannel
k8s-ci-robot Sep 22, 2021
0ea6ed0
Merge pull request #417 from sayantani11/issue415
k8s-ci-robot Sep 22, 2021
7a75b14
Improvements to contributing.md
sayantani11 Sep 23, 2021
1afc4db
Merge pull request #423 from sayantani11/contribute-improvement
k8s-ci-robot Sep 25, 2021
a2f838e
Improvement of github workflow and added test coverage
sayantani11 Sep 27, 2021
59b7759
Update dependencies for v0.4.3
sayantani11 Sep 27, 2021
16d8228
Merge pull request #427 from sayantani11/upgrade-4.3
k8s-ci-robot Sep 27, 2021
85977aa
Update CAPI image path from master->main
nagygergo Sep 27, 2021
4b1a656
Merge pull request #426 from sayantani11/link-check
k8s-ci-robot Sep 27, 2021
7f1a374
Merge pull request #429 from nagygergo/patch-1
k8s-ci-robot Sep 27, 2021
228a29f
Fixed broken links // prerequisites, development guide
harshmathurx Sep 27, 2021
1ba12d6
Correction made in the support policy section
PurneswarPrasad Sep 30, 2021
d97f00b
Merge pull request #431 from harshmathurx/main
k8s-ci-robot Sep 30, 2021
17d19fa
Merge pull request #437 from PurneswarPrasad/patch-1
k8s-ci-robot Sep 30, 2021
d20d4e7
readme fixed and changes to link check
sayantani11 Oct 4, 2021
c0c2f34
Merge pull request #442 from sayantani11/broken-links
k8s-ci-robot Oct 4, 2021
b30125d
Duplicate link checker in the workflow
sayantani11 Oct 5, 2021
98218a6
Merge pull request #443 from sayantani11/duplicate
k8s-ci-robot Oct 5, 2021
57a5012
Wait for webhook readiness and healthy
jaybatra26 Aug 23, 2021
47d1cd6
Replace Windows with Windows+WSL2
BLasan Oct 5, 2021
4641eea
Merge pull request #406 from jaybatra26/healthcheck
k8s-ci-robot Oct 5, 2021
a8afe4b
Merge pull request #440 from BLasan/Issue-439
k8s-ci-robot Oct 6, 2021
61c4ee8
Addition to development.md
sayantani11 Oct 8, 2021
ade3dba
roadmap for CAPG
sayantani11 Oct 8, 2021
1a9ae18
Update dependencies for v0.4.4
jayesh-srivastava Oct 8, 2021
9b4e4ca
update go.sum
cpanato Oct 9, 2021
0921269
Merge pull request #447 from jayesh-srivastava/v0.4.4
k8s-ci-robot Oct 10, 2021
558607b
Remove kube-rbac-proxy
jayesh-srivastava Oct 12, 2021
20d96f2
Doc about preemptible VM instance (#450)
sayantani11 Oct 13, 2021
f3f3601
Merge pull request #445 from sayantani11/dev-edit
k8s-ci-robot Oct 13, 2021
d0e61de
Merge pull request #448 from sayantani11/roadmap
k8s-ci-robot Oct 13, 2021
0339371
e2e-tests and jobs that run
sayantani11 Oct 16, 2021
2630982
Change
sayantani11 Oct 18, 2021
01817fa
Merge pull request #453 from sayantani11/e2e-test
k8s-ci-robot Oct 20, 2021
bc6d754
use k8s-staging-test-infra/gcb-docker-gcloud
ameukam Oct 25, 2021
ca6678f
Merge pull request #456 from ameukam/use-k8s-infra-gcb-docker-gcloud
k8s-ci-robot Oct 25, 2021
9b4a392
update api to v1beta1
cpanato Oct 30, 2021
aeb0461
update boilerplate
cpanato Nov 2, 2021
ce06fb4
[api/labels] Initialize nil dest labels during addition.
Oct 29, 2021
a24d51f
Merge pull request #458 from cpanato/v1beta1
k8s-ci-robot Nov 3, 2021
a052113
Merge branch 'main' of github.com:kubernetes-sigs/cluster-api-provide…
Nov 3, 2021
756599c
Merge pull request #457 from muxinc/dilyevsky/api-labels-fix-empty-add
k8s-ci-robot Nov 5, 2021
ba203a6
Merge pull request #452 from jayesh-srivastava/branch-02
k8s-ci-robot Nov 10, 2021
0f3564f
Bump golangci-lint to 1.43.0
stmcginnis Nov 10, 2021
c26a68b
Merge pull request #464 from stmcginnis/golangci-lint
k8s-ci-robot Nov 11, 2021
30f55ba
merge latest upstream changes
alexander-demicev Jan 7, 2022
ed872c5
UPSTREAM: <carry>: Add openshift specific changes
alexander-demicev Jan 7, 2022
5381501
UPSTREAM: <carry>: Add vendor directory
alexander-demicev Jan 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .ci-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build_root_image:
name: release
namespace: openshift
tag: rhel-8-release-golang-1.17-openshift-4.10
tag: rhel-8-release-golang-1.17-openshift-4.11
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.git
.github
.vscode
bin/
config/
hack/
docs/
templates/
scripts/
**/.md
tilt-provider.json
_artifacts/
47 changes: 42 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,53 @@
*.dll
*.so
*.dylib
bin

# Test binary, build with `go test -c`
*.test
_artifacts/
test/e2e/config/gcp-ci-envsubst.yaml

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

bin/
.gobincache/
# Ansible
*.retry

# IDE configs
.idea/
.vscode/
# vim
*~
*.swp

# envfiles
.env
envfile

# kubeconfigs
kind.kubeconfig
minikube.kubeconfig
kubeconfig

# Example and binary output directory
/out

# vscode
.vscode

# goland
.idea

# Ignore output manifests
config/samples
manager_image_patch.yaml-e
manager_pull_policy.yaml-e

# junit files
junit.*.xml

.DS_Store

# Tilt files.
.tiltbuild
/tilt.d
tilt-settings.json
tilt_config.json
134 changes: 134 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
linters:
disable-all: true
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
- exportloopref
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- goimports
- goprintffuncname
- gosec
- gosimple
- govet
- ifshort
- importas
- ineffassign
- misspell
- nakedret
- nilerr
- nolintlint
- prealloc
- revive
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- varcheck
- whitespace

linters-settings:
ifshort:
# Maximum length of variable declaration measured in number of characters, after which linter won't suggest using short syntax.
max-decl-chars: 50
importas:
no-unaliased: true
alias:
# Kubernetes
- pkg: k8s.io/api/core/v1
alias: corev1
- pkg: k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1
alias: apiextensionsv1
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
alias: metav1
- pkg: k8s.io/apimachinery/pkg/api/errors
alias: apierrors
- pkg: k8s.io/apimachinery/pkg/util/errors
alias: kerrors
# Controller Runtime
- pkg: sigs.k8s.io/controller-runtime
alias: ctrl
staticcheck:
go: "1.16"
stylecheck:
go: "1.16"

issues:
max-same-issues: 0
max-issues-per-linter: 0
# We are disabling default golangci exclusions because we want to help reviewers to focus on reviewing the most relevant
# changes in PRs and avoid nitpicking.
exclude-use-default: false
# List of regexps of issue texts to exclude, empty list by default.
exclude:
# The following are being worked on to remove their exclusion. This list should be reduced or go away all together over time.
# If it is decided they will not be addressed they should be moved above this comment.
- Subprocess launch(ed with variable|ing should be audited)
- (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
- (G104|G307)
exclude-rules:
- linters:
- gosec
text: "G108: Profiling endpoint is automatically exposed on /debug/pprof"
- linters:
- revive
text: "exported: exported method .*\\.(Reconcile|SetupWithManager|SetupWebhookWithManager) should have comment or be unexported"
- linters:
- errcheck
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
# With Go 1.16, the new embed directive can be used with an un-named import,
# revive (previously, golint) only allows these to be imported in a main.go, which wouldn't work for us.
# This directive allows the embed package to be imported with an underscore everywhere.
- linters:
- revive
source: _ "embed"
# Exclude some packages or code to require comments, for example test code, or fake clients.
- linters:
- revive
text: exported (method|function|type|const) (.+) should have comment or be unexported
source: (func|type).*Fake.*
- linters:
- revive
text: exported (method|function|type|const) (.+) should have comment or be unexported
path: fake_\.go
- linters:
- revive
text: exported (method|function|type|const) (.+) should have comment or be unexported
path: "(framework|e2e|infrastructure/docker)/.*.go"
# Disable unparam "always receives" which might not be really
# useful when building libraries.
- linters:
- unparam
text: always receives
# Dot imports for gomega or ginkgo are allowed
# within test files.
- path: _test\.go
text: should not use dot imports
- path: (framework|e2e)/.*.go
text: should not use dot imports
- path: _test\.go
text: cyclomatic complexity
# Append should be able to assign to a different var/slice.
- linters:
- gocritic
text: "appendAssign: append result not assigned to the same slice"


run:
timeout: 10m
skip-files:
- "zz_generated.*\\.go$"
- ".*conversion.*\\.go$"
skip-dirs:
- mock*
allow-parallel-runners: true
10 changes: 10 additions & 0 deletions .markdownlinkcheck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ignorePatterns": [{
"pattern": "^https://calendar.google.com/calendar"
}],
"timeout": "5s",
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206]
}
84 changes: 84 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Contributing Guidelines
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [Contributor License Agreements](#contributor-license-agreements)
- [Finding Things That Need Help](#finding-things-that-need-help)
- [Contributing a Patch](#contributing-a-patch)
- [Backporting a Patch](#backporting-a-patch)
- [Merge Approval](#merge-approval)
- [Google Doc Viewing Permissions](#google-doc-viewing-permissions)
- [Issue and Pull Request Management](#issue-and-pull-request-management)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

Read the following guide if you're interested in contributing to cluster-api.

## Contributor License Agreements

We'd love to accept your patches! Before we can take them, we have to jump a couple of legal hurdles.

Please fill out either the individual or corporate Contributor License Agreement (CLA). More information about the CLA and instructions for signing it [can be found here](https://github.com/kubernetes/community/blob/master/CLA.md).

***NOTE***: Only original source code from you and other people that have signed the CLA can be accepted into the repository.

## Finding Things That Need Help

If you're new to the project and want to help, but don't know where to start, we have a semi-curated list of issues that should not need deep knowledge of the system. [Have a look and see if anything sounds interesting](https://github.com/kubernetes-sigs/cluster-api-provider-gcp/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22). Alternatively, read some of the docs on other controllers and try to write your own, file and fix any/all issues that come up, including gaps in documentation!

## Contributing a Patch

1. If you haven't already done so, sign a Contributor License Agreement (see details above).
2. Fork the desired repo, develop and test your code changes.
3. Submit a pull request.
i. All code PR must be labeled with one of the following kinds
- `/kind feature` for PRs related to adding new features/tests
- `/kind bug` for PRs releated to bug fixes and patches
- `/kind api-change` for PRs releated to adding, removing, or otherwise changing an API
- `/kind cleanup` for PRs releated to code refactoring and cleanup
- `/kind deprecation` for PRs related to a feature/enhancement marked for deprecation
- `/kind design` for PRs releated to design proposals
- `/kind documentation` for PRs releated to documentation
- `/kind failing-test` for PRs releated to to a consistently or frequently failing test
- `/kind flake` for PRs related to a flaky test
- `/kind other` for PRs releated to updating dependencies, minor changes or other
ii.If the PR requires additional action from users switching to a new release, include the string "action required" in the PR release-notes.
iii.All code changes must be covered by unit tests and E2E tests. iv. All new features should come with user documentation.
4. Once the PR has been reviewed and is ready to be merged, commits should be [squashed](https://github.com/kubernetes/community/blob/master/contributors/guide/github-workflow.md#squash-commits).
i. Ensure commit message(s) are meaningful and message history is readable.

All changes must be code reviewed. Coding conventions and standards are explained in the official [developer docs](https://github.com/kubernetes/community/tree/master/contributors/devel). Expect reviewers to request that you avoid common [go style mistakes](https://github.com/golang/go/wiki/CodeReviewComments) in your PRs.

## Backporting a Patch

Cluster API ships older versions through `release-X.X` branches, usually backports are reserved to critical bug-fixes.
Some release branches might ship with both Go modules and dep (e.g. `release-0.1`), users backporting patches should always make sure
that the vendored Go modules dependencies match the Gopkg.lock and Gopkg.toml ones by running `dep ensure`

### Merge Approval

Cluster API maintainers may add "LGTM" (Looks Good To Me) or an equivalent comment to indicate that a PR is acceptable. Any change requires at least one LGTM. No pull requests can be merged until at least one Cluster API maintainer signs off with an LGTM.

### Google Doc Viewing Permissions

To gain viewing permissions to google docs in this project, please join either the [kubernetes-dev](https://groups.google.com/forum/#!forum/kubernetes-dev) or [kubernetes-sig-cluster-lifecycle](https://groups.google.com/forum/#!forum/kubernetes-sig-cluster-lifecycle) google group.

### Issue and Pull Request Management

Anyone may comment on issues and submit reviews for pull requests. However, in
order to be assigned an issue or pull request, you must be a member of the
[Kubernetes SIGs](https://github.com/kubernetes-sigs) GitHub organization.

If you are a Kubernetes GitHub organization member, you are eligible for
membership in the Kubernetes SIGs GitHub organization and can request
membership by [opening an issue](https://github.com/kubernetes/org/issues/new?template=membership.md&title=REQUEST%3A%20New%20membership%20for%20%3Cyour-GH-handle%3E)
against the kubernetes/org repo.

However, if you are a member of any of the related Kubernetes GitHub
organizations but not of the Kubernetes org, you will need explicit sponsorship
for your membership request. You can read more about Kubernetes membership and
sponsorship [here](https://github.com/kubernetes/community/blob/master/community-membership.md).

Cluster API maintainers can assign you an issue or pull request by leaving a
`/assign <your Github ID>` comment on the issue or pull request.
55 changes: 45 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
FROM registry.ci.openshift.org/openshift/release:golang-1.17 AS builder
WORKDIR /go/src/github.com/openshift/cluster-api-provider-gcp
COPY . .
# VERSION env gets set in the openshift/release image and refers to the golang version, which interfers with our own
RUN unset VERSION \
&& make build GOPROXY=off NO_DOCKER=1

FROM registry.ci.openshift.org/openshift/origin-v4.0:base
COPY --from=builder /go/src/github.com/openshift/cluster-api-provider-gcp/bin/machine-controller-manager /
COPY --from=builder /go/src/github.com/openshift/cluster-api-provider-gcp/bin/termination-handler /
# Copyright 2019 The Kubernetes 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
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Build the manager binary
FROM golang:1.16.9 as builder
WORKDIR /workspace

# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy
ARG goproxy=https://proxy.golang.org
ENV GOPROXY=$goproxy

# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
# Cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download

# Copy the sources
COPY ./ ./

# Build
ARG ARCH
ARG LDFLAGS
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \
go build -a -ldflags "${LDFLAGS} -extldflags '-static'" \
-o manager .

# Copy the controller-manager into a thin image
FROM gcr.io/distroless/static:latest
WORKDIR /
COPY --from=builder /workspace/manager .
USER nobody
ENTRYPOINT ["/manager"]
10 changes: 0 additions & 10 deletions Dockerfile.rhel

This file was deleted.

Loading