-
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.
Merge pull request #202 from alex-berger/feature/post-renderer
- Loading branch information
Showing
15 changed files
with
1,387 additions
and
101 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
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
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,65 @@ | ||
/* | ||
Copyright 2020 The Flux authors | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
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"` | ||
} |
Oops, something went wrong.