Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl reconcile logic for create benchmark job #1923

Merged
2 changes: 1 addition & 1 deletion Makefile.d/docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ docker/build/benchmark-job:
--build-arg DISTROLESS_IMAGE_TAG=$(DISTROLESS_IMAGE_TAG)

.PHONY: docker/name/benchmark-operator
docker/name/benchmark-job:
docker/name/benchmark-operator:
@echo "$(ORG)/$(BENCHMARK_OPERATOR_IMAGE)"

.PHONY: docker/build/benchmark-operator
Expand Down
2 changes: 1 addition & 1 deletion Makefile.d/helm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ helm/schema/crd/vald-helm-operator: \
## generate OpenAPI v3 schema for ValdBenchmarkOperatorRelease
helm/schema/crd/vald-benchmark-operator: \
yq/install
mv charts/vald-benchmark-operator/crds/valdbenchmarkoperatorrelease.yaml > $(TEMP_DIR)/valdbenchmarkoperatorrelease.yaml
mv charts/vald-benchmark-operator/crds/valdbenchmarkoperatorrelease.yaml $(TEMP_DIR)/valdbenchmarkoperatorrelease.yaml
GOPRIVATE=$(GOPRIVATE) \
go run -mod=readonly hack/helm/schema/crd/main.go \
charts/vald-benchmark-operator/values.yaml > $(TEMP_DIR)/valdbenchmarkoperatorrelease-spec.yaml
Expand Down
146 changes: 141 additions & 5 deletions charts/vald-benchmark-operator/crds/valdbenchmarkoperatorrelease.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2019-2022 vdaas.org vald team <[email protected]>
# Copyright (C) 2019-2023 vdaas.org vald team <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -61,6 +61,140 @@ spec:
spec:
type: object
properties:
client_config:
type: object
properties:
addrs:
type: array
items:
type: string
backoff:
type: object
properties:
backoff_factor:
type: number
backoff_time_limit:
type: string
enable_error_log:
type: boolean
initial_duration:
type: string
jitter_limit:
type: string
maximum_duration:
type: string
retry_count:
type: integer
call_option:
type: object
x-kubernetes-preserve-unknown-fields: true
circuit_breaker:
type: object
properties:
closed_error_rate:
type: number
closed_refresh_timeout:
type: string
half_open_error_rate:
type: number
min_samples:
type: integer
open_timeout:
type: string
connection_pool:
type: object
properties:
enable_dns_resolver:
type: boolean
enable_rebalance:
type: boolean
old_conn_close_duration:
type: string
rebalance_duration:
type: string
size:
type: integer
dial_option:
type: object
properties:
backoff_base_delay:
type: string
backoff_jitter:
type: number
backoff_max_delay:
type: string
backoff_multiplier:
type: number
enable_backoff:
type: boolean
initial_connection_window_size:
type: integer
initial_window_size:
type: integer
insecure:
type: boolean
interceptors:
type: array
items:
type: string
enum:
- TraceInterceptor
keepalive:
type: object
properties:
permit_without_stream:
type: boolean
time:
type: string
timeout:
type: string
max_msg_size:
type: integer
min_connection_timeout:
type: string
net:
type: object
properties:
dialer:
type: object
properties:
dual_stack_enabled:
type: boolean
keepalive:
type: string
timeout:
type: string
dns:
type: object
properties:
cache_enabled:
type: boolean
cache_expiration:
type: string
refresh_duration:
type: string
socket_option:
type: ""
tls:
type: ""
read_buffer_size:
type: integer
timeout:
type: string
write_buffer_size:
type: integer
health_check_duration:
type: string
max_recv_msg_size:
type: integer
max_retry_rpc_buffer_size:
type: integer
max_send_msg_size:
type: integer
tls:
type: ""
wait_for_ready:
type: boolean
dataset:
type: object
properties:
Expand All @@ -83,7 +217,9 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
target:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
properties:
host:
type: string
port:
type: integer
Loading