Skip to content

Commit 11276bb

Browse files
committed
add gRPC DriverGetInfo proto and sidecar bootstrap
Add initial gRPC DriverGetInfo() proto, and use it when bootstrapping the sidecar. Signed-off-by: Blaine Gardner <[email protected]>
1 parent e3bc25e commit 11276bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+25659
-177
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
Copyright 2025 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package v1alpha2
18+
19+
const (
20+
// RpcEndpointDefault is the default RPC endpoint unix socket location.
21+
RpcEndpointDefault = "unix:///var/lib/cosi/cosi.sock"
22+
23+
// RpcEndpointEnvVarName is the name of the environment variable that is expected to hold the
24+
// RPC endpoint unix socket location. If unspecified, RpcEndpointDefault should be used.
25+
RpcEndpointEnvVarName = "COSI_ENDPOINT"
26+
)

go.mod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ replace (
1010
)
1111

1212
require (
13+
github.com/stretchr/testify v1.11.1
14+
google.golang.org/grpc v1.75.1
1315
k8s.io/apimachinery v0.34.1
1416
k8s.io/client-go v0.34.1
1517
sigs.k8s.io/container-object-storage-interface/client v0.0.0-20250925174816-5fce7c365e9c
18+
sigs.k8s.io/container-object-storage-interface/proto v0.0.0-00010101000000-000000000000
1619
sigs.k8s.io/controller-runtime v0.22.1
1720
)
1821

@@ -91,10 +94,10 @@ require (
9194
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
9295
google.golang.org/genproto/googleapis/api v0.0.0-20250922171735-9219d122eba9 // indirect
9396
google.golang.org/genproto/googleapis/rpc v0.0.0-20250922171735-9219d122eba9 // indirect
94-
google.golang.org/grpc v1.75.1 // indirect
9597
google.golang.org/protobuf v1.36.9 // indirect
9698
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
9799
gopkg.in/inf.v0 v0.9.1 // indirect
100+
gopkg.in/yaml.v3 v3.0.1 // indirect
98101
k8s.io/api v0.34.1 // indirect
99102
k8s.io/apiextensions-apiserver v0.34.1 // indirect
100103
k8s.io/apiserver v0.34.1 // indirect

0 commit comments

Comments
 (0)