-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for Kustomize based PostRenderer
Add support for Kustomize based PostRenderer as built-in post renderer. Signed-off-by: Alexander Berger <alex-berger@gmx.ch>
- Loading branch information
1 parent
06dc7ed
commit c608105
Showing
13 changed files
with
1,284 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package v2beta1 | ||
|
||
// Image contains an image name, a new name, a new tag or digest, | ||
// which will replace the original name and tag. | ||
type Image struct { | ||
// Name is a tag-less image name. | ||
Name string `json:"name,omitempty" yaml:"name,omitempty"` | ||
|
||
// NewName is the value used to replace the original name. | ||
NewName string `json:"newName,omitempty" yaml:"newName,omitempty"` | ||
|
||
// NewTag is the value used to replace the original tag. | ||
NewTag string `json:"newTag,omitempty" yaml:"newTag,omitempty"` | ||
|
||
// Digest is the value used to replace the original image tag. | ||
// If digest is present NewTag value is ignored. | ||
Digest string `json:"digest,omitempty" yaml:"digest,omitempty"` | ||
} | ||
|
||
// Gvk identifies a Kubernetes API type. | ||
// https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md | ||
type Gvk struct { | ||
Group string `json:"group,omitempty" yaml:"group,omitempty"` | ||
Version string `json:"version,omitempty" yaml:"version,omitempty"` | ||
Kind string `json:"kind,omitempty" yaml:"kind,omitempty"` | ||
} | ||
|
||
// Selector specifies a set of resources. | ||
// Any resource that matches intersection of all conditions | ||
// is included in this set. | ||
type Selector struct { | ||
Gvk `json:",inline,omitempty" yaml:",inline,omitempty"` | ||
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` | ||
Name string `json:"name,omitempty" yaml:"name,omitempty"` | ||
|
||
// AnnotationSelector is a string that follows the label selection expression | ||
// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api | ||
// It matches with the resource annotations. | ||
AnnotationSelector string `json:"annotationSelector,omitempty" yaml:"annotationSelector,omitempty"` | ||
|
||
// LabelSelector is a string that follows the label selection expression | ||
// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api | ||
// It matches with the resource labels. | ||
LabelSelector string `json:"labelSelector,omitempty" yaml:"labelSelector,omitempty"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.