-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
Run a discovery service instance inside Omni, which can be disabled but is enabled by default. When enabled, it will listen only on the SideroLink interface on port 8093. When enabled, all **new** clusters will by default have the feature enabled, which means they will use the embedded discovery service instead of the public one. Existing clusters will have the feature disabled until it is enabled for them explicitly. Explanation of the decision logic: - We want to enable the feature only for the new clusters - To achieve this, we introduce a "default value" setting on `ClusterStatus`, which is `ENABLED` by default, but is explicitly disabled for all the existing clusters by a migration. - We also introduce a feature toggle on the `Cluster` with 3 states: `AUTO`, `ENABLED` and `DISABLED`, with `AUTO` being the default - `AUTO` option is added solely to keep the cluster templates backwards-compatible. As they are applied without probing the existing status of the cluster, we cannot make the distinction of "is this an existing cluster or a new one". - Using the feature toggle on the `Cluster` and the default value in the `ClusterStatus`, we determine the final verdict about enabling the feature for a cluster, and store this verdict on the `ClusterStatus` as well. - When the feature toggle is set explicitly to `ENABLED` or `DISABLED`, it will be respected as the final verdict. - When it is `AUTO` (e.g. an existing cluster template is re-applied), the default value in `ClusterStatus` will be used to compute the final verdict. Closes #20. Signed-off-by: Utku Ozdemir <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2024-05-23T17:32:47Z by kres b5844f8. | ||
# Generated on 2024-05-30T12:37:50Z by kres f249b6c. | ||
|
||
ARG JS_TOOLCHAIN | ||
ARG TOOLCHAIN | ||
|
@@ -22,7 +22,7 @@ ENV PATH ${PATH}:/usr/local/go/bin | |
# runs markdownlint | ||
FROM docker.io/node:22.2.0-alpine3.19 AS lint-markdown | ||
WORKDIR /src | ||
RUN npm i -g markdownlint-cli@0.40.0 | ||
RUN npm i -g markdownlint-cli@0.41.0 | ||
RUN npm i [email protected] | ||
COPY .markdownlint.json . | ||
COPY ./docs ./docs | ||
|
@@ -110,6 +110,9 @@ ENV GOTOOLCHAIN ${GOTOOLCHAIN} | |
ARG GOEXPERIMENT | ||
ENV GOEXPERIMENT ${GOEXPERIMENT} | ||
ENV GOPATH /go | ||
ARG GOIMPORTS_VERSION | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install golang.org/x/tools/cmd/goimports@v${GOIMPORTS_VERSION} | ||
RUN mv /go/bin/goimports /bin | ||
ARG PROTOBUF_GO_VERSION | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install google.golang.org/protobuf/cmd/protoc-gen-go@v${PROTOBUF_GO_VERSION} | ||
RUN mv /go/bin/protoc-gen-go /bin | ||
|
@@ -119,9 +122,6 @@ RUN mv /go/bin/protoc-gen-go-grpc /bin | |
ARG GRPC_GATEWAY_VERSION | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v${GRPC_GATEWAY_VERSION} | ||
RUN mv /go/bin/protoc-gen-grpc-gateway /bin | ||
ARG GOIMPORTS_VERSION | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install golang.org/x/tools/cmd/goimports@v${GOIMPORTS_VERSION} | ||
RUN mv /go/bin/goimports /bin | ||
ARG VTPROTOBUF_VERSION | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@v${VTPROTOBUF_VERSION} | ||
RUN mv /go/bin/protoc-gen-go-vtproto /bin | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.