Skip to content

Merge COSI API monorepo #1

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

Merged
merged 741 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
741 commits
Select commit Hold shift + click to select a range
15d318d
Compilation fix
mukhoakash Aug 5, 2022
896eb15
Merge pull request #56 from mukhoakash/api-update
k8s-ci-robot Aug 5, 2022
6f0d53f
Fixing fo dfiles and gofmt
mukhoakash Aug 5, 2022
a3420c7
Merge pull request #58 from mukhoakash/bucket-create
k8s-ci-robot Aug 5, 2022
88a51a1
Fixing a bunch of issues
mukhoakash Aug 5, 2022
1ee9051
Fixing the pkg import
mukhoakash Aug 5, 2022
cfdb293
Merge pull request #57 from mukhoakash/fix-pkg
k8s-ci-robot Aug 5, 2022
c71c1f8
Fixing the import string
mukhoakash Aug 6, 2022
5d75171
Merge pull request #58 from mukhoakash/update-import
k8s-ci-robot Aug 6, 2022
dc392d9
Fixing the go mod and sum file
mukhoakash Aug 6, 2022
2657768
Test fixes and compilation fixes
mukhoakash Aug 6, 2022
367aa59
Merge pull request #64 from mukhoakash/bucket-create
k8s-ci-robot Aug 6, 2022
8595241
Fixing the updated api version and rbac rules
mukhoakash Aug 8, 2022
d4c6266
Merge pull request #60 from mukhoakash/config-fix
k8s-ci-robot Aug 8, 2022
432a80c
Merge branch 'master' into pipeline
aarongalang Aug 8, 2022
75a70d3
Merge pull request #59 from aarongalang/pipeline
k8s-ci-robot Aug 8, 2022
d07e462
Fixing the annotation of the kustomization file
mukhoakash Aug 9, 2022
86bbd38
Merge pull request #59 from mukhoakash/fix-annotation
k8s-ci-robot Aug 10, 2022
5ad03d4
Updating go version in travis.yaml
mukhoakash Aug 11, 2022
06cda61
Merge pull request #39 from mukhoakash/update-release-tools
wlan0 Aug 11, 2022
e919add
Fixing the text in deployment guide
mukhoakash Aug 11, 2022
f806099
Merge pull request #61 from mukhoakash/typo-fix
k8s-ci-robot Aug 11, 2022
09c54a6
update kubernetes version to v1.24.0
wlan0 Aug 11, 2022
3c421cf
Merge pull request #40 from wlan0/master
wlan0 Aug 11, 2022
cd8fb04
Doc changes
mukhoakash Aug 11, 2022
7d0998e
Updating the k8s-testimages
mukhoakash Aug 11, 2022
eb27b7c
Merge pull request #62 from mukhoakash/master
wlan0 Aug 11, 2022
448a75a
Fixing the build image push
mukhoakash Aug 11, 2022
fd2cd71
Merge pull request #68 from mukhoakash/build-fix
k8s-ci-robot Aug 11, 2022
68ba92a
Create CHANGELOG-0.1.md
wlan0 Aug 15, 2022
12c6969
Merge pull request #41 from kubernetes-sigs/changelog
wlan0 Aug 15, 2022
16706f3
Create CHANGELOG-0.1.md
wlan0 Aug 15, 2022
34a8a36
Merge pull request #60 from kubernetes-sigs/changelog
wlan0 Aug 15, 2022
2d34fea
Create CHANGELOG-0.1.md
wlan0 Aug 15, 2022
d6f19c9
Merge pull request #63 from kubernetes-sigs/changelog
wlan0 Aug 15, 2022
5ddf407
Create CHANGELOG-0.1.md
wlan0 Aug 15, 2022
4e2f9b0
Merge pull request #69 from kubernetes-sigs/changelog
wlan0 Aug 15, 2022
598ce6e
Update cloudbuild.yaml
wlan0 Aug 16, 2022
71c4ffa
Merge pull request #64 from kubernetes-sigs/image-tag
k8s-ci-robot Aug 16, 2022
3b88f29
update CRDs url, and remove deleted test file in README.md
Sep 2, 2022
fabb667
fix test file path in README.md
Sep 2, 2022
6dcf292
Update Makefile
wlan0 Sep 8, 2022
912499a
Merge pull request #65 from niulechuan/fix-urls-in-readme
wlan0 Sep 8, 2022
cde23fc
Merge pull request #66 from kubernetes-sigs/wlan0-patch-1
wlan0 Sep 15, 2022
7f1fe37
Update Makefile
wlan0 Sep 15, 2022
0e0ba7c
Merge pull request #67 from kubernetes-sigs/wlan0-patch-2
k8s-ci-robot Sep 15, 2022
e3a8c80
Update Makefile
wlan0 Sep 15, 2022
e22acf6
Update cloudbuild.yaml
wlan0 Sep 15, 2022
4e9bec3
Merge pull request #72 from kubernetes-sigs/wlan0-patch-2
wlan0 Sep 15, 2022
c6e1a0c
Merge pull request #71 from kubernetes-sigs/wlan0-patch-1
wlan0 Sep 15, 2022
20e7fae
Merge pull request #70 from niulechuan/fix-test-file-path
wlan0 Sep 15, 2022
ff5c0ea
Fixing a bucketclaim object updation bug
mukhoakash Sep 19, 2022
f5d937d
Fixing a couple of update bugs
mukhoakash Sep 19, 2022
a853d9b
Adding a few logs and some fixes
mukhoakash Sep 19, 2022
8cb88ab
Fixing the update of bucketclaim to updatestatus
mukhoakash Sep 19, 2022
6fd93c5
Improving some logs
mukhoakash Sep 19, 2022
9a139ce
Improving logs and fixing a delete scenario
mukhoakash Sep 19, 2022
d9811a8
Merge pull request #68 from mukhoakash/bug-fix
k8s-ci-robot Sep 21, 2022
8271dbe
Merge pull request #73 from mukhoakash/bug-fix
k8s-ci-robot Sep 21, 2022
7fbbdbe
Adding the bucket finalizer removal
mukhoakash Sep 22, 2022
8b8d222
Fixing the finalizer of bucketclaim in bucket delete
mukhoakash Sep 28, 2022
c3f21e9
Fixing some logs and adding bucket paramaters
mukhoakash Sep 28, 2022
2a7e4aa
Fixing some parameters in case of existing bucket id
mukhoakash Sep 28, 2022
68082cc
Remove the secret on deletion of the bucketAccess
mukhoakash Sep 28, 2022
d8cfa95
Adding unittests
mukhoakash Sep 29, 2022
fc3327f
Merge pull request #69 from mukhoakash/fix-params
k8s-ci-robot Sep 29, 2022
1a0858c
Introducing delete_context to be passed with DriverDeleBucketRequest
mukhoakash Oct 6, 2022
ec78295
Merge pull request #42 from mukhoakash/deletecontext
wlan0 Oct 6, 2022
7cef856
Introducing the RevokeBucketAccess call in the delete bucket access o…
mukhoakash Oct 10, 2022
80ba720
Updating the DriverDeleteBucket call with the DeleteContext
mukhoakash Oct 10, 2022
459c723
Merge pull request #74 from mukhoakash/finalizer_fix
k8s-ci-robot Oct 13, 2022
10300e2
Fixing a typo in bucket info
mukhoakash Oct 21, 2022
d2fbc3c
Modifying owners
mukhoakash Oct 21, 2022
988b9d0
Modifying owners
mukhoakash Oct 21, 2022
e5d4dd2
Modifying owners
mukhoakash Oct 21, 2022
655cc76
Merge pull request #75 from mukhoakash/fix_owner
k8s-ci-robot Oct 27, 2022
300019f
Merge pull request #71 from mukhoakash/fix_owner
k8s-ci-robot Oct 27, 2022
76de08e
Merge pull request #62 from mukhoakash/fix_owner
k8s-ci-robot Oct 27, 2022
9c8dfba
Fixing the controller version
mukhoakash Nov 15, 2022
0d93cb0
Fix : Use value for endpoint and region from driver
thotz Nov 17, 2022
0e67387
Merge pull request #77 from thotz/fix-endpoint-region-for-s3
k8s-ci-robot Nov 17, 2022
884752d
Merge pull request #72 from mukhoakash/fix_controller_image
k8s-ci-robot Nov 22, 2022
6796fee
Migrate away from google.com gcp project k8s-testimages
cpanato Jan 30, 2023
1ac71f2
Migrate away from google.com gcp project k8s-testimages
cpanato Jan 30, 2023
eafd6fa
Merge pull request #73 from cpanato/GH-1523-k8sio
k8s-ci-robot Jan 30, 2023
c0cf995
Merge pull request #79 from cpanato/GH-1523-k8sio
k8s-ci-robot Jan 30, 2023
05200f0
feat(api): added EventRecorder n EventBroadcaster
shanduur May 11, 2023
13d31e6
fix(log): switched to structured log
shanduur May 23, 2023
928805b
chore(formatting): go fmt on the repo
shanduur May 23, 2023
5240fb3
Merge pull request #77 from shanduur/fix-log
k8s-ci-robot May 24, 2023
ee3d153
feat(bucketclaim): added EventRecorder
shanduur May 11, 2023
35c1c5c
fix(deletionPolicy): wrong case
shanduur Jun 1, 2023
660f324
fix: one more case issue
shanduur Jun 2, 2023
2504944
Merge pull request #65 from shanduur/fix-api-definition
k8s-ci-robot Jun 2, 2023
0260e75
Introduce revoke_access_context in DriverRevokeBucketAccessRequest
thotz Jun 12, 2023
684d40b
Merge pull request #44 from thotz/introduce-revoke-access-context-Dri…
wlan0 Aug 24, 2023
8ffd85b
implement mvp release tooling
BlaineEXE Sep 12, 2023
76aa8f3
Merge pull request #79 from BlaineEXE/mvp-release-tooling
k8s-ci-robot Sep 13, 2023
7e0b577
push images using PROJECT_ID in cloudbuild
BlaineEXE Sep 13, 2023
6ff51e7
Merge pull request #80 from BlaineEXE/use-project-id-in-cloudbuild
k8s-ci-robot Sep 13, 2023
4cb2621
use k8s-staging-sig-storage for cloudbuild
BlaineEXE Sep 13, 2023
3f6a151
Merge pull request #81 from BlaineEXE/use-k8s-staging-sig-storage
k8s-ci-robot Sep 13, 2023
854c289
use buildx from cloudbuild directly
BlaineEXE Sep 14, 2023
aef2d3b
Merge pull request #82 from BlaineEXE/reduce-layers-in-buildx-cloudbuild
k8s-ci-robot Sep 14, 2023
ee45c46
allow cloudbuild to build git tags
BlaineEXE Sep 14, 2023
fc2824c
revert accidental image modification in deployment
BlaineEXE Sep 14, 2023
146101b
Merge pull request #84 from BlaineEXE/fix-accidental-manifest-edit
k8s-ci-robot Sep 14, 2023
6c05a79
Merge pull request #83 from BlaineEXE/semver-tag-proposal
k8s-ci-robot Sep 14, 2023
90227d2
set up cloudbuild multi-arch builder before use
BlaineEXE Sep 14, 2023
25cd40b
Merge pull request #85 from BlaineEXE/cloudbuild-create-multiarch-bui…
k8s-ci-robot Sep 14, 2023
6daf4ce
cloudbuild: use --load flag to allow pushing images
BlaineEXE Sep 14, 2023
5fc4c3b
Merge pull request #86 from BlaineEXE/load-images-during-build
k8s-ci-robot Sep 14, 2023
bc000d7
cloudbuild: push images straight from docker build
BlaineEXE Sep 14, 2023
9ad2990
Merge pull request #87 from BlaineEXE/use-push
k8s-ci-robot Sep 15, 2023
1942868
tidy up build and make configs
BlaineEXE Sep 15, 2023
4a5c414
Merge pull request #88 from BlaineEXE/build-tidy
k8s-ci-robot Sep 19, 2023
af53be6
add dependabot config for gomod and docker
BlaineEXE Sep 20, 2023
41654d5
Merge pull request #89 from BlaineEXE/add-dependabot
k8s-ci-robot Sep 20, 2023
74ee318
remove unused prow config
BlaineEXE Sep 21, 2023
dca1efe
Update build configs to mirror controller
BlaineEXE Sep 21, 2023
82e127f
separate controller-runtime in dependabot config
BlaineEXE Sep 21, 2023
924d1cd
add dependabot config
BlaineEXE Sep 21, 2023
8d98837
Merge pull request #92 from BlaineEXE/remove-prow-sh
k8s-ci-robot Sep 21, 2023
8e23092
Merge pull request #81 from BlaineEXE/update-build-and-packaging
k8s-ci-robot Sep 21, 2023
7e7b773
Merge pull request #93 from BlaineEXE/dependabot-separate-controller-…
k8s-ci-robot Sep 21, 2023
aef9fef
Merge branch 'kubernetes-sigs:master' into master
shanduur Oct 18, 2023
812040d
Merge branch 'kubernetes-sigs:master' into master
shanduur Oct 18, 2023
9729752
feat: replace API
shanduur Oct 18, 2023
45d4532
feat: fix panic
shanduur Oct 18, 2023
0e3520c
feat: fix panic
shanduur Oct 18, 2023
df1d34a
feat: register v1alpha1 in schema
shanduur Oct 18, 2023
d9f02c3
feat: API registration
shanduur Oct 18, 2023
45dcd3d
fix: id instead of leader
shanduur Oct 18, 2023
9770045
Merge pull request #67 from shanduur/feat-event-recorder
k8s-ci-robot Nov 16, 2023
e40e69f
chore: update API
shanduur Nov 16, 2023
83a394b
fix: revert deployment change
shanduur Nov 16, 2023
cb0dca9
fix: adjust case according to go std
shanduur Nov 30, 2023
be28c72
feat(events): added volume controllers tyle events package
shanduur Nov 30, 2023
8a30877
fix(review/1): added event constants
shanduur Nov 30, 2023
5950cb6
fix(review/1): event reasons
shanduur Dec 8, 2023
c06ed1c
fix(review/1): format message
shanduur Dec 8, 2023
6376b6e
fix: typo in error
shanduur Dec 8, 2023
7e971c9
Bump library/golang from 1.21.1 to 1.21.5
dependabot[bot] Dec 11, 2023
8022a94
Merge pull request #104 from kubernetes-sigs/dependabot/docker/librar…
k8s-ci-robot Feb 5, 2024
0544427
Merge pull request #68 from shanduur/add-event-consts
k8s-ci-robot Feb 8, 2024
adeb010
feat(bucket|bucketaccess): added EventRecorder
shanduur May 11, 2023
17e08b2
feat: replace API
shanduur Oct 18, 2023
c2438fa
fix: rename the tag
shanduur Oct 18, 2023
2cceac4
feat: API registration
shanduur Oct 18, 2023
621cf91
chore: update API
shanduur Nov 16, 2023
37e4348
fix(review/1): added event constants
shanduur Nov 30, 2023
41812bd
fix(review/1): format message
shanduur Dec 8, 2023
0092bea
chore: errors cleanup
shanduur Dec 8, 2023
958ba19
fix(deps): updated api
shanduur Feb 13, 2024
3fd9a83
fix(deps): updated api
shanduur Feb 13, 2024
a54e178
test: added scaffolding for testing events
shanduur Feb 13, 2024
029a5ae
test: added scaffolding for testing events
shanduur Feb 13, 2024
3749eb6
test: extended scaffolding
shanduur Feb 14, 2024
eafb146
test: implemented tests for Events
shanduur Feb 15, 2024
edad614
test: extended scaffolding
shanduur Feb 14, 2024
b6505b7
test(bucket): added event tests
shanduur Feb 22, 2024
2e33d55
chore: go mod tidy
shanduur Feb 16, 2024
ac094de
chore: streamline errors
shanduur Feb 22, 2024
172591d
test(bucketaccess): added event tests
shanduur Feb 22, 2024
b95108e
test(bucket): added unwrap to internals
shanduur Feb 22, 2024
d4a1a67
fix: added events to each error
shanduur Mar 14, 2024
76bbcfc
fix: added events to each error
shanduur Mar 14, 2024
5f57d7f
Bump the github-dependencies group with 2 updates
dependabot[bot] Mar 25, 2024
6b51239
Bump library/golang from 1.21.1 to 1.22.2
dependabot[bot] Apr 8, 2024
a807c31
Bump library/golang from 1.21.5 to 1.22.2
dependabot[bot] Apr 8, 2024
454154d
Bump google.golang.org/grpc from 1.46.2 to 1.63.2
dependabot[bot] Apr 15, 2024
e776030
Merge pull request #124 from kubernetes-sigs/dependabot/docker/librar…
k8s-ci-robot Apr 23, 2024
1339039
Merge pull request #125 from kubernetes-sigs/dependabot/go_modules/go…
k8s-ci-robot Apr 23, 2024
6a91ed8
Merge pull request #117 from kubernetes-sigs/dependabot/go_modules/gi…
k8s-ci-robot May 6, 2024
dca8c57
Merge pull request #121 from kubernetes-sigs/dependabot/docker/librar…
k8s-ci-robot May 6, 2024
e568672
Add BlaineEXE to owners file
BlaineEXE May 13, 2024
2e50764
Add BlaineEXE to the owners file
BlaineEXE May 13, 2024
5518cd8
Add BlaineEXE to the owners file
BlaineEXE May 13, 2024
b58387f
Add BlaineEXE to the owners file
BlaineEXE May 13, 2024
8760f88
Merge pull request #125 from BlaineEXE/patch-1
k8s-ci-robot May 13, 2024
efb3255
Merge pull request #127 from BlaineEXE/patch-1
k8s-ci-robot May 13, 2024
ef50c7a
Merge pull request #47 from BlaineEXE/patch-1
k8s-ci-robot May 13, 2024
273b906
Merge pull request #69 from BlaineEXE/patch-1
k8s-ci-robot May 13, 2024
fdfae45
Bump library/golang from 1.22.2 to 1.22.3
dependabot[bot] May 13, 2024
5b9f71a
Merge pull request #92 from shanduur/feat-event-recorder
k8s-ci-robot May 16, 2024
944f7c9
Merge pull request #101 from shanduur/feat-event-recorder
k8s-ci-robot May 16, 2024
817dc4b
chore: added shanduur
shanduur May 17, 2024
b66cd17
chore: added shanduur
shanduur May 17, 2024
3baa065
chore: added shanduur
shanduur May 17, 2024
9f7a984
chore: added shanduur
shanduur May 17, 2024
29504fc
Merge pull request #70 from shanduur/add-owner-shanduur
k8s-ci-robot May 20, 2024
af07061
Merge pull request #48 from shanduur/add-owner-shanduur
k8s-ci-robot May 20, 2024
38b4915
Merge pull request #127 from shanduur/add-owner-shanduur
k8s-ci-robot May 20, 2024
bf5ff2a
Merge pull request #130 from shanduur/add-owner-shanduur
k8s-ci-robot May 20, 2024
c6639d0
Bump the github-dependencies group with 2 updates
dependabot[bot] Jun 3, 2024
967d450
Merge pull request #128 from kubernetes-sigs/dependabot/docker/librar…
k8s-ci-robot Jun 4, 2024
80979e8
Merge pull request #132 from kubernetes-sigs/dependabot/go_modules/gi…
k8s-ci-robot Jun 4, 2024
605062d
Add 'pkg/imported-controller/' from commit '38b4915c1bbc6b63144fa8135…
BlaineEXE Jun 4, 2024
19d5477
Merge pull request #72 from BlaineEXE/merge-add-imported-controller
xing-yang Jun 13, 2024
91b299a
Add 'pkg/imported-sidecar/' from commit '80979e8992a6a2b2166f3ff1e7d3…
BlaineEXE Jun 14, 2024
beaa914
Merge pull request #74 from BlaineEXE/merge-add-imported-sidecar
xing-yang Jun 14, 2024
71e6351
Add 'pkg/imported-grpc/' from commit 'af070610a0e16b5713c5e248eb84fa7…
BlaineEXE Jun 14, 2024
9b8d302
Merge pull request #77 from BlaineEXE/merge-add-imported-grpc-spec
xing-yang Jun 14, 2024
ab36b8a
monorepo: move api directories into ./client
BlaineEXE Jun 14, 2024
276cf4b
Merge pull request #78 from BlaineEXE/start-api-reorg
k8s-ci-robot Jun 20, 2024
4ebb2a4
monorepo: update client/api generators
BlaineEXE Jun 21, 2024
330903d
Merge pull request #79 from BlaineEXE/modernize-client-gen
k8s-ci-robot Jun 21, 2024
58599b8
monorepo: move imported gRPC core files to ./proto
BlaineEXE Jul 12, 2024
1bdaaba
proto: fake-gen fix go deprecations
BlaineEXE Jul 12, 2024
0ccbc06
proto: update to latest grpc protobuf gen tools
BlaineEXE Jul 13, 2024
48247f2
Merge pull request #80 from BlaineEXE/proto-dir
k8s-ci-robot Jul 25, 2024
e01674c
Fix recording events
kvaps Aug 1, 2024
a56c8d1
Merge pull request #85 from aenix-io/master
k8s-ci-robot Aug 1, 2024
28765d5
monorepo: move event reason defs to api
BlaineEXE Aug 6, 2024
6b2bf97
Merge pull request #89 from BlaineEXE/move-events
k8s-ci-robot Aug 8, 2024
471a592
monorepo: rename 'controller' to 'internal/runtime'
BlaineEXE Aug 6, 2024
e38b4a8
Merge pull request #90 from BlaineEXE/rename-controller-to-runtime
k8s-ci-robot Aug 8, 2024
cc672f4
monorepo: move imported controller to 'controller'
BlaineEXE Aug 8, 2024
fed8fca
Merge pull request #91 from BlaineEXE/monorepo-controller
k8s-ci-robot Aug 9, 2024
de8ed6f
monorepo: move imported sidecar to 'sidecar'
BlaineEXE Aug 9, 2024
00090de
Merge pull request #92 from BlaineEXE/monorepo-sidecar
k8s-ci-robot Aug 10, 2024
e37b86f
standardize make tooling with top level Makefile
BlaineEXE Aug 15, 2024
e9d5dfb
Merge pull request #93 from BlaineEXE/unified-make
k8s-ci-robot Aug 28, 2024
89f3653
add kubebuilder suggested e2e and lint targets
BlaineEXE Sep 6, 2024
0c28097
set up new release tooling for controller/sidecar subrepos
BlaineEXE Sep 10, 2024
7aa96a5
chore(e2e): ctlptl config for KinD cluster
shanduur Aug 23, 2024
4537562
test(e2e): add test suite for S3 Key authentication
shanduur Aug 23, 2024
caef566
test(e2e): add test suite for S3 IAM authentication
shanduur Aug 23, 2024
2b58a08
test(e2e): add test suite for Azure IAM authentication
shanduur Aug 23, 2024
74cecc5
test(e2e): add test suite for Azure Key authentication
shanduur Aug 23, 2024
e0d58f4
feat: prepare for generator
shanduur Sep 3, 2024
acc05c2
feat: add test generator
shanduur Sep 3, 2024
bad8432
chore: prepare for values file
shanduur Sep 5, 2024
77e688e
refactor: values bindings and functions instead of templating
shanduur Sep 5, 2024
5118025
fix: add readme to tests
shanduur-akamai Sep 26, 2024
f96c07a
Merge pull request #96 from BlaineEXE/add-e2e-lint-targets
k8s-ci-robot Sep 27, 2024
bec5d8e
Merge pull request #97 from BlaineEXE/cloudbuild
k8s-ci-robot Sep 27, 2024
6c59921
Merge pull request #94 from shanduur/cosi-test-chainsaw
k8s-ci-robot Sep 30, 2024
41a0824
remove unused components of merged repos
BlaineEXE Oct 8, 2024
794471d
Merge pull request #99 from BlaineEXE/cleanup-unused-imported-repos
k8s-ci-robot Oct 10, 2024
1cc5c46
Update kustomize deployment and readme
BlaineEXE Oct 8, 2024
031f205
change go vendor strategy
BlaineEXE Oct 25, 2024
f1ff798
Merge pull request #102 from BlaineEXE/vendor-changes
k8s-ci-robot Oct 29, 2024
d662406
Merge pull request #100 from BlaineEXE/fix-kustomize-install
k8s-ci-robot Oct 29, 2024
9e69bc9
feat: added make targets to manage tools
shanduur Nov 7, 2024
cb5cd45
feat: execute tests in makefile
shanduur Nov 7, 2024
edf85cd
fixup! feat: added make targets to manage tools
shanduur Nov 13, 2024
3eb11da
docs: improve help comments in make
shanduur Nov 21, 2024
15bf2bb
Merge pull request #108 from shanduur/make-test
k8s-ci-robot Nov 21, 2024
5fa5cf7
Merge COSI API 'upstream/monorepo' onto master/main
BlaineEXE Nov 22, 2024
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug Report
about: Use this template for reporting bugs or issues.
title: "[DATE] - Title"
labels: bug
---
# Bug Report

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->

**What happened**:

**What you expected to happen**:

**How to reproduce this bug (as minimally and precisely as possible)**:

**Anything else relevant for this bug report?**:

**Environment**:

- Kubernetes version (use `kubectl version`), please list client and server:
- Sidecar version (provide the release tag or commit hash):
- Provisoner name and version (provide the release tag or commit hash):
- Cloud provider or hardware configuration:
- OS (e.g: `cat /etc/os-release`):
- Kernel (e.g. `uname -a`):
- Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Enhancement/Feature Request
about: Use this template to request a new feature or enhancement for the COSI API
title: "[DATE] - Title"
---
# Enhancement

**Is your feature request related to a problem?/Why is this needed**
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

**Describe the solution you'd like in detail**
<!-- A clear and concise description of what you want to happen. -->

**Describe alternatives you've considered**
<!-- A clear and concise description of any alternative solutions or features you've considered. -->

**Additional context**
<!-- Add any other context or screenshots about the feature request or enhancement here. -->
14 changes: 14 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Security Policy

## Supported Versions

Information about supported Kubernetes versions can be found on the
[Kubernetes version and version skew support policy] page on the Kubernetes website.

## Reporting a Vulnerability

Instructions for reporting a vulnerability can be found on the
[Kubernetes Security and Disclosure Information] page.

[Kubernetes version and version skew support policy]: https://kubernetes.io/docs/setup/release/version-skew-policy/#supported-versions
[Kubernetes Security and Disclosure Information]: https://kubernetes.io/docs/reference/issues-security/security/#report-a-vulnerability
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.tmp
.DS_Store
.build
*.swp
release-tools
.idea
travis.yml
.cache
47 changes: 47 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
run:
timeout: 5m
allow-parallel-runners: true

issues:
# don't skip warning about doc comments
# don't exclude the default set of lint
exclude-use-default: false
# restore some of the defaults
# (fill in the rest as needed)
exclude-rules:
- path: "apis/*"
linters:
- lll
- path: "internal/*"
linters:
- dupl
- lll
linters:
disable-all: true
enable:
- copyloopvar
- dupl
- errcheck
- ginkgolinter
- goconst
- gocyclo
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- typecheck
- unconvert
- unparam
- unused

linters-settings:
revive:
rules:
- name: comment-spacings
16 changes: 16 additions & 0 deletions CHANGELOG/CHANGELOG-0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# First Release v0.1.0

### New Features

- API v1alpha1 for Bucket* resources and respective controllers

### Thanks to our contributors

- wlan0
- krishchow
- mukhoakash
- brahmaroutu
- tparikh
- thotz

and others
212 changes: 212 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# Copyright 2020 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.

.DEFAULT_GOAL := help
.SUFFIXES: # remove legacy builtin suffixes to allow easier make debugging
SHELL = /usr/bin/env bash

.PHONY: help
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

# If GOARCH is not set in the env, find it
GOARCH ?= $(shell go env GOARCH)

##
## ==== ARGS ===== #

## Container build tool compatible with `docker` API
DOCKER ?= docker

## Platform for 'build'
PLATFORM ?= linux/$(GOARCH)

## Additional args for 'build'
BUILD_ARGS ?=

## Image tag for controller image build
CONTROLLER_TAG ?= cosi-controller:latest

## Image tag for sidecar image build
SIDECAR_TAG ?= cosi-provisioner-sidecar:latest

## Location to install dependencies to
TOOLBIN ?= $(CURDIR)/.cache/tools
$(TOOLBIN):
mkdir -p $(TOOLBIN)

##@ Development

.PHONY: all .gen
.gen: generate codegen # can be done in parallel with 'make -j'
.NOTPARALLEL: all # codegen must be finished before fmt/vet
all: .gen fmt vet build ## Build all targets, plus their prerequisites (faster with 'make -j')

.PHONY: generate
generate: controller/Dockerfile sidecar/Dockerfile ## Generate files
$(MAKE) -C client crds
$(MAKE) -C proto generate

.PHONY: codegen
codegen: codegen.client codegen.proto ## Generate code

.PHONY: fmt
fmt: fmt.client fmt.controller fmt.sidecar ## Format code

.PHONY: vet
vet: vet.client vet.controller vet.sidecar ## Vet code

.PHONY: test
test: .test.proto test.client test.controller test.sidecar ## Run tests including unit tests

.PHONY: test-e2e
test-e2e: chainsaw # Run e2e tests against the K8s cluster specified in ~/.kube/config. It requires both controller and driver deployed. If you need to create a cluster beforehand, consider using 'cluster' and 'deploy' targets.
$(CHAINSAW) test --values ./test/e2e/values.yaml

.PHONY: lint
lint: golangci-lint.client golangci-lint.controller golangci-lint.sidecar ## Run all linters (suggest `make -k`)

.PHONY: lint-fix
lint-fix: golangci-lint-fix.client golangci-lint-fix.controller golangci-lint-fix.sidecar ## Run all linters and perform fixes where possible (suggest `make -k`)

##@ Build

.PHONY: build
build: build.controller build.sidecar ## Build all container images for development

.PHONY: build.controller build.sidecar
build.controller: controller/Dockerfile ## Build only the controller container image
$(DOCKER) build --file controller/Dockerfile --platform $(PLATFORM) $(BUILD_ARGS) --tag $(CONTROLLER_TAG) .
build.sidecar: sidecar/Dockerfile ## Build only the sidecar container image
$(DOCKER) build --file sidecar/Dockerfile --platform $(PLATFORM) $(BUILD_ARGS) --tag $(SIDECAR_TAG) .

.PHONY: clean
## Clean build environment
clean:
$(MAKE) -C proto clean

.PHONY: clobber
## Clean build environment and cached tools
clobber:
$(MAKE) -C proto clobber
rm -rf $(TOOLBIN)
rm -rf $(CURDIR)/.cache

##
## === INTERMEDIATES === #

%/Dockerfile: hack/Dockerfile.in hack/gen-dockerfile.sh
hack/gen-dockerfile.sh $* > "$@"

codegen.%: FORCE
$(MAKE) -C $* codegen

fmt.%: FORCE
cd $* && go fmt ./...

vet.%: FORCE
cd $* && go vet ./...

test.%: fmt.% vet.% FORCE
cd $* && go test ./...

# golangci-lint --new flag only complains about new code
golangci-lint.%: $(GOLANGCI_LINT)
cd $* && $(GOLANGCI_LINT) run --config $(CURDIR)/.golangci.yaml --new

golangci-lint-fix.%: $(GOLANGCI_LINT)
cd $* && $(GOLANGCI_LINT) run --config $(CURDIR)/.golangci.yaml --new --fix

.PHONY: .test.proto
.test.proto: # gRPC proto has a special unit test
$(MAKE) -C proto check

.PHONY: FORCE # use this to force phony behavior for targets with pattern rules
FORCE:

##@ Deployment

.PHONY: cluster
cluster: kind ctlptl ## Create Kind cluster and local registry
$(CTLPTL) apply -f ctlptl.yaml

.PHONY: cluster-reset
cluster-reset: kind ctlptl ## Delete Kind cluster
$(CTLPTL) delete -f ctlptl.yaml

.PHONY: deploy
deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. The 'generate' and 'codegen' targets should be run manually, and are expected to be run at least once before the 'deploy' target, as those are not cached.
$(KUSTOMIZE) build . | $(KUBECTL) apply -f -

.PHONY: undeploy
undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build . | $(KUBECTL) delete --ignore-not-found=true -f -

##@ Tools

## Tool Binaries
CHAINSAW ?= $(TOOLBIN)/chainsaw
CTLPTL ?= $(TOOLBIN)/ctlptl
GOLANGCI_LINT ?= $(LOCALBIN)/golangci-lint
KIND ?= $(TOOLBIN)/kind
KUBECTL ?= kubectl ## Special case, we do not manage it via tools.go
KUSTOMIZE ?= $(TOOLBIN)/kustomize

## Tool Versions
CHAINSAW_VERSION ?= $(shell grep 'github.com/kyverno/chainsaw ' ./hack/tools/go.mod | cut -d ' ' -f 2)
CTLPTL_VERSION ?= $(shell grep 'github.com/tilt-dev/ctlptl ' ./hack/tools/go.mod | cut -d ' ' -f 2)
GOLANGCI_LINT_VERSION ?= $(shell grep 'github.com/golangci/golangci-lint ' ./hack/tools/go.mod | cut -d ' ' -f 2)
KIND_VERSION ?= $(shell grep 'sigs.k8s.io/kind ' ./hack/tools/go.mod | cut -d ' ' -f 2)
KUSTOMIZE_VERSION ?= $(shell grep 'sigs.k8s.io/kustomize/kustomize/v5 ' ./hack/tools/go.mod | cut -d ' ' -f 2)

.PHONY: chainsaw
chainsaw: $(CHAINSAW)$(CHAINSAW_VERSION) ## Download chainsaw locally if necessary.
$(CHAINSAW)$(CHAINSAW_VERSION): $(TOOLBIN)
$(call go-install-tool,$(CHAINSAW),github.com/kyverno/chainsaw,$(CHAINSAW_VERSION))

.PHONY: ctlptl
ctlptl: $(CTLPTL)$(CTLPTL_VERSION) ## Download ctlptl locally if necessary.
$(CTLPTL)$(CTLPTL_VERSION): $(TOOLBIN)
$(call go-install-tool,$(CTLPTL),github.com/tilt-dev/ctlptl/cmd/ctlptl,$(CTLPTL_VERSION))

.PHONY: golangci-lint
golangci-lint: $(GOLANGCI_LINT)$(GOLANGCI_LINT_VERSION) ## Download golangci-lint locally if necessary.
$(GOLANGCI_LINT)$(GOLANGCI_LINT_VERSION): $(LOCALBIN)
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint,$(GOLANGCI_LINT_VERSION))

.PHONY: kind
kind: $(KIND)$(KIND_VERSION) ## Download kind locally if necessary.
$(KIND)$(KIND_VERSION): $(TOOLBIN)
$(call go-install-tool,$(KIND),sigs.k8s.io/kind,$(KIND_VERSION))

.PHONY: kustomize
kustomize: $(KUSTOMIZE)$(KUSTOMIZE_VERSION) ## Download kustomize locally if necessary.
$(KUSTOMIZE)$(KUSTOMIZE_VERSION): $(TOOLBIN)
$(call go-install-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/v5,$(KUSTOMIZE_VERSION))

# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
# $1 - target path with name of binary
# $2 - package url which can be installed
# $3 - specific version of package
define go-install-tool
@[ -f "$(1)-$(3)" ] || { \
set -e; \
package=$(2)@$(3) ;\
echo "Downloading $${package}" ;\
rm -f $(1) || true ;\
GOBIN=$(TOOLBIN) go install $${package} ;\
mv $(1) $(1)-$(3) ;\
} ;\
ln -sf $(1)-$(3) $(1)
endef
3 changes: 3 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ approvers:
- saad-ali
- shanduur
- xing-yang
emeritus_approvers:
- wlan0 # 2024-11-22
- mukhoakash # 2024-11-22
Loading