Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Test branch merging with subtrees #71

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
343 commits
Select commit Hold shift + click to select a range
23df4ae
prow.sh: use vendor directory if available
pohly Nov 4, 2019
8067845
travis.yml: also use vendor directory
pohly Nov 4, 2019
ee22a9c
Merge pull request #42 from pohly/use-vendor-dir
k8s-ci-robot Nov 4, 2019
f41c135
prow.sh: also log output of system containers
pohly Nov 5, 2019
4fcafec
Merge pull request #43 from pohly/system-pod-logging
k8s-ci-robot Nov 6, 2019
83a4ef1
Adding build for ppc64le
Pensu Nov 19, 2019
1eaaaa1
Delete kind cluster after tests run.
mucahitkurt Nov 16, 2019
a41f386
Merge pull request #46 from mucahitkurt/kind-cluster-cleanup
k8s-ci-robot Nov 21, 2019
003c14b
Add snapshotter CRDs after cluster setup
ggriffiths Nov 12, 2019
8adde49
Merge pull request #45 from ggriffiths/snapshot_beta_crds
k8s-ci-robot Nov 25, 2019
6d674a7
Merge pull request #47 from Pensu/multi-arch
k8s-ci-robot Nov 26, 2019
80bba1f
Use kind v0.6.0
darkowlzz Nov 29, 2019
4ff2f5f
Merge pull request #50 from darkowlzz/kind-0.6.0
k8s-ci-robot Dec 2, 2019
9a7a685
Create a kind cluster with two worker nodes so that the topology feat…
msau42 Dec 3, 2019
53888ae
Improve README by adding an explicit Kubernetes dependency section
msau42 Dec 4, 2019
4ad6949
Improve snapshot pod running checks and improve version_gt
ggriffiths Dec 4, 2019
d7c69d2
Merge pull request #51 from msau42/enable-multinode
k8s-ci-robot Dec 4, 2019
771ca6f
Merge pull request #49 from ggriffiths/prowsh_improve_version_gt
k8s-ci-robot Dec 4, 2019
a4e6299
fix syntax for ppc64le build
msau42 Dec 4, 2019
540599b
Merge pull request #53 from msau42/fix-make
k8s-ci-robot Dec 4, 2019
9ace020
Merge pull request #52 from msau42/update-readme
k8s-ci-robot Dec 6, 2019
b98b2ae
Enable snapshot tests in 1.17 to be run in non-alpha jobs.
msau42 Dec 17, 2019
9f1f3dd
Merge pull request #56 from msau42/enable-snapshots
k8s-ci-robot Dec 18, 2019
fc80975
Fix version_gt to work with kubernetes prefix
ggriffiths Dec 21, 2019
f6c74b3
Merge pull request #57 from ggriffiths/version_gt_kubernetes_fix
k8s-ci-robot Dec 23, 2019
af9549b
Update prow hostpath driver version to 1.3.0-rc2
saad-ali Jan 2, 2020
5f444b8
Merge pull request #60 from saad-ali/updateHostpathVersion
k8s-ci-robot Jan 2, 2020
8b0316c
Fix overriding of junit results by using unique names for each e2e run
msau42 Jan 2, 2020
3c463fb
Merge pull request #61 from msau42/enable-snapshots
k8s-ci-robot Jan 2, 2020
8191eab
Update snapshotter to version v2.0.0
ggriffiths Jan 8, 2020
4cc9174
Merge pull request #64 from ggriffiths/snapshotter_2_version_update
k8s-ci-robot Jan 8, 2020
6582f2f
Update hostpath driver version to get fix for connection-timeout
msau42 Jan 10, 2020
23be652
Merge pull request #65 from msau42/update-hostpath
k8s-ci-robot Jan 10, 2020
ac8a021
Document the process for releasing a new sidecar
msau42 Dec 12, 2019
ff3cc3f
Merge pull request #54 from msau42/add-release-process
k8s-ci-robot Jan 13, 2020
fa90abd
fix incorrect link
windayski Jan 19, 2020
3c34b4f
Merge pull request #67 from windayski/fix-link
k8s-ci-robot Jan 24, 2020
84f78b1
prow.sh: generic driver installation
pohly Feb 10, 2020
5f74333
prow.sh: also configure feature gates for kubelet
pohly Feb 10, 2020
a1432bc
Merge pull request #70 from pohly/kubelet-feature-gates
k8s-ci-robot Feb 10, 2020
d717c8c
Merge pull request #69 from pohly/test-driver-config
k8s-ci-robot Feb 10, 2020
fdb3218
Change 'make test-vet' to call 'go vet'
wozniakjan Feb 13, 2020
b8587b2
Merge pull request #71 from wozniakjan/test-vet
k8s-ci-robot Feb 13, 2020
7c5a89c
prow.sh: use 1.3.0 hostpath driver for testing
pohly Feb 14, 2020
8322a7d
Merge pull request #72 from pohly/hostpath-update
k8s-ci-robot Feb 14, 2020
3863a0f
build for multiple platforms only in CI, add s390x
pohly Mar 4, 2020
4cf843f
Merge pull request #76 from pohly/build-targets
k8s-ci-robot Mar 4, 2020
7edc146
Update snapshotter to version 2.0.1
ggriffiths Mar 11, 2020
152396e
Merge pull request #77 from ggriffiths/snapshotter201_update
k8s-ci-robot Mar 11, 2020
ea1f94a
update release tools instructions
msau42 Apr 17, 2020
c1bdf5b
Merge pull request #80 from msau42/add-release-process
k8s-ci-robot Apr 17, 2020
d8c76fe
Support local snapshot RBAC for pull jobs
ggriffiths Apr 16, 2020
0fcc3b1
Merge pull request #78 from ggriffiths/fix_csi_snapshotter_rbac_versi…
k8s-ci-robot Apr 20, 2020
6f2322e
Update patch release notes generation command
msau42 Apr 23, 2020
9084fec
Merge pull request #81 from msau42/add-release-process
k8s-ci-robot Apr 27, 2020
bd41690
cloud build: initial set of shared files
pohly May 28, 2020
17dde9e
Merge pull request #87 from pohly/cloud-build
k8s-ci-robot May 28, 2020
4569f27
build.make: fix push-multiarch ambiguity
pohly Jun 3, 2020
5231f05
build.make: properly declare push-multiarch
pohly Jun 3, 2020
340e082
build.make: optional inclusion of Windows in multiarch images
pohly Jun 3, 2020
be902f4
Merge pull request #88 from pohly/multiarch-windows-fix
k8s-ci-robot Jun 3, 2020
db0c2a7
cloud build: initialize support for running commands in Dockerfile
pohly Jun 4, 2020
c5fd961
Merge pull request #89 from pohly/cloud-build-binfmt
k8s-ci-robot Jun 8, 2020
3df86b7
cloud build: k8s-staging-sig-storage
pohly Jun 12, 2020
0d5bd84
Merge pull request #90 from pohly/k8s-staging-sig-storage
k8s-ci-robot Jun 12, 2020
43e50d6
prow.sh: enable building arm64 image
cyb70289 Jun 16, 2020
f5a4203
Merge pull request #91 from cyb70289/arm64
k8s-ci-robot Jun 16, 2020
36ea4ff
filter-junit: Fix golint error
animeshk08 Jun 17, 2020
0676fcb
Merge pull request #92 from animeshk08/patch-1
k8s-ci-robot Jun 18, 2020
5a54e67
filter-junit: Fix gofmt error
animeshk08 Jun 18, 2020
41ec6d1
Merge pull request #93 from animeshk08/patch-1
k8s-ci-robot Jun 18, 2020
1fdf2d5
cloud build: bump timeout in Prow job
namrata-ibm Jul 8, 2020
0345a83
Merge pull request #94 from linux-on-ibm-z/bump-timeout
k8s-ci-robot Jul 8, 2020
e7053d5
Initial commit
nikhita Jul 22, 2020
2460086
Update template files to include repo-specific info
nikhita Jul 22, 2020
843bddc
Add steps on promoting release images
msau42 Aug 5, 2020
d8a2530
Merge pull request #95 from msau42/add-release-process
k8s-ci-robot Aug 7, 2020
82d108a
switch to Go 1.15
pohly Aug 12, 2020
1fbb636
Merge pull request #97 from pohly/go-1.15
k8s-ci-robot Aug 12, 2020
3b4a2f1
prow.sh: fix installing Go for Kubernetes 1.19.0
pohly Aug 14, 2020
0979c09
prow.sh: fix E2E suite for Kubernetes >= 1.18
pohly Aug 14, 2020
60e1cd3
Merge pull request #98 from pohly/kubernetes-1-19-fixes
k8s-ci-robot Aug 14, 2020
2c09846
Add cleanup instructions to release-notes generation
msau42 Aug 24, 2020
f928ea6
adds issue templates to COSI controller
Sep 15, 2020
e73c2ce
Use staging registry for canary tests
msau42 Sep 26, 2020
d129462
Document new method for adding CI jobs are new K8s versions
msau42 Sep 26, 2020
0b09976
adds security policy for controller
Sep 28, 2020
1e49ef6
added provisioner line to bug_report
Sep 28, 2020
e53f3e8
Merge pull request #103 from msau42/fix-canary
k8s-ci-robot Sep 29, 2020
90da483
Merge pull request #2 from krishchow/issue_template
k8s-ci-robot Oct 1, 2020
b3c65f9
Merge pull request #99 from msau42/add-release-process
k8s-ci-robot Oct 5, 2020
7100c12
Only set staging registry when running canary job
msau42 Oct 6, 2020
a0f195c
Merge pull request #106 from msau42/fix-canary
k8s-ci-robot Oct 6, 2020
c41abb6
Add 'release-tools/' from commit 'a0f195cc2ddc2a1f07d4d3e46fc08187db3…
brahmaroutu Oct 7, 2020
241a7a7
Merge pull request #3 from brahmaroutu/add_release_tools
k8s-ci-robot Oct 7, 2020
f1a048d
Add approvers to facilitate project management
brahmaroutu Oct 23, 2020
465b16f
We maintain release tools only under Spec repo
brahmaroutu Oct 22, 2020
5ff804c
Merge pull request #5 from brahmaroutu/remove_release_tools
k8s-ci-robot Oct 23, 2020
b963927
Basic makefile template to get release tools
brahmaroutu Oct 26, 2020
080cd42
Merge pull request #4 from brahmaroutu/add_approvers
k8s-ci-robot Oct 26, 2020
87c7a4f
Merge pull request #6 from brahmaroutu/makefile_template
k8s-ci-robot Nov 9, 2020
0078523
Adding bucketrequest controller
brahmaroutu Nov 25, 2020
c330fbd
Merge pull request #7 from brahmaroutu/controller_code
k8s-ci-robot Dec 8, 2020
ddc3f1e
Fix kubeconfig flag
mkumatag Dec 9, 2020
4452678
Merge pull request #16 from mkumatag/fix_kubeconfig
k8s-ci-robot Dec 9, 2020
2a29305
Added Kustomize for controller, sidecar & CRDs
tparikh Dec 10, 2020
449e61e
Merge pull request #18 from tparikh/kustomize
k8s-ci-robot Dec 10, 2020
84ffaba
Adding BucketAccess Add Functionality, Fix cmd controller and pass co…
brahmaroutu Dec 4, 2020
09366ec
Merge pull request #15 from brahmaroutu/controller_code_ba
k8s-ci-robot Dec 14, 2020
7f1fc71
Move `kustomization.yaml` into its layer, `deploy/base`
NicolasT Dec 17, 2020
2a599bb
deploy: don't override images
NicolasT Dec 17, 2020
912611a
deploy: don't use `IfNotPresent` `imagePullPolicy` for `latest` images
NicolasT Dec 17, 2020
b5e4dc3
deploy: create `fullstack` Kustomize layer
NicolasT Dec 17, 2020
e8242ea
deploy: add some common labels to all objects
NicolasT Dec 17, 2020
6d19b49
deploy: restore namespace handling in `fullstack` overlay
NicolasT Dec 17, 2020
f6867a0
Merge pull request #26 from NicolasT/refactor-kustomize-deployment
k8s-ci-robot Dec 17, 2020
7c519fe
deploy: use `crds` Kustomization from the API repo
NicolasT Dec 17, 2020
20d2924
Merge pull request #27 from NicolasT/crds-base
k8s-ci-robot Dec 18, 2020
ee42636
Fix the build files so that prow job can run successfully
brahmaroutu Jan 5, 2021
d79d353
Merge pull request #30 from brahmaroutu/fix_build
k8s-ci-robot Jan 5, 2021
8e846a7
Refactor Kustomize templates
tparikh Jan 12, 2021
7287c3d
Merge pull request #32 from tparikh/kustomize-refactor
k8s-ci-robot Jan 12, 2021
020bacd
fix race condition while creating buckets
wlan0 Jan 12, 2021
6654310
Merge pull request #33 from wlan0/master
k8s-ci-robot Jan 13, 2021
11dd1df
fix rbac rules and check for errors getting bucketclass
wlan0 Jan 13, 2021
192f68c
Merge pull request #34 from wlan0/master
k8s-ci-robot Jan 14, 2021
aa1ed3d
Fixing build for the api changes to Protocol
brahmaroutu Jan 20, 2021
1104ccb
Merge pull request #36 from brahmaroutu/fix_api_changes
k8s-ci-robot Feb 11, 2021
5ce49a9
first readme draft
YiannisGkoufas Feb 18, 2021
d4d4943
Add deployment documentation
Feb 23, 2021
4dd818a
fix for CRDs generation
YiannisGkoufas Feb 23, 2021
d7f8441
Merge pull request #37 from YiannisGkoufas/master
k8s-ci-robot Mar 3, 2021
89e8139
Merge pull request #38 from mengjiao-liu/add-deployment-doc
k8s-ci-robot Mar 3, 2021
80749df
imports should change to sigs.k8s.io/container-object-storage-interfa…
YiannisGkoufas Mar 4, 2021
487fef2
Update README.md
YiannisGkoufas Mar 4, 2021
c357290
Merge pull request #40 from YiannisGkoufas/fix-imports
k8s-ci-robot Mar 10, 2021
ca40b1d
update api version & glog -> klog
wlan0 Mar 15, 2021
a937f42
Merge pull request #42 from wlan0/api-klog-update
k8s-ci-robot Mar 17, 2021
86d764b
Merge pull request #41 from YiannisGkoufas/patch-1
k8s-ci-robot Mar 22, 2021
2869aa0
added cloudbuiild.yaml
tparikh Mar 24, 2021
266ad28
Merge pull request #44 from tparikh/cloudbuild
k8s-ci-robot Mar 24, 2021
b3d45ee
Code refactoring to make sure Buckets abd BucketAccess Add works corr…
brahmaroutu Apr 10, 2021
c784ac4
Merge pull request #47 from brahmaroutu/code_refactor
k8s-ci-robot Apr 14, 2021
69024a6
update api version
Apr 14, 2021
197dbfa
Merge pull request #48 from krishchow/update-api
k8s-ci-robot Apr 15, 2021
23f6833
move to sigs.k8s.io, remove retry logic in cosi-controller
Apr 19, 2021
d03683d
Merge pull request #49 from krishchow/demo-prep
k8s-ci-robot Apr 23, 2021
f1ac329
updated api/controller, adds bar/br finalizer logic
May 11, 2021
1da835f
Merge pull request #52 from krishchow/finalizers
k8s-ci-robot May 19, 2021
5c2742d
updated README.md
tparikh May 25, 2021
b11aa04
Merge pull request #53 from tparikh/readme-updates
k8s-ci-robot May 26, 2021
302316c
bug 54: finalizer update fix
Jun 3, 2021
a23ec2b
Merge pull request #55 from krishchow/finalizers
k8s-ci-robot Jun 15, 2021
cdbc10e
Adding the bucket creation flow
mukhoakash Jul 26, 2022
126717f
Removing bucket access request
mukhoakash Jul 28, 2022
42b2317
More changes
mukhoakash Jul 28, 2022
c1bd0eb
Added push to Cloudbuild.yaml and swapped out quay.io with gcr repo
aarongalang Jul 29, 2022
f263c96
More updates to the bucket claim controller
mukhoakash Aug 4, 2022
090921d
Updating the go mod and go sum and fixing compilation
mukhoakash Aug 5, 2022
15d318d
Compilation fix
mukhoakash 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
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
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
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
2d34fea
Create CHANGELOG-0.1.md
wlan0 Aug 15, 2022
d6f19c9
Merge pull request #63 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
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
ff5c0ea
Fixing a bucketclaim object updation bug
mukhoakash Sep 19, 2022
f5d937d
Fixing a couple of update bugs
mukhoakash Sep 19, 2022
6fd93c5
Improving some logs
mukhoakash Sep 19, 2022
d9811a8
Merge pull request #68 from mukhoakash/bug-fix
k8s-ci-robot Sep 21, 2022
2a7e4aa
Fixing some parameters in case of existing bucket id
mukhoakash Sep 28, 2022
fc3327f
Merge pull request #69 from mukhoakash/fix-params
k8s-ci-robot Sep 29, 2022
988b9d0
Modifying owners
mukhoakash Oct 21, 2022
300019f
Merge pull request #71 from mukhoakash/fix_owner
k8s-ci-robot Oct 27, 2022
9c8dfba
Fixing the controller version
mukhoakash Nov 15, 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
eafd6fa
Merge pull request #73 from cpanato/GH-1523-k8sio
k8s-ci-robot Jan 30, 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
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
82e127f
separate controller-runtime in dependabot config
BlaineEXE Sep 21, 2023
8d98837
Merge pull request #92 from BlaineEXE/remove-prow-sh
k8s-ci-robot Sep 21, 2023
7e7b773
Merge pull request #93 from BlaineEXE/dependabot-separate-controller-…
k8s-ci-robot Sep 21, 2023
812040d
Merge branch 'kubernetes-sigs:master' into master
shanduur Oct 18, 2023
9729752
feat: replace API
shanduur Oct 18, 2023
0e3520c
feat: fix panic
shanduur Oct 18, 2023
d9f02c3
feat: API registration
shanduur Oct 18, 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
8a30877
fix(review/1): added event constants
shanduur Nov 30, 2023
c06ed1c
fix(review/1): format message
shanduur Dec 8, 2023
6376b6e
fix: typo in error
shanduur Dec 8, 2023
3fd9a83
fix(deps): updated api
shanduur Feb 13, 2024
a54e178
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
2e33d55
chore: go mod tidy
shanduur Feb 16, 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
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
5518cd8
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
944f7c9
Merge pull request #101 from shanduur/feat-event-recorder
k8s-ci-robot May 16, 2024
3baa065
chore: added shanduur
shanduur May 17, 2024
38b4915
Merge pull request #127 from shanduur/add-owner-shanduur
k8s-ci-robot May 20, 2024
7c0117e
Add 'pkg/imported-controller/' from commit '38b4915c1bbc6b63144fa8135…
BlaineEXE May 29, 2024
5e455b4
this is a test commit that moves ./pkg/imported-controller/cmd to ./cmd/
BlaineEXE May 29, 2024
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
71 changes: 71 additions & 0 deletions cmd/controller-manager/controller-manager.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
package main

import (
"context"
"flag"
"os"
"os/signal"
"syscall"

"github.com/spf13/cobra"
"github.com/spf13/viper"

bucketcontroller "sigs.k8s.io/container-object-storage-interface-api/controller"
"sigs.k8s.io/container-object-storage-interface-controller/pkg/bucketclaim"

"k8s.io/klog/v2"
)

var cmd = &cobra.Command{
Use: "controller-manager",
Short: "central controller for managing bucket* and bucketAccess* API objects",
SilenceErrors: true,
SilenceUsage: true,
RunE: func(c *cobra.Command, args []string) error {
return run(c.Context(), args)
},
DisableFlagsInUseLine: true,
}

var kubeConfig string
var verbosity int

func init() {
viper.AutomaticEnv()

flag.Set("alsologtostderr", "true")
kflags := flag.NewFlagSet("klog", flag.ExitOnError)
klog.InitFlags(kflags)

cmd.PersistentFlags().AddGoFlagSet(kflags)
cmd.PersistentFlags().StringVarP(&kubeConfig, "kubeconfig", "", kubeConfig, "path to kubeconfig file")

//flag.CommandLine.Parse([]string{})
viper.BindPFlags(cmd.PersistentFlags())
}

func main() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel() // Just in case

sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)

go func() {
<-sigs
cancel()
}()

if err := cmd.ExecuteContext(ctx); err != nil {
klog.Error(err)
}
}

func run(ctx context.Context, args []string) error {
ctrl, err := bucketcontroller.NewDefaultObjectStorageController("cosi-controller-manager", "leader-lock", 40)
if err != nil {
return err
}
ctrl.AddBucketClaimListener(bucketclaim.NewBucketClaimListener())
return ctrl.Run(ctx)
}
31 changes: 31 additions & 0 deletions pkg/imported-controller/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug Report
about: Use this template for reporting bugs or issues.
title: "[DATE] - Title"
---
# 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:
- Controller 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:
19 changes: 19 additions & 0 deletions pkg/imported-controller/.github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Enhancement/Feature Request
about: Use this template to request a new feature or enhancement for the COSI controller
title: "[DATE] - Title"
labels: bug
---
# 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 pkg/imported-controller/.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
27 changes: 27 additions & 0 deletions pkg/imported-controller/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2
enable-beta-ecosystems: true
updates:

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
groups: # batch updates together for fewer dependabot PRs
golang-dependencies:
patterns:
- "github.com/golang*"
k8s-dependencies:
patterns:
- "k8s.io*"
- "sigs.k8s.io*"
exclude-patterns:
# controller-runtime has history of breaking API changes more often than other k8s projects
- "sigs.k8s.io/controller-runtime"
github-dependencies:
patterns:
- "github.com*"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
9 changes: 9 additions & 0 deletions pkg/imported-controller/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.tmp
.DS_Store
.build
*.swp
travis.yml
release-tools
bin
vendor/
.idea/
7 changes: 7 additions & 0 deletions pkg/imported-controller/CHANGELOG/CHANGELOG-0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# First Release v0.1.0

### New Features

- Listen on Bucket* events
- Create Buckets in response to BucketClaim creation
- Enable lifecycle of Buckets and BucketAccesses
26 changes: 26 additions & 0 deletions pkg/imported-controller/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing Guidelines

Welcome to Kubernetes. We are excited about the prospect of you joining our [community](https://git.k8s.io/community)! The Kubernetes community abides by the CNCF [code of conduct](code-of-conduct.md). Here is an excerpt:

_As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities._

## Getting Started

We have full documentation on how to get started contributing here:

<!---
If your repo has certain guidelines for contribution, put them here ahead of the general k8s resources
-->

- [Contributor License Agreement](https://git.k8s.io/community/CLA.md) Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can accept your pull requests
- [Kubernetes Contributor Guide](https://git.k8s.io/community/contributors/guide) - Main contributor documentation, or you can just jump directly to the [contributing section](https://git.k8s.io/community/contributors/guide#contributing)
- [Contributor Cheat Sheet](https://git.k8s.io/community/contributors/guide/contributor-cheatsheet) - Common resources for existing developers

## Mentorship

- [Mentoring Initiatives](https://git.k8s.io/community/mentoring) - We have a diverse set of mentorship programs available that are always looking for volunteers!

## Contact Information

- [Slack](https://kubernetes.slack.com/messages/sig-storage-cosi)
- [Mailing List](https://groups.google.com/forum/#!forum/kubernetes-sig-storage)
36 changes: 36 additions & 0 deletions pkg/imported-controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# BUILDER
#
FROM docker.io/library/golang:1.22.2 AS builder

WORKDIR /buildroot

# 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.
COPY go.mod go.mod
COPY go.sum go.sum
RUN go mod download

COPY cmd/ cmd/
COPY pkg/ pkg/

ENV CGO_ENABLED=0

RUN go build -o artifacts/controller-manager cmd/controller-manager/*.go


#
# FINAL IMAGE
#
FROM gcr.io/distroless/static:latest

LABEL maintainers="Kubernetes Authors"
LABEL description="COSI Controller"

LABEL org.opencontainers.image.title="COSI Controller"
LABEL org.opencontainers.image.description="Container Object Storage Interface (COSI) Controller"
LABEL org.opencontainers.image.source="https://github.com/kubernetes-sigs/container-object-storage-interface-controller"
LABEL org.opencontainers.image.licenses="APACHE-2.0"

COPY --from=builder /buildroot/artifacts/controller-manager .
ENTRYPOINT ["/controller-manager"]
Loading