We use analytics and cookies to understand site traffic. Information about your use of our site is shared with Google for that purpose. Learn more.
Spacer Title
Hidden smoketest page
Use this page to test your changes and ensure that there are not any issues, unwanted behaviors, or regression that are caused by your changes.
Below are a set of site elements that have causes issues in the past.
Lists
- Top level:
- A nested list item.
- another level lower
- Nested code sample:
Syntax:{
{< readfile file=”../community/samples/serving/helloworld-java-quarkus/service.yaml” code="true” lang="yaml” >}
}
Example:apiVersion: serving.knative.dev/v1 kind: Service metadata: name: helloworld-java-quarkus spec: template: spec: containers: - image: docker.io/saturnism/helloworld-java-quarkus env: - name: TARGET value: "Quarkus Sample v1"
- This should be the third bullet (3.).
- More nested code:
Shortcode:{
{< readfile file=”/serving/samples/hello-world/helloworld-go/Dockerfile” code="true” lang="go” >}
}
Example:# Use the official Golang image to create a build artifact. # This is based on Debian and sets the GOPATH to /go. # https://hub.docker.com/_/golang FROM golang:1.13 as builder # Create and change to the app directory. WORKDIR /app # Retrieve application dependencies using go modules. # Allows container builds to reuse downloaded dependencies. COPY go.* ./ RUN go mod download # Copy local code to the container image. COPY . ./ # Build the binary. # -mod=readonly ensures immutable go.mod and go.sum in container builds. RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -v -o server # Use the official Alpine image for a lean production container. # https://hub.docker.com/_/alpine # https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds FROM alpine:3 RUN apk add --no-cache ca-certificates # Copy the binary to the production image from the builder stage. COPY --from=builder /app/server /server # Run the web service on container startup. CMD ["/server"]
- Another nested ordered list item (2.)
- More nested code:
- A nested list item.
Code samples
The following use the
readfile
shortcode
{
"hideMemberFields": [
"TypeMeta"
],
"hideTypePatterns": [
"ParseError$",
"List$"
],
"externalPackages": [
{
"typeMatchPrefix": "^k8s\\.io/apimachinery/pkg/apis/meta/v1\\.Duration$",
"docsURLTemplate": "https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"
},
{
"typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/",
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
},
{
"typeMatchPrefix": "^github\\.com/knative/pkg/apis/duck/",
"docsURLTemplate": "https://godoc.org/github.com/knative/pkg/apis/duck/{{arrIndex .PackageSegments -1}}#{{.TypeIdentifier}}"
}
],
"typeDisplayNamePrefixOverrides": {
"k8s.io/api/": "Kubernetes ",
"k8s.io/apimachinery/pkg/apis/": "Kubernetes "
},
"markdownDisabled": false
}
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
required = [
"knative.dev/test-infra/scripts",
"knative.dev/test-infra/tools/dep-collector",
]
[prune]
go-tests = true
unused-packages = true
non-go = true
[[prune.project]]
name = "knative.dev/test-infra"
non-go = false
[[constraint]]
name = "github.com/cloudevents/sdk-go"
version = "v2.0.0-RC1"
Install version numbers and Clone branch commands
Examples of how the manual and dynamic version number or branch name can be
added in-line with the
version
shortcode
(uses the define values from
config/_default/params.toml)
-
Shortcode:
{
{% version %}
}Example:
kubectl apply version/v0.16.0/is-the-latest/docs-version.yaml
-
Shortcode:
{
{% version override="v0.2.2” %}
}Example:
kubectl apply the-version-override/v0.2.2/is-manually-specified.yaml
-
Shortcode:
{
{% version patch=”.20” %}
}Example:
kubectl apply this-is-a-point-release/v0.16.20/filename.yaml
-
Shortcode:
{
{% branch %}
}Example:
git clone -b "master" https://github.com/knative/docs knative-docs
-
Shortcode:
{
{% branch override="release-0.NEXT” %}
}Example:
git clone -b "release-0.NEXT" https://github.com/knative/docs knative-docs