ArtifactGenerator
source.extensions.fluxcd.io / v1beta1
apiVersion: source.extensions.fluxcd.io/v1beta1
kind: ArtifactGenerator
metadata:
name: example
apiVersion
string
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind
string
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata
object
spec object
ArtifactGeneratorSpec defines the desired state of ArtifactGenerator.
artifacts []object required
OutputArtifacts is a list of output artifacts to be generated.
minItems:
1maxItems:
1000copy []object required
Copy defines a list of copy operations to perform from the sources to the generated artifact.
The copy operations are performed in the order they are listed with existing files
being overwritten by later copy operations.
minItems:
1
exclude
[]string
Exclude specifies a list of glob patterns to exclude
files and dirs matched by the 'From' field. Patterns are matched
against paths relative to the source alias root or to the non-glob
prefix of 'From'. Patterns without a separator (e.g. "*.md") match
the file name at any depth.
maxItems:
100
from
string required
From specifies the source (by alias) and the glob pattern to match files.
The format is "@<alias>/<glob-pattern>". When pathPattern is set,
the path may use capture placeholders such as "{app}".
pattern:
^@([a-z0-9]([a-z0-9_-]*[a-z0-9])?)/(.*)$minLength:
1maxLength:
1024
strategy
string
Strategy specifies the copy strategy to use.
'Overwrite' will overwrite existing files in the destination.
'Merge' is for merging YAML files using Helm values merge strategy.
'Extract' is for extracting the contents of tarball archives (.tar.gz, .tgz)
When using glob patterns, non-tarball files are silently skipped. For single file sources,
the file must be a tarball or an error is returned. Directories are not supported.
If not specified, defaults to 'Overwrite'.
enum:
Overwrite, Merge, Extract
to
string required
To specifies the destination path within the artifact.
The format is "@artifact/path", the alias "artifact"
refers to the root path of the generated artifact. When pathPattern
is set, the path may use capture placeholders such as "{app}".
pattern:
^@(artifact)/(.*)$minLength:
1maxLength:
1024
name
string required
Name is the name of the generated artifact.
When pathPattern is set, this field may use capture placeholders such as "{app}".
minLength:
1maxLength:
253
originRevision
string
OriginRevision is used to set the 'org.opencontainers.image.revision'
annotation on the generated artifact metadata.
If specified, it must point to an existing source alias in the format "@<alias>".
If the referenced source has an origin revision (e.g. a Git commit SHA),
it will be used to set the annotation on the generated artifact.
If the referenced source does not have an origin revision, the field is ignored.
pattern:
^@([a-z0-9]([a-z0-9_-]*[a-z0-9])?)$maxLength:
64
revision
string
Revision is the revision of the generated artifact.
If specified, it must point to an existing source alias in the format "@<alias>".
If not specified, the revision is automatically set to the digest of the artifact content.
pattern:
^@([a-z0-9]([a-z0-9_-]*[a-z0-9])?)$maxLength:
64commonMetadata object
CommonMetadata specifies the common labels and annotations that are
applied to all resources. Any existing label or annotation will be
overridden if its key matches a common one.
annotations
object
Annotations to be added to the object's metadata.
labels
object
Labels to be added to the object's metadata.
pathPattern
string
PathPattern specifies a directory traversal pattern to match within the sources.
The format is "@<alias>/<pattern>". Named captures in the pattern (e.g. "{app}")
can be used as placeholders in OutputArtifacts fields.
pattern:
^@([a-z0-9]([a-z0-9_-]*[a-z0-9])?)/(.*)$maxLength:
1024sources []object required
Sources is a list of references to the Flux source-controller
resources that will be used to generate the artifact.
minItems:
1maxItems:
1000
alias
string required
Alias of the source within the ArtifactGenerator context.
The alias must be unique per ArtifactGenerator, and must consist
of lower case alphanumeric characters, underscores, and hyphens.
It must start and end with an alphanumeric character.
pattern:
^[a-z0-9]([a-z0-9_-]*[a-z0-9])?$maxLength:
63
kind
string required
Kind of the source.
enum:
Bucket, GitRepository, OCIRepository, HelmChart, ExternalArtifact
name
string required
Name of the source.
pattern:
^[a-z0-9]([a-z0-9-]*[a-z0-9])?$maxLength:
253
namespace
string
Namespace of the source.
If not provided, defaults to the same namespace as the ArtifactGenerator.
pattern:
^[a-z0-9]([-a-z0-9]*[a-z0-9])?$minLength:
1maxLength:
63status object
ArtifactGeneratorStatus defines the observed state of ArtifactGenerator.
conditions []object
Conditions holds the conditions for the ArtifactGenerator.
lastTransitionTime
string required
lastTransitionTime is the last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
format:
date-time
message
string required
message is a human readable message indicating details about the transition.
This may be an empty string.
maxLength:
32768
observedGeneration
integer
observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
format:
int64minimum:
0
reason
string required
reason contains a programmatic identifier indicating the reason for the condition's last transition.
Producers of specific condition types may define expected values and meanings for this field,
and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty.
pattern:
^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$minLength:
1maxLength:
1024
status
string required
status of the condition, one of True, False, Unknown.
enum:
True, False, Unknown
type
string required
type of condition in CamelCase or in foo.example.com/CamelCase.
pattern:
^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$maxLength:
316inventory []object
Inventory contains the list of generated ExternalArtifact references.
digest
string required
Digest of the referent artifact.
filename
string required
Filename is the name of the artifact file.
name
string required
Name of the referent artifact.
namespace
string required
Namespace of the referent artifact.
lastHandledReconcileAt
string
LastHandledReconcileAt holds the value of the most recent
reconcile request value, so a change of the annotation value
can be detected.
observedSourcesDigest
string
ObservedSourcesDigest is a hash representing the current state of
all the sources referenced by the ArtifactGenerator.
No matches. Try .spec.artifacts for an exact path