Environment test image
This directory contains the test image used to retrieve environment information
under which the container runs. This is used by conformance tests to verify
Knative run-time contract
The image contains a simple Go webserver, environment.go
, which by default,
listens on port defined in the constant
EnvImageServerPort.
Currently the server exposes:
- /envvars : To provide a JSON payload containing all the environment variables
set inside the container
- /filepath?path=path-to-file: Provides FileInfo for the path-to-file
query-param. The JSON payload returned as response is specified in
runtime_contract_types
Trying out
To run the image as a Service outisde of the test suite:
ko apply -f service.yaml
Building
For details about building and adding new images, see the
section about test images.