Skip to content

Commit 17b2bcd

Browse files
authored
[fix] fix tilt deployments and update ClusterRole (#211)
<!-- If this is your first PR, welcome! Please make sure you read the [contributing guidelines](../CONTRIBUTING.md). --> <!-- Ensure your PR title complies with the following guidelines 1. All PRs titles should start with one of the following prefixes - `[fix]` for PRs related to bug fixes and patches - `[feat]` for PRs related to new features - `[improvement]` for PRs related to improvements of existing features - `[test]` for PRs related to tests - `[CI]` for PRs related to repo CI improvements - `[docs]` for PRs related to documentation updates - `[deps]` for PRs related to dependency updates 2. if a PR introduces a breaking change it should include `[breaking]` in the title 3. if a PR introduces a deprecation it should include `[deprecation]` in the title --> **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **TODOs**: <!-- Put an "X" character inside the brackets of each completed task. Some may be optional depending on the PR. --> - [ ] squashed commits - [ ] includes documentation - [ ] adds unit tests - [ ] adds or updates e2e tests
1 parent 613878b commit 17b2bcd

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Tiltfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load('ext://namespace', 'namespace_inject')
1+
load('ext://namespace', 'namespace_inject', 'namespace_create')
22
k8s_yaml(kustomize("./hack/container-object-storage-controller"))
33
k8s_resource(
44
workload="container-object-storage-controller",
@@ -15,13 +15,11 @@ k8s_resource(
1515
"container-object-storage-controller:rolebinding",
1616
"container-object-storage-controller:clusterrolebinding",
1717
])
18-
k8s_yaml(namespace_inject(
19-
helm( "./helm/linode-cosi-driver",
18+
namespace_create("linode-cosi-driver")
19+
k8s_yaml(helm( "./helm/linode-cosi-driver",
2020
"linode-cosi-driver",
2121
namespace="linode-cosi-driver",
2222
set=["apiToken=" + os.getenv("LINODE_TOKEN")],
23-
),
24-
"linode-cosi-driver"
2523
))
2624

2725
k8s_resource(
@@ -31,6 +29,7 @@ k8s_resource(
3129
"linode-cosi-driver:clusterrole",
3230
"linode-cosi-driver:clusterrolebinding",
3331
"linode-cosi-driver:secret",
32+
"linode-cosi-driver:namespace",
3433
],
3534
)
3635
if os.getenv("SKIP_DOCKER_BUILD", "false") != "true":

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ go 1.25.0
44

55
require (
66
github.com/go-resty/resty/v2 v2.16.5
7+
github.com/google/uuid v1.6.0
78
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.2
89
github.com/linode/linodego v1.58.0
910
github.com/minio/minio-go/v7 v7.0.95
1011
go.uber.org/automaxprocs v1.6.0
1112
google.golang.org/grpc v1.75.1
1213
sigs.k8s.io/container-object-storage-interface-spec v0.1.0
13-
github.com/google/uuid v1.6.0
1414
)
1515

1616
require (
@@ -19,7 +19,6 @@ require (
1919
github.com/goccy/go-json v0.10.5 // indirect
2020
github.com/golang/protobuf v1.5.4 // indirect
2121
github.com/google/go-querystring v1.1.0 // indirect
22-
github.com/google/uuid v1.6.0 // indirect
2322
github.com/klauspost/compress v1.18.0 // indirect
2423
github.com/klauspost/cpuid/v2 v2.2.11 // indirect
2524
github.com/minio/crc64nvme v1.0.2 // indirect

helm/linode-cosi-driver/templates/ClusterRole.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ rules:
2626
- update
2727
- delete
2828
- list
29+
- patch
2930
- watch
3031
- apiGroups:
3132
- coordination.k8s.io

0 commit comments

Comments
 (0)