Skip to content

Commit f5a8db4

Browse files
committed
setup protoc-3.19.5
1 parent da60dc0 commit f5a8db4

6 files changed

+18
-30
lines changed

.github/workflows/check.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
uses: actions/setup-go@v3
3030
with:
3131
go-version: ${{ env.GO_VERSION }}
32+
- name: Setup protoc
33+
run: |
34+
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.19.5/protoc-3.19.5-linux-x86_64.zip
35+
unzip protoc-3.19.5-linux-x86_64.zip -d protoc3
3236
- name: Cache Go Dependencies
3337
uses: actions/cache@v2
3438
with:
@@ -37,7 +41,11 @@ jobs:
3741
restore-keys: ${{ runner.os }}-go-
3842
- name: Run Unit Tests
3943
run: |
44+
export PATH="$PATH:$(pwd)/protoc3/bin"
45+
echo $PATH
4046
make test
47+
rm -rf protoc-3.19.5-linux-x86_64.zip
48+
rm -rf protoc3
4149
git status
4250
# TODO: enable after public
4351
# - name: Publish Unit Test Coverage

config/crd/bases/kridge.kusionstack.io_circuitbreakers.yaml

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.7.0
6+
controller-gen.kubebuilder.io/version: v0.10.0
87
creationTimestamp: null
98
name: circuitbreakers.kridge.kusionstack.io
109
spec:
@@ -100,9 +99,9 @@ spec:
10099
type: array
101100
resources:
102101
description: Resources is a list of resources this rule
103-
applies to. "*" means all in the specified apiGroups. "*/foo"
104-
represents the subresource 'foo' for all resources in
105-
the specified apiGroups.
102+
applies to. "*" means all in the specified apiGroups.
103+
"*/foo" represents the subresource 'foo' for all resources
104+
in the specified apiGroups.
106105
items:
107106
type: string
108107
type: array
@@ -205,6 +204,7 @@ spec:
205204
"value". The requirements are ANDed.
206205
type: object
207206
type: object
207+
x-kubernetes-map-type: atomic
208208
targets:
209209
items:
210210
type: string
@@ -313,9 +313,3 @@ spec:
313313
storage: true
314314
subresources:
315315
status: {}
316-
status:
317-
acceptedNames:
318-
kind: ""
319-
plural: ""
320-
conditions: []
321-
storedVersions: []

config/crd/bases/kridge.kusionstack.io_managerstates.yaml

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.7.0
6+
controller-gen.kubebuilder.io/version: v0.10.0
87
creationTimestamp: null
98
name: managerstates.kridge.kusionstack.io
109
spec:
@@ -72,9 +71,3 @@ spec:
7271
storage: true
7372
subresources:
7473
status: {}
75-
status:
76-
acceptedNames:
77-
kind: ""
78-
plural: ""
79-
conditions: []
80-
storedVersions: []

config/crd/bases/kridge.kusionstack.io_shardingconfigs.yaml

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.7.0
6+
controller-gen.kubebuilder.io/version: v0.10.0
87
creationTimestamp: null
98
name: shardingconfigs.kridge.kusionstack.io
109
spec:
@@ -110,6 +109,7 @@ spec:
110109
only "value". The requirements are ANDed.
111110
type: object
112111
type: object
112+
x-kubernetes-map-type: atomic
113113
type: object
114114
type: array
115115
root:
@@ -211,6 +211,7 @@ spec:
211211
contains only "value". The requirements are ANDed.
212212
type: object
213213
type: object
214+
x-kubernetes-map-type: atomic
214215
type: object
215216
type: array
216217
size:
@@ -264,6 +265,7 @@ spec:
264265
are ANDed.
265266
type: object
266267
type: object
268+
x-kubernetes-map-type: atomic
267269
webhook:
268270
description: ShardingConfigWebhookConfiguration defines the configuration
269271
of webhook in this application.
@@ -295,9 +297,3 @@ spec:
295297
storage: true
296298
subresources:
297299
status: {}
298-
status:
299-
acceptedNames:
300-
kind: ""
301-
plural: ""
302-
conditions: []
303-
storedVersions: []

config/rbac/role.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
---
32
apiVersion: rbac.authorization.k8s.io/v1
43
kind: ClusterRole

config/webhook/manifests.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
---
32
apiVersion: admissionregistration.k8s.io/v1
43
kind: MutatingWebhookConfiguration
@@ -73,7 +72,6 @@ webhooks:
7372
- persistentvolumeclaims
7473
- endpoints
7574
sideEffects: None
76-
7775
---
7876
apiVersion: admissionregistration.k8s.io/v1
7977
kind: ValidatingWebhookConfiguration

0 commit comments

Comments
 (0)