Skip to content

Commit

Permalink
Engine ingress continued.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentluce committed Dec 17, 2023
1 parent ae75791 commit 3212921
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -965,16 +965,6 @@ jobs:
equal: [ "docker", << parameters.cli-cluster-backend >> ]
<<: *steps_prepare_testing_docker

# Validate the engine REST API
- run: |
# Give the reverse proxy enough time to discover the engine service
sleep 10
status_code=$(curl -I http://localhost:<< pipeline.parameters.reverse-proxy-entrypoint-web-port >>/engine/info -H "Host: engine" | head -1 | awk '{print $2}')
if ! [ "${status_code}" -eq "200" ]; then
echo 'HTTP request status code returned is '${status_code}' instead of 200'
false
fi
# Start a service and send an http request to it via the reverse proxy
- run: |
${KURTOSIS_BINPATH} enclave add --name test-enclave
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func CreateEngine(
)
}

restAPIPortSpec, err := port_spec.NewPortSpec(uint16(engine.RESTAPIPortAddr), consts.EngineTransportProtocol, consts.HttpApplicationProtocol, defaultWait)
restAPIPortSpec, err := port_spec.NewPortSpec(engine.RESTAPIPortAddr, consts.EngineTransportProtocol, consts.HttpApplicationProtocol, defaultWait)
if err != nil {
return nil, stacktrace.Propagate(
err,
Expand Down Expand Up @@ -206,7 +206,7 @@ func CreateEngine(
privateGrpcDockerPort: docker_manager.NewManualPublishingSpec(grpcPortNum),
enclaveManagerUIDockerPort: docker_manager.NewManualPublishingSpec(uint16(enclaveManagerUIPort)),
enclaveManagerAPIDockerPort: docker_manager.NewManualPublishingSpec(uint16(enclaveManagerAPIPort)),
restAPIDockerPort: docker_manager.NewManualPublishingSpec(uint16(engine.RESTAPIPortAddr)),
restAPIDockerPort: docker_manager.NewManualPublishingSpec(engine.RESTAPIPortAddr),
}

bindMounts := map[string]string{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (provider *kubernetesEngineObjectAttributesProviderImpl) ForEngineIngress()

traefikIngressRouterEntrypointsAnnotationValue, err := kubernetes_annotation_value.CreateNewKubernetesAnnotationValue(traefikIngressRouterEntrypointsValue)
if err != nil {
return nil, stacktrace.Propagate(err, "An error occurred creating a new user custom Kubernetes label value '%s'", traefikIngressRouterEntrypointsValue)
return nil, stacktrace.Propagate(err, "An error occurred creating the Traefik ingress router entrypoint annotation with value '%s'", traefikIngressRouterEntrypointsValue)
}
annotations := map[*kubernetes_annotation_key.KubernetesAnnotationKey]*kubernetes_annotation_value.KubernetesAnnotationValue{
kubernetes_annotation_key_consts.TraefikIngressRouterEntrypointsAnnotationKey: traefikIngressRouterEntrypointsAnnotationValue,
Expand Down

0 comments on commit 3212921

Please sign in to comment.