Skip to content

Commit

Permalink
[Bugfix] agent service test (#2620)
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <kpango@vdaas.org>
  • Loading branch information
kpango committed Sep 13, 2024
1 parent 3ba0002 commit c2f5eb8
Show file tree
Hide file tree
Showing 61 changed files with 3,588 additions and 1,302 deletions.
9 changes: 9 additions & 0 deletions .gitfiles
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,15 @@ k8s/gateway/gateway/lb/hpa.yaml
k8s/gateway/gateway/lb/pdb.yaml
k8s/gateway/gateway/lb/priorityclass.yaml
k8s/gateway/gateway/lb/svc.yaml
k8s/gateway/gateway/mirror/clusterrole.yaml
k8s/gateway/gateway/mirror/clusterrolebinding.yaml
k8s/gateway/gateway/mirror/configmap.yaml
k8s/gateway/gateway/mirror/deployment.yaml
k8s/gateway/gateway/mirror/hpa.yaml
k8s/gateway/gateway/mirror/pdb.yaml
k8s/gateway/gateway/mirror/priorityclass.yaml
k8s/gateway/gateway/mirror/serviceaccount.yaml
k8s/gateway/gateway/mirror/svc.yaml
k8s/index/job/correction/configmap.yaml
k8s/index/job/correction/cronjob.yaml
k8s/index/job/creation/configmap.yaml
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ assignees: ""
- Rust Version: v1.81.0
- Docker Version: v27.2.1
- Kubernetes Version: v1.31.0
- Helm Version: v3.15.4
- Helm Version: v3.16.0
- NGT Version: v2.2.4
- Faiss Version: v1.8.0
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/security_issue_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ assignees: ""
- Rust Version: v1.81.0
- Docker Version: v27.2.1
- Kubernetes Version: v1.31.0
- Helm Version: v3.15.4
- Helm Version: v3.16.0
- NGT Version: v2.2.4
- Faiss Version: v1.8.0
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- Rust Version: v1.81.0
- Docker Version: v27.2.1
- Kubernetes Version: v1.31.0
- Helm Version: v3.15.4
- Helm Version: v3.16.0
- NGT Version: v2.2.4
- Faiss Version: v1.8.0

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-agent-faiss-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: agent-faiss"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-agent-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: agent"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-agent-ngt-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: agent-ngt"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-agent-sidecar-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: agent-sidecar"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-benchmark-job-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: benchmark-job"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-benchmark-operator-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: benchmark-operator"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-binfmt-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: binfmt"
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-buildbase-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: buildbase"
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-buildkit-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: buildkit"
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-buildkit-syft-scanner-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: buildkit-syft-scanner"
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-ci-container-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: ci-container"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-dev-container-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: dev-container"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-discoverer-k8s-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: discoverer-k8s"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-gateway-filter-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: gateway-filter"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-gateway-lb-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: gateway-lb"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-gateway-mirror-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: gateway-mirror"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-helm-operator-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: helm-operator"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-index-correction-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: index-correction"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-index-creation-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: index-creation"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-index-operator-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: index-operator"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-index-save-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: index-save"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-loadtest-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: loadtest"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-manager-index-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: manager-index"
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dockers-readreplica-rotate-image.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# DO_NOT_EDIT this workflow file is generated by https://github.com/vdaas/vald/blob/main/hack/actions/gen/main.go

name: "Build docker image: readreplica-rotate"
on:
push:
Expand Down
51 changes: 51 additions & 0 deletions apis/docs/v1/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
- [Insert.MultiRequest](#payload-v1-Insert-MultiRequest)
- [Insert.ObjectRequest](#payload-v1-Insert-ObjectRequest)
- [Insert.Request](#payload-v1-Insert-Request)
- [Meta](#payload-v1-Meta)
- [Meta.Key](#payload-v1-Meta-Key)
- [Meta.KeyValue](#payload-v1-Meta-KeyValue)
- [Meta.Value](#payload-v1-Meta-Value)
- [Mirror](#payload-v1-Mirror)
- [Mirror.Target](#payload-v1-Mirror-Target)
- [Mirror.Targets](#payload-v1-Mirror-Targets)
Expand Down Expand Up @@ -116,6 +120,8 @@
- [Filter](#filter-egress-v1-Filter)
- [v1/filter/ingress/ingress_filter.proto](#v1_filter_ingress_ingress_filter-proto)
- [Filter](#filter-ingress-v1-Filter)
- [v1/meta/meta.proto](#v1_meta_meta-proto)
- [Meta](#meta-v1-Meta)
- [v1/mirror/mirror.proto](#v1_mirror_mirror-proto)
- [Mirror](#mirror-v1-Mirror)
- [v1/rpc/errdetails/error_details.proto](#v1_rpc_errdetails_error_details-proto)
Expand Down Expand Up @@ -652,6 +658,35 @@ Represent the insert request.
| vector | [Object.Vector](#payload-v1-Object-Vector) | | The vector to be inserted. |
| config | [Insert.Config](#payload-v1-Insert-Config) | | The configuration of the insert request. |

<a name="payload-v1-Meta"></a>

### Meta

<a name="payload-v1-Meta-Key"></a>

### Meta.Key

| Field | Type | Label | Description |
| ----- | ----------------- | ----- | ----------- |
| key | [string](#string) | | |

<a name="payload-v1-Meta-KeyValue"></a>

### Meta.KeyValue

| Field | Type | Label | Description |
| ----- | ------------------------------------ | ----- | ----------- |
| key | [Meta.Key](#payload-v1-Meta-Key) | | |
| value | [Meta.Value](#payload-v1-Meta-Value) | | |

<a name="payload-v1-Meta-Value"></a>

### Meta.Value

| Field | Type | Label | Description |
| ----- | ------------------------------------------- | ----- | ----------- |
| value | [google.protobuf.Any](#google-protobuf-Any) | | |

<a name="payload-v1-Mirror"></a>

### Mirror
Expand Down Expand Up @@ -1308,6 +1343,22 @@ Represent the ingress filter service.
| GenVector | [.payload.v1.Object.Blob](#payload-v1-Object-Blob) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to generate the vector. |
| FilterVector | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | [.payload.v1.Object.Vector](#payload-v1-Object-Vector) | Represent the RPC to filter the vector. |

<a name="v1_meta_meta-proto"></a>

<p align="right"><a href="#top">Top</a></p>

## v1/meta/meta.proto

<a name="meta-v1-Meta"></a>

### Meta

| Method Name | Request Type | Response Type | Description |
| ----------- | ------------------------------------------------------ | ------------------------------------------------ | ----------- |
| Get | [.payload.v1.Meta.Key](#payload-v1-Meta-Key) | [.payload.v1.Meta.Value](#payload-v1-Meta-Value) | |
| Set | [.payload.v1.Meta.KeyValue](#payload-v1-Meta-KeyValue) | [.payload.v1.Empty](#payload-v1-Empty) | |
| Delete | [.payload.v1.Meta.Key](#payload-v1-Meta-Key) | [.payload.v1.Empty](#payload-v1-Empty) | |

<a name="v1_mirror_mirror-proto"></a>

<p align="right"><a href="#top">Top</a></p>
Expand Down
2 changes: 1 addition & 1 deletion apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const _ = grpc.SupportPackageIsVersion7
// SidecarClient is the client API for Sidecar service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type SidecarClient any
type SidecarClient interface{}

type sidecarClient struct {
cc grpc.ClientConnInterface
Expand Down
Loading

0 comments on commit c2f5eb8

Please sign in to comment.