Various API doc corrections
Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
a2537f8730
commit
c657e68ba1
|
|
@ -34,7 +34,7 @@ type Artifact struct {
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
|
|
||||||
// Revision is a human readable identifier traceable in the origin source
|
// Revision is a human readable identifier traceable in the origin source
|
||||||
// system. It can be a Git commit sha, Git tag, a Helm index timestamp, a Helm
|
// system. It can be a Git commit SHA, Git tag, a Helm index timestamp, a Helm
|
||||||
// chart version, etc.
|
// chart version, etc.
|
||||||
// +optional
|
// +optional
|
||||||
Revision string `json:"revision"`
|
Revision string `json:"revision"`
|
||||||
|
|
|
||||||
|
|
@ -61,12 +61,13 @@ type BucketSpec struct {
|
||||||
// +required
|
// +required
|
||||||
Interval metav1.Duration `json:"interval"`
|
Interval metav1.Duration `json:"interval"`
|
||||||
|
|
||||||
// The timeout for download operations, default ('20s').
|
// The timeout for download operations, defaults to 20s.
|
||||||
// +optional
|
// +optional
|
||||||
Timeout *metav1.Duration `json:"timeout,omitempty"`
|
Timeout *metav1.Duration `json:"timeout,omitempty"`
|
||||||
|
|
||||||
// Ignore overrides the set of excluded patterns in the .sourceignore format
|
// Ignore overrides the set of excluded patterns in the .sourceignore format
|
||||||
// (which is the same as .gitignore).
|
// (which is the same as .gitignore). If not provided, a default will be used,
|
||||||
|
// consult the documentation for your version to find out what those are.
|
||||||
// +optional
|
// +optional
|
||||||
Ignore *string `json:"ignore,omitempty"`
|
Ignore *string `json:"ignore,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ const (
|
||||||
|
|
||||||
// GitRepositorySpec defines the desired state of a Git repository.
|
// GitRepositorySpec defines the desired state of a Git repository.
|
||||||
type GitRepositorySpec struct {
|
type GitRepositorySpec struct {
|
||||||
// The repository URL, can be a HTTP or SSH address.
|
// The repository URL, can be a HTTP/S or SSH address.
|
||||||
// +kubebuilder:validation:Pattern="^(http|https|ssh)://"
|
// +kubebuilder:validation:Pattern="^(http|https|ssh)://"
|
||||||
// +required
|
// +required
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
|
|
@ -48,16 +48,16 @@ type GitRepositorySpec struct {
|
||||||
// +required
|
// +required
|
||||||
Interval metav1.Duration `json:"interval"`
|
Interval metav1.Duration `json:"interval"`
|
||||||
|
|
||||||
// The timeout for remote git operations like cloning, default to 20s.
|
// The timeout for remote Git operations like cloning, defaults to 20s.
|
||||||
// +optional
|
// +optional
|
||||||
Timeout *metav1.Duration `json:"timeout,omitempty"`
|
Timeout *metav1.Duration `json:"timeout,omitempty"`
|
||||||
|
|
||||||
// The git reference to checkout and monitor for changes, defaults to
|
// The Git reference to checkout and monitor for changes, defaults to
|
||||||
// master branch.
|
// master branch.
|
||||||
// +optional
|
// +optional
|
||||||
Reference *GitRepositoryRef `json:"ref,omitempty"`
|
Reference *GitRepositoryRef `json:"ref,omitempty"`
|
||||||
|
|
||||||
// Verify OpenPGP signature for the commit that HEAD points to.
|
// Verify OpenPGP signature for the Git commit HEAD points to.
|
||||||
// +optional
|
// +optional
|
||||||
Verification *GitRepositoryVerification `json:"verify,omitempty"`
|
Verification *GitRepositoryVerification `json:"verify,omitempty"`
|
||||||
|
|
||||||
|
|
@ -68,21 +68,21 @@ type GitRepositorySpec struct {
|
||||||
Ignore *string `json:"ignore,omitempty"`
|
Ignore *string `json:"ignore,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GitRepositoryRef defines the git ref used for pull and checkout operations.
|
// GitRepositoryRef defines the Git ref used for pull and checkout operations.
|
||||||
type GitRepositoryRef struct {
|
type GitRepositoryRef struct {
|
||||||
// The git branch to checkout, defaults to master.
|
// The Git branch to checkout, defaults to master.
|
||||||
// +optional
|
// +optional
|
||||||
Branch string `json:"branch,omitempty"`
|
Branch string `json:"branch,omitempty"`
|
||||||
|
|
||||||
// The git tag to checkout, takes precedence over branch.
|
// The Git tag to checkout, takes precedence over Branch.
|
||||||
// +optional
|
// +optional
|
||||||
Tag string `json:"tag,omitempty"`
|
Tag string `json:"tag,omitempty"`
|
||||||
|
|
||||||
// The git tag semver expression, takes precedence over tag.
|
// The Git tag semver expression, takes precedence over Tag.
|
||||||
// +optional
|
// +optional
|
||||||
SemVer string `json:"semver,omitempty"`
|
SemVer string `json:"semver,omitempty"`
|
||||||
|
|
||||||
// The git commit sha to checkout, if specified tag filters will be ignored.
|
// The Git commit SHA to checkout, if specified Tag filters will be ignored.
|
||||||
// +optional
|
// +optional
|
||||||
Commit string `json:"commit,omitempty"`
|
Commit string `json:"commit,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
@ -93,7 +93,7 @@ type GitRepositoryVerification struct {
|
||||||
// +kubebuilder:validation:Enum=head
|
// +kubebuilder:validation:Enum=head
|
||||||
Mode string `json:"mode"`
|
Mode string `json:"mode"`
|
||||||
|
|
||||||
// The secret name containing the public keys of all trusted git authors.
|
// The secret name containing the public keys of all trusted Git authors.
|
||||||
SecretRef corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
SecretRef corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ type HelmRepositorySpec struct {
|
||||||
// repository.
|
// repository.
|
||||||
// For HTTP/S basic auth the secret must contain username and
|
// For HTTP/S basic auth the secret must contain username and
|
||||||
// password fields.
|
// password fields.
|
||||||
// For TLS the secret must contain caFile, keyFile and caCert
|
// For TLS the secret must contain a certFile and keyFile, and/or
|
||||||
// fields.
|
// caCert fields.
|
||||||
// +optional
|
// +optional
|
||||||
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,9 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
ignore:
|
ignore:
|
||||||
description: Ignore overrides the set of excluded patterns in the
|
description: Ignore overrides the set of excluded patterns in the
|
||||||
.sourceignore format (which is the same as .gitignore).
|
.sourceignore format (which is the same as .gitignore). If not provided,
|
||||||
|
a default will be used, consult the documentation for your version
|
||||||
|
to find out what those are.
|
||||||
type: string
|
type: string
|
||||||
insecure:
|
insecure:
|
||||||
description: Insecure allows connecting to a non-TLS S3 HTTP endpoint.
|
description: Insecure allows connecting to a non-TLS S3 HTTP endpoint.
|
||||||
|
|
@ -85,7 +87,7 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
timeout:
|
timeout:
|
||||||
description: The timeout for download operations, default ('20s').
|
description: The timeout for download operations, defaults to 20s.
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- bucketName
|
- bucketName
|
||||||
|
|
@ -112,7 +114,7 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
revision:
|
revision:
|
||||||
description: Revision is a human readable identifier traceable
|
description: Revision is a human readable identifier traceable
|
||||||
in the origin source system. It can be a Git commit sha, Git
|
in the origin source system. It can be a Git commit SHA, Git
|
||||||
tag, a Helm index timestamp, a Helm chart version, etc.
|
tag, a Helm index timestamp, a Helm chart version, etc.
|
||||||
type: string
|
type: string
|
||||||
url:
|
url:
|
||||||
|
|
|
||||||
|
|
@ -59,22 +59,22 @@ spec:
|
||||||
description: The interval at which to check for repository updates.
|
description: The interval at which to check for repository updates.
|
||||||
type: string
|
type: string
|
||||||
ref:
|
ref:
|
||||||
description: The git reference to checkout and monitor for changes,
|
description: The Git reference to checkout and monitor for changes,
|
||||||
defaults to master branch.
|
defaults to master branch.
|
||||||
properties:
|
properties:
|
||||||
branch:
|
branch:
|
||||||
description: The git branch to checkout, defaults to master.
|
description: The Git branch to checkout, defaults to master.
|
||||||
type: string
|
type: string
|
||||||
commit:
|
commit:
|
||||||
description: The git commit sha to checkout, if specified tag
|
description: The Git commit SHA to checkout, if specified Tag
|
||||||
filters will be ignored.
|
filters will be ignored.
|
||||||
type: string
|
type: string
|
||||||
semver:
|
semver:
|
||||||
description: The git tag semver expression, takes precedence over
|
description: The Git tag semver expression, takes precedence over
|
||||||
tag.
|
Tag.
|
||||||
type: string
|
type: string
|
||||||
tag:
|
tag:
|
||||||
description: The git tag to checkout, takes precedence over branch.
|
description: The Git tag to checkout, takes precedence over Branch.
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
secretRef:
|
secretRef:
|
||||||
|
|
@ -89,15 +89,15 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
timeout:
|
timeout:
|
||||||
description: The timeout for remote git operations like cloning, default
|
description: The timeout for remote Git operations like cloning, defaults
|
||||||
to 20s.
|
to 20s.
|
||||||
type: string
|
type: string
|
||||||
url:
|
url:
|
||||||
description: The repository URL, can be a HTTP or SSH address.
|
description: The repository URL, can be a HTTP/S or SSH address.
|
||||||
pattern: ^(http|https|ssh)://
|
pattern: ^(http|https|ssh)://
|
||||||
type: string
|
type: string
|
||||||
verify:
|
verify:
|
||||||
description: Verify OpenPGP signature for the commit that HEAD points
|
description: Verify OpenPGP signature for the Git commit HEAD points
|
||||||
to.
|
to.
|
||||||
properties:
|
properties:
|
||||||
mode:
|
mode:
|
||||||
|
|
@ -108,7 +108,7 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
secretRef:
|
secretRef:
|
||||||
description: The secret name containing the public keys of all
|
description: The secret name containing the public keys of all
|
||||||
trusted git authors.
|
trusted Git authors.
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||||||
|
|
@ -142,7 +142,7 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
revision:
|
revision:
|
||||||
description: Revision is a human readable identifier traceable
|
description: Revision is a human readable identifier traceable
|
||||||
in the origin source system. It can be a Git commit sha, Git
|
in the origin source system. It can be a Git commit SHA, Git
|
||||||
tag, a Helm index timestamp, a Helm chart version, etc.
|
tag, a Helm index timestamp, a Helm chart version, etc.
|
||||||
type: string
|
type: string
|
||||||
url:
|
url:
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
revision:
|
revision:
|
||||||
description: Revision is a human readable identifier traceable
|
description: Revision is a human readable identifier traceable
|
||||||
in the origin source system. It can be a Git commit sha, Git
|
in the origin source system. It can be a Git commit SHA, Git
|
||||||
tag, a Helm index timestamp, a Helm chart version, etc.
|
tag, a Helm index timestamp, a Helm chart version, etc.
|
||||||
type: string
|
type: string
|
||||||
url:
|
url:
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,8 @@ spec:
|
||||||
secretRef:
|
secretRef:
|
||||||
description: The name of the secret containing authentication credentials
|
description: The name of the secret containing authentication credentials
|
||||||
for the Helm repository. For HTTP/S basic auth the secret must contain
|
for the Helm repository. For HTTP/S basic auth the secret must contain
|
||||||
username and password fields. For TLS the secret must contain caFile,
|
username and password fields. For TLS the secret must contain a
|
||||||
keyFile and caCert fields.
|
certFile and keyFile, and/or caCert fields.
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||||||
|
|
@ -94,7 +94,7 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
revision:
|
revision:
|
||||||
description: Revision is a human readable identifier traceable
|
description: Revision is a human readable identifier traceable
|
||||||
in the origin source system. It can be a Git commit sha, Git
|
in the origin source system. It can be a Git commit SHA, Git
|
||||||
tag, a Helm index timestamp, a Helm chart version, etc.
|
tag, a Helm index timestamp, a Helm chart version, etc.
|
||||||
type: string
|
type: string
|
||||||
url:
|
url:
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ Kubernetes meta/v1.Duration
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The timeout for download operations, default (‘20s’).</p>
|
<p>The timeout for download operations, defaults to 20s.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -184,7 +184,8 @@ string
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>Ignore overrides the set of excluded patterns in the .sourceignore format
|
<p>Ignore overrides the set of excluded patterns in the .sourceignore format
|
||||||
(which is the same as .gitignore).</p>
|
(which is the same as .gitignore). If not provided, a default will be used,
|
||||||
|
consult the documentation for your version to find out what those are.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
@ -271,7 +272,7 @@ string
|
||||||
</em>
|
</em>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>The repository URL, can be a HTTP or SSH address.</p>
|
<p>The repository URL, can be a HTTP/S or SSH address.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -316,7 +317,7 @@ Kubernetes meta/v1.Duration
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The timeout for remote git operations like cloning, default to 20s.</p>
|
<p>The timeout for remote Git operations like cloning, defaults to 20s.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -330,7 +331,7 @@ GitRepositoryRef
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The git reference to checkout and monitor for changes, defaults to
|
<p>The Git reference to checkout and monitor for changes, defaults to
|
||||||
master branch.</p>
|
master branch.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -345,7 +346,7 @@ GitRepositoryVerification
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>Verify OpenPGP signature for the commit that HEAD points to.</p>
|
<p>Verify OpenPGP signature for the Git commit HEAD points to.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -603,8 +604,8 @@ Kubernetes core/v1.LocalObjectReference
|
||||||
repository.
|
repository.
|
||||||
For HTTP/S basic auth the secret must contain username and
|
For HTTP/S basic auth the secret must contain username and
|
||||||
password fields.
|
password fields.
|
||||||
For TLS the secret must contain caFile, keyFile and caCert
|
For TLS the secret must contain a certFile and keyFile, and/or
|
||||||
fields.</p>
|
caCert fields.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -705,7 +706,7 @@ string
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>Revision is a human readable identifier traceable in the origin source
|
<p>Revision is a human readable identifier traceable in the origin source
|
||||||
system. It can be a Git commit sha, Git tag, a Helm index timestamp, a Helm
|
system. It can be a Git commit SHA, Git tag, a Helm index timestamp, a Helm
|
||||||
chart version, etc.</p>
|
chart version, etc.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -853,7 +854,7 @@ Kubernetes meta/v1.Duration
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The timeout for download operations, default (‘20s’).</p>
|
<p>The timeout for download operations, defaults to 20s.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -866,7 +867,8 @@ string
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>Ignore overrides the set of excluded patterns in the .sourceignore format
|
<p>Ignore overrides the set of excluded patterns in the .sourceignore format
|
||||||
(which is the same as .gitignore).</p>
|
(which is the same as .gitignore). If not provided, a default will be used,
|
||||||
|
consult the documentation for your version to find out what those are.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
@ -952,7 +954,7 @@ Artifact
|
||||||
(<em>Appears on:</em>
|
(<em>Appears on:</em>
|
||||||
<a href="#source.toolkit.fluxcd.io/v1beta1.GitRepositorySpec">GitRepositorySpec</a>)
|
<a href="#source.toolkit.fluxcd.io/v1beta1.GitRepositorySpec">GitRepositorySpec</a>)
|
||||||
</p>
|
</p>
|
||||||
<p>GitRepositoryRef defines the git ref used for pull and checkout operations.</p>
|
<p>GitRepositoryRef defines the Git ref used for pull and checkout operations.</p>
|
||||||
<div class="md-typeset__scrollwrap">
|
<div class="md-typeset__scrollwrap">
|
||||||
<div class="md-typeset__table">
|
<div class="md-typeset__table">
|
||||||
<table>
|
<table>
|
||||||
|
|
@ -972,7 +974,7 @@ string
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The git branch to checkout, defaults to master.</p>
|
<p>The Git branch to checkout, defaults to master.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -984,7 +986,7 @@ string
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The git tag to checkout, takes precedence over branch.</p>
|
<p>The Git tag to checkout, takes precedence over Branch.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -996,7 +998,7 @@ string
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The git tag semver expression, takes precedence over tag.</p>
|
<p>The Git tag semver expression, takes precedence over Tag.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -1008,7 +1010,7 @@ string
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The git commit sha to checkout, if specified tag filters will be ignored.</p>
|
<p>The Git commit SHA to checkout, if specified Tag filters will be ignored.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
@ -1040,7 +1042,7 @@ string
|
||||||
</em>
|
</em>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>The repository URL, can be a HTTP or SSH address.</p>
|
<p>The repository URL, can be a HTTP/S or SSH address.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -1085,7 +1087,7 @@ Kubernetes meta/v1.Duration
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The timeout for remote git operations like cloning, default to 20s.</p>
|
<p>The timeout for remote Git operations like cloning, defaults to 20s.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -1099,7 +1101,7 @@ GitRepositoryRef
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>The git reference to checkout and monitor for changes, defaults to
|
<p>The Git reference to checkout and monitor for changes, defaults to
|
||||||
master branch.</p>
|
master branch.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -1114,7 +1116,7 @@ GitRepositoryVerification
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<em>(Optional)</em>
|
<em>(Optional)</em>
|
||||||
<p>Verify OpenPGP signature for the commit that HEAD points to.</p>
|
<p>Verify OpenPGP signature for the Git commit HEAD points to.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -1247,7 +1249,7 @@ Kubernetes core/v1.LocalObjectReference
|
||||||
</em>
|
</em>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p>The secret name containing the public keys of all trusted git authors.</p>
|
<p>The secret name containing the public keys of all trusted Git authors.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
@ -1454,8 +1456,8 @@ Kubernetes core/v1.LocalObjectReference
|
||||||
repository.
|
repository.
|
||||||
For HTTP/S basic auth the secret must contain username and
|
For HTTP/S basic auth the secret must contain username and
|
||||||
password fields.
|
password fields.
|
||||||
For TLS the secret must contain caFile, keyFile and caCert
|
For TLS the secret must contain a certFile and keyFile, and/or
|
||||||
fields.</p>
|
caCert fields.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -40,12 +40,13 @@ type BucketSpec struct {
|
||||||
// +required
|
// +required
|
||||||
Interval metav1.Duration `json:"interval"`
|
Interval metav1.Duration `json:"interval"`
|
||||||
|
|
||||||
// The timeout for download operations, default ('20s').
|
// The timeout for download operations, defaults to 20s.
|
||||||
// +optional
|
// +optional
|
||||||
Timeout *metav1.Duration `json:"timeout,omitempty"`
|
Timeout *metav1.Duration `json:"timeout,omitempty"`
|
||||||
|
|
||||||
// Ignore overrides the set of excluded patterns in the .sourceignore format
|
// Ignore overrides the set of excluded patterns in the .sourceignore format
|
||||||
// (which is the same as .gitignore).
|
// (which is the same as .gitignore). If not provided, a default will be used,
|
||||||
|
// consult the documentation for your version to find out what those are.
|
||||||
// +optional
|
// +optional
|
||||||
Ignore *string `json:"ignore,omitempty"`
|
Ignore *string `json:"ignore,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,9 @@ type Artifact struct {
|
||||||
// +required
|
// +required
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
|
|
||||||
// Revision is a human readable identifier traceable in the origin
|
// Revision is a human readable identifier traceable in the origin source
|
||||||
// source system. It can be a Git commit sha, Git tag, a Helm index
|
// system. It can be a Git commit SHA, Git tag, a Helm index timestamp, a Helm
|
||||||
// timestamp, a Helm chart version, etc.
|
// chart version, etc.
|
||||||
// +optional
|
// +optional
|
||||||
Revision string `json:"revision"`
|
Revision string `json:"revision"`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ Git repository:
|
||||||
```go
|
```go
|
||||||
// GitRepositorySpec defines the desired state of a Git repository.
|
// GitRepositorySpec defines the desired state of a Git repository.
|
||||||
type GitRepositorySpec struct {
|
type GitRepositorySpec struct {
|
||||||
// The repository URL, can be a HTTP or SSH address.
|
// The repository URL, can be a HTTP/S or SSH address.
|
||||||
// +kubebuilder:validation:Pattern="^(http|https|ssh)://"
|
// +kubebuilder:validation:Pattern="^(http|https|ssh)://"
|
||||||
// +required
|
// +required
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
|
|
@ -28,16 +28,16 @@ type GitRepositorySpec struct {
|
||||||
// +required
|
// +required
|
||||||
Interval metav1.Duration `json:"interval"`
|
Interval metav1.Duration `json:"interval"`
|
||||||
|
|
||||||
// The timeout for remote git operations like cloning, default to 20s.
|
// The timeout for remote Git operations like cloning, defaults to 20s.
|
||||||
// +optional
|
// +optional
|
||||||
Timeout *metav1.Duration `json:"timeout,omitempty"`
|
Timeout *metav1.Duration `json:"timeout,omitempty"`
|
||||||
|
|
||||||
// The git reference to checkout and monitor for changes, defaults to
|
// The Git reference to checkout and monitor for changes, defaults to
|
||||||
// master branch.
|
// master branch.
|
||||||
// +optional
|
// +optional
|
||||||
Reference *GitRepositoryRef `json:"ref,omitempty"`
|
Reference *GitRepositoryRef `json:"ref,omitempty"`
|
||||||
|
|
||||||
// Verify OpenPGP signature for the commit that HEAD points to.
|
// Verify OpenPGP signature for the Git commit HEAD points to.
|
||||||
// +optional
|
// +optional
|
||||||
Verification *GitRepositoryVerification `json:"verify,omitempty"`
|
Verification *GitRepositoryVerification `json:"verify,omitempty"`
|
||||||
|
|
||||||
|
|
@ -52,21 +52,21 @@ type GitRepositorySpec struct {
|
||||||
Git repository reference:
|
Git repository reference:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// GitRepositoryRef defines the git ref used for pull and checkout operations.
|
// GitRepositoryRef defines the Git ref used for pull and checkout operations.
|
||||||
type GitRepositoryRef struct {
|
type GitRepositoryRef struct {
|
||||||
// The git branch to checkout, defaults to master.
|
// The Git branch to checkout, defaults to master.
|
||||||
// +optional
|
// +optional
|
||||||
Branch string `json:"branch,omitempty"`
|
Branch string `json:"branch,omitempty"`
|
||||||
|
|
||||||
// The git tag to checkout, takes precedence over branch.
|
// The Git tag to checkout, takes precedence over Branch.
|
||||||
// +optional
|
// +optional
|
||||||
Tag string `json:"tag,omitempty"`
|
Tag string `json:"tag,omitempty"`
|
||||||
|
|
||||||
// The git tag semver expression, takes precedence over tag.
|
// The Git tag semver expression, takes precedence over Tag.
|
||||||
// +optional
|
// +optional
|
||||||
SemVer string `json:"semver,omitempty"`
|
SemVer string `json:"semver,omitempty"`
|
||||||
|
|
||||||
// The git commit sha to checkout, if specified tag filters will be ignored.
|
// The Git commit SHA to checkout, if specified Tag filters will be ignored.
|
||||||
// +optional
|
// +optional
|
||||||
Commit string `json:"commit,omitempty"`
|
Commit string `json:"commit,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
@ -81,8 +81,8 @@ type GitRepositoryVerification struct {
|
||||||
// +kubebuilder:validation:Enum=head
|
// +kubebuilder:validation:Enum=head
|
||||||
Mode string `json:"mode"`
|
Mode string `json:"mode"`
|
||||||
|
|
||||||
// The secret name containing the public keys of all trusted git authors.
|
// The secret name containing the public keys of all trusted Git authors.
|
||||||
SecretRef corev1.LocalObjectReference `json:"secretRef"`
|
SecretRef corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -91,6 +91,7 @@ type GitRepositoryVerification struct {
|
||||||
```go
|
```go
|
||||||
// GitRepositoryStatus defines the observed state of the GitRepository.
|
// GitRepositoryStatus defines the observed state of the GitRepository.
|
||||||
type GitRepositoryStatus struct {
|
type GitRepositoryStatus struct {
|
||||||
|
// Conditions holds the conditions for the GitRepository.
|
||||||
// +optional
|
// +optional
|
||||||
Conditions []meta.Condition `json:"conditions,omitempty"`
|
Conditions []meta.Condition `json:"conditions,omitempty"`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,10 +62,15 @@ type LocalHelmChartSourceReference struct {
|
||||||
```go
|
```go
|
||||||
// HelmChartStatus defines the observed state of the HelmChart.
|
// HelmChartStatus defines the observed state of the HelmChart.
|
||||||
type HelmChartStatus struct {
|
type HelmChartStatus struct {
|
||||||
|
// ObservedGeneration is the last observed generation.
|
||||||
|
// +optional
|
||||||
|
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||||
|
|
||||||
|
// Conditions holds the conditions for the HelmChart.
|
||||||
// +optional
|
// +optional
|
||||||
Conditions []meta.Condition `json:"conditions,omitempty"`
|
Conditions []meta.Condition `json:"conditions,omitempty"`
|
||||||
|
|
||||||
// URL is the download link for the last chart fetched.
|
// URL is the download link for the last chart pulled.
|
||||||
// +optional
|
// +optional
|
||||||
URL string `json:"url,omitempty"`
|
URL string `json:"url,omitempty"`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ type HelmRepositorySpec struct {
|
||||||
// repository.
|
// repository.
|
||||||
// For HTTP/S basic auth the secret must contain username and
|
// For HTTP/S basic auth the secret must contain username and
|
||||||
// password fields.
|
// password fields.
|
||||||
// For TLS the secret must contain caFile, keyFile and caCert
|
// For TLS the secret must contain a certFile and keyFile, and/or
|
||||||
// fields.
|
// caCert fields.
|
||||||
// +optional
|
// +optional
|
||||||
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
||||||
|
|
||||||
|
|
@ -39,6 +39,11 @@ type HelmRepositorySpec struct {
|
||||||
```go
|
```go
|
||||||
// HelmRepositoryStatus defines the observed state of the HelmRepository.
|
// HelmRepositoryStatus defines the observed state of the HelmRepository.
|
||||||
type HelmRepositoryStatus struct {
|
type HelmRepositoryStatus struct {
|
||||||
|
// ObservedGeneration is the last observed generation.
|
||||||
|
// +optional
|
||||||
|
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||||
|
|
||||||
|
// Conditions holds the conditions for the HelmRepository.
|
||||||
// +optional
|
// +optional
|
||||||
Conditions []meta.Condition `json:"conditions,omitempty"`
|
Conditions []meta.Condition `json:"conditions,omitempty"`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue