Indent preformatted text in kstatus doc.go

This indents the code examples in the kstatus doc.go files so that
they'll be placed inside <pre> blocks by godoc. Without this change only
the coincidentally indented lines are marked as preformatted in godoc
HTML output.
This commit is contained in:
Lee Verberne
2020-01-10 15:53:44 +01:00
parent 4e7446540c
commit 4c6b995435
2 changed files with 40 additions and 36 deletions

View File

@@ -4,7 +4,7 @@
// Package kstatus contains functionality for computing the status
// of Kubernetes resources.
//
// The statuses defined in this package is:
// The statuses defined in this package are:
// * InProgress
// * Current
// * Failed
@@ -13,11 +13,12 @@
//
// Computing the status of a resources can be done by calling the
// Compute function in the status package.
//
// import (
// "sigs.k8s.io/kustomize/kstatus/status"
// )
// res, err := status.Compute(resource)
//
// res, err := status.Compute(resource)
//
// The package also defines a set of new conditions:
// * InProgress
@@ -31,8 +32,10 @@
// the standard conditions described above. The values of
// these conditions are decided based on other status information
// available in the resources.
//
// import (
// "sigs.k8s.io/kustomize/kstatus/status
// )
//
// err := status.Augment(resource)
package status

View File

@@ -43,6 +43,7 @@
// import (
// "sigs.k8s.io/kustomize/kstatus/wait"
// )
//
// resolver := wait.NewResolver(client)
// eventsChan := resolver.WaitForStatus(context.Background(), resourceIdentifiers, 2 * time.Second)
// for {