mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 12:18:57 +00:00
regenerate docs and license
This commit is contained in:
@@ -288,53 +288,61 @@ Following is an example of running the ` + "`" + `kustomize config run` + "`" +
|
|||||||
|
|
||||||
var ConfigIoLong = `# Configuration IO API Semantics
|
var ConfigIoLong = `# Configuration IO API Semantics
|
||||||
|
|
||||||
Resource Configuration may be read / written from / to sources such as directories,
|
Resource Configuration may be read / written from / to sources such as directories,
|
||||||
stdin|out or network. Tools may be composed using pipes such that the tools writing
|
stdin|out or network. Tools may be composed using pipes such that the tools writing
|
||||||
Resource Configuration may be a different tool from the one that read the configuration.
|
Resource Configuration may be a different tool from the one that read the configuration.
|
||||||
In order for tools to be composed in this way, while preserving origin information --
|
In order for tools to be composed in this way, while preserving origin information --
|
||||||
such as the original file, index, etc.
|
such as the original file, index, etc.
|
||||||
|
|
||||||
Tools **SHOULD** write the following annotations when reading from sources,
|
Tools **SHOULD** write the following annotations when reading from sources,
|
||||||
and **SHOULD** respect the annotations when writing to syncs.
|
and **SHOULD** respect the annotations when writing to sinks.
|
||||||
|
|
||||||
### ` + "`" + `config.kubernetes.io/path` + "`" + `
|
### ` + "`" + `config.kubernetes.io/path` + "`" + `
|
||||||
|
|
||||||
` + "`" + `config.kubernetes.io/path` + "`" + ` records a relative path on a Resource. This annotation
|
Records the slash-delimited, OS-agnostic, relative file path to a Resource.
|
||||||
**SHOULD** be set when reading Resources from files.
|
|
||||||
When writing Resources to a directory, the Resource **SHOULD** be written to the corresponding
|
|
||||||
path relative to that directory.
|
|
||||||
|
|
||||||
Example:
|
This annotation **SHOULD** be set when reading Resources from files.
|
||||||
|
When writing Resources to a directory, the Resource **SHOULD** be written to the corresponding
|
||||||
|
path relative to that directory.
|
||||||
|
|
||||||
metadata:
|
Example:
|
||||||
annotations:
|
|
||||||
config.kubernetes.io/path: "relative/file/path.yaml"
|
metadata:
|
||||||
|
annotations:
|
||||||
|
config.kubernetes.io/path: "relative/file/path.yaml"
|
||||||
|
|
||||||
### ` + "`" + `config.kubernetes.io/index` + "`" + `
|
### ` + "`" + `config.kubernetes.io/index` + "`" + `
|
||||||
|
|
||||||
` + "`" + `config.kubernetes.io/index` + "`" + ` records the index of a Resource into a file which may contain
|
Records the index of a Resource in file. In a multi-object files YAML file, Resources are separated
|
||||||
multiple Resource. This annotation **SHOULD** be set when reading Resources from files.
|
by three dashes (` + "`" + `---` + "`" + `), and the index represents the positon of the Resource starting from zero.
|
||||||
When writing multiple Resources to the same file, the Resource **SHOULD** be written in the
|
|
||||||
relative order matching the index.
|
|
||||||
|
|
||||||
Example:
|
This annotation **SHOULD** be set when reading Resources from files.
|
||||||
|
When writing multiple Resources to the same file, the Resource **SHOULD** be written in the
|
||||||
|
relative order matching the index.
|
||||||
|
|
||||||
metadata:
|
When this annotation is not specified, it implies a value of ` + "`" + `0` + "`" + `.
|
||||||
annotations:
|
|
||||||
config.kubernetes.io/index: "0"
|
Example:
|
||||||
|
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
config.kubernetes.io/path: "relative/file/path.yaml"
|
||||||
|
config.kubernetes.io/index: 2
|
||||||
|
|
||||||
|
This represents the third Resource in the file.
|
||||||
|
|
||||||
### ` + "`" + `config.kubernetes.io/local-config` + "`" + `
|
### ` + "`" + `config.kubernetes.io/local-config` + "`" + `
|
||||||
|
|
||||||
` + "`" + `config.kubernetes.io/local-config` + "`" + ` declares that the configuration is to local tools
|
` + "`" + `config.kubernetes.io/local-config` + "`" + ` declares that the configuration is to local tools
|
||||||
rather than a remote Resource. e.g. The ` + "`" + `Kustomization` + "`" + ` config in a ` + "`" + `kustomization.yaml` + "`" + `
|
rather than a remote Resource. e.g. The ` + "`" + `Kustomization` + "`" + ` config in a ` + "`" + `kustomization.yaml` + "`" + `
|
||||||
**SHOULD** contain this annotation so that tools know it is not intended to be sent to
|
**SHOULD** contain this annotation so that tools know it is not intended to be sent to
|
||||||
the Kubernetes api server.
|
the Kubernetes api server.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
config.kubernetes.io/local-config: "true"`
|
config.kubernetes.io/local-config: "true"`
|
||||||
|
|
||||||
var Merge2Long = `# Merge (2-way)
|
var Merge2Long = `# Merge (2-way)
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2019 The Kubernetes Authors.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package commandutil
|
package commandutil
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
Reference in New Issue
Block a user