Skip to content

Commit a35288d

Browse files
authored
Remove GraphQL Engine mocks API (#199)
1 parent 9186bf7 commit a35288d

23 files changed

+0
-1155
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
!/test
99
!/go.mod
1010
!/go.sum
11-
!/hack/mock
1211
!/hack/runners

Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ ARG COMPONENT
2828
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
2929

3030
COPY --from=builder /bin/$COMPONENT /app
31-
COPY hack/mock/graphql /mock/
3231

3332
LABEL [email protected]:Project-Voltron/go-voltron.git
3433
LABEL app=$COMPONENT

cmd/k8s-engine/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ query {
5151
| APP_LOGGER_DEV_MODE | no | `false` | Enable development mode logging |
5252
| APP_MAX_CONCURRENT_RECONCILES | no | `1` | Maximum number of concurrent reconcile loops in the controller |
5353
| APP_MAX_RETRY_FOR_FAILED_ACTION | no | `15` | Maximum number of retries for failed Action reconcile process |
54-
| APP_MOCK_GRAPHQL | no | `false` | Set mock responses on the GraphQL server |
5554
| APP_GRAPHQLGATEWAY_ENDPOINT | no | `http://voltron-gateway/graphql` | Endpoint of the Voltron Gateway |
5655
| APP_GRAPHQLGATEWAY_USERNAME | yes | | Basic auth username used to authenticate at the Voltron Gateway |
5756
| APP_GRAPHQLGATEWAY_PASSWORD | yes | | Basic auth password used to authenticate at the Voltron Gateway |

deploy/kubernetes/charts/voltron/charts/engine/templates/deployment.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ spec:
4848
value: "{{ .Values.global.gateway.auth.username }}"
4949
- name: APP_GRAPHQLGATEWAY_PASSWORD
5050
value: "{{ .Values.global.gateway.auth.password }}"
51-
- name: APP_MOCKGRAPHQL
52-
value: "{{ .Values.global.mockEngineGraphQL }}"
5351
- name: APP_BUILTIN_RUNNER_IMAGE
5452
value: "{{ .Values.global.containerRegistry.path }}/{{ .Values.builtInRunner.image.name }}:{{ .Values.global.containerRegistry.overrideTag | default .Chart.AppVersion }}"
5553
- name: APP_CLUSTER_POLICY_NAME

deploy/kubernetes/charts/voltron/values.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ global:
55
# Overrides the image tag for all Voltron component. Default is the sub-chart appVersion.
66
overrideTag: "latest"
77
domainName: "dev.cluster.projectvoltron.dev"
8-
mockEngineGraphQL: "false"
98

109
database:
1110
endpoint: bolt://neo4j-neo4j.neo4j:7687

docs/development.md

-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ You can export the following environment variables to configure the script:
126126
- To disable kubed installation, use `DISABLE_KUBED_INSTALLATION=true`.
127127
- To disable `/etc/hosts` update with all Voltron subdomain, use `DISABLE_HOSTS_UPDATE=true`.
128128
- To disable setting self-signed TLS certificate for `*.voltron.local` as trusted, use `DISABLE_ADDING_TRUSTED_CERT=true`.
129-
- To enable mocked version of GraphQL Engine OCH API `MOCK_ENGINE_GRAPHQL=true`.
130129
- To disable Database Populator, use `ENABLE_POPULATOR=false`
131130
- To use test setup (test policy and populate OCH manifests from `test/och-content`), use `USE_TEST_SETUP=true`.
132131
- To disable higher resource requests and limits for components, use `INCREASE_RESOURCE_LIMITS=false`.

hack/lib/const.sh

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ readonly GRAPHQL_SCHEMA_LINTER_IMAGE_VERSION="0.1.0"
4040
# Development
4141
#
4242

43-
readonly VOLTRON_MOCK_ENGINE_GRAPHQL="false"
4443
readonly VOLTRON_ENABLE_POPULATOR="true"
4544
readonly VOLTRON_USE_TEST_SETUP="false"
4645

hack/lib/utilities.sh

-3
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ docker::delete_images() {
232232
# - VOLTRON_NAMESPACE
233233
# - VOLTRON_RELEASE_NAME
234234
# - CLUSTER_TYPE
235-
# - MOCK_ENGINE_GRAPHQL - if set to true then predifined values are used in engine graphql
236235
# - ENABLE_POPULATOR - if set to true then database populator will be enabled and it will populate database with manifests
237236
# - USE_TEST_SETUP - if set to true, then the OCH manifests are populated from `test/och-content` and a test policy is configured
238237
# - INCREASE_RESOURCE_LIMITS - if set to true, then the components will use higher resource requests and limits
@@ -241,7 +240,6 @@ voltron::install_upgrade::charts() {
241240
readonly CLUSTER_CONFIG_DIR="${REPO_DIR}/hack/cluster-config"
242241
readonly KIND_CONFIG_DIR="${CLUSTER_CONFIG_DIR}/kind"
243242

244-
export MOCK_ENGINE_GRAPHQL=${MOCK_ENGINE_GRAPHQL:-${VOLTRON_MOCK_ENGINE_GRAPHQL}}
245243
export ENABLE_POPULATOR=${ENABLE_POPULATOR:-${VOLTRON_ENABLE_POPULATOR}}
246244
export USE_TEST_SETUP=${USE_TEST_SETUP:-${VOLTRON_USE_TEST_SETUP}}
247245
export INCREASE_RESOURCE_LIMITS=${INCREASE_RESOURCE_LIMITS:-${VOLTRON_INCREASE_RESOURCE_LIMITS}}
@@ -305,7 +303,6 @@ voltron::install_upgrade::charts() {
305303
--namespace="${VOLTRON_NAMESPACE}" \
306304
--set global.containerRegistry.path="${DOCKER_REPOSITORY}" \
307305
--set global.containerRegistry.overrideTag="${DOCKER_TAG}" \
308-
--set global.mockEngineGraphQL="${MOCK_ENGINE_GRAPHQL}" \
309306
--set och-public.populator.enabled="${ENABLE_POPULATOR}" \
310307
${CUSTOM_VOLTRON_SET_FLAGS:-} \
311308
-f "${VOLTRON_TEST_SETUP_OVERRIDES}" \

hack/mock/Dockerfile.voltron-helper

-24
This file was deleted.

hack/mock/action-cloud.yaml

-8
This file was deleted.

hack/mock/action-helm.yaml

-8
This file was deleted.

hack/mock/cloudsql-input.yaml

-36
This file was deleted.

0 commit comments

Comments
 (0)