environment

command
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL