Skip to content

Commit

Permalink
run codegen with upgraded controller-gen
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
  • Loading branch information
krancour committed Feb 17, 2024
1 parent bb420af commit d873a90
Show file tree
Hide file tree
Showing 10 changed files with 773 additions and 698 deletions.
101 changes: 58 additions & 43 deletions charts/kargo/crds/kargo.akuity.io_freights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
controller-gen.kubebuilder.io/version: v0.14.0
name: freights.kargo.akuity.io
spec:
group: kargo.akuity.io
Expand All @@ -27,9 +27,11 @@ spec:
description: Freight represents a collection of versioned artifacts.
properties:
apiVersion:
description: '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'
description: |-
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
type: string
charts:
description: Charts describes specific versions of specific Helm charts.
Expand All @@ -40,12 +42,13 @@ spec:
description: Name specifies the name of the chart.
type: string
repoURL:
description: RepoURL specifies the URL of a Helm chart repository.
Classic chart repositories (using HTTP/S) can contain differently
named charts. When this field points to such a repository, the
Name field will specify the name of the chart within the repository.
In the case of a repository within an OCI registry, the URL implicitly
points to a specific chart and the Name field will be empty.
description: |-
RepoURL specifies the URL of a Helm chart repository. Classic chart
repositories (using HTTP/S) can contain differently named charts. When this
field points to such a repository, the Name field will specify the name of
the chart within the repository. In the case of a repository within an OCI
registry, the URL implicitly points to a specific chart and the Name field
will be empty.
type: string
version:
description: Version specifies a particular version of the chart.
Expand All @@ -66,17 +69,19 @@ spec:
commit was found.
type: string
healthCheckCommit:
description: HealthCheckCommit is the ID of a specific commit. When
specified, assessments of Stage health will used this value (instead
of ID) when determining if applicable sources of Argo CD Application
resources associated with the Stage are or are not synced to this
commit. Note that there are cases (as in that of Kargo Render
being utilized as a promotion mechanism) wherein the value of
this field may differ from the commit ID found in the ID field.
description: |-
HealthCheckCommit is the ID of a specific commit. When specified,
assessments of Stage health will used this value (instead of ID) when
determining if applicable sources of Argo CD Application resources
associated with the Stage are or are not synced to this commit. Note that
there are cases (as in that of Kargo Render being utilized as a promotion
mechanism) wherein the value of this field may differ from the commit ID
found in the ID field.
type: string
id:
description: ID is the ID of a specific commit in the Git repository
specified by RepoURL.
description: |-
ID is the ID of a specific commit in the Git repository specified by
RepoURL.
type: string
message:
description: Message is the git commit message
Expand All @@ -85,15 +90,17 @@ spec:
description: RepoURL is the URL of a Git repository.
type: string
tag:
description: Tag denotes a tag in the repository that matched selection
criteria and resolved to this commit.
description: |-
Tag denotes a tag in the repository that matched selection criteria and
resolved to this commit.
type: string
type: object
type: array
id:
description: ID is a system-assigned value that is derived deterministically
from the contents of the Freight. i.e. Two pieces of Freight can be
compared for equality by comparing their IDs.
description: |-
ID is a system-assigned value that is derived deterministically from the
contents of the Freight. i.e. Two pieces of Freight can be compared for
equality by comparing their IDs.
type: string
images:
description: Images describes specific versions of specific container
Expand All @@ -102,29 +109,34 @@ spec:
description: Image describes a specific version of a container image.
properties:
digest:
description: Digest identifies a specific version of the image in
the repository specified by RepoURL. This is a more precise identifier
than Tag.
description: |-
Digest identifies a specific version of the image in the repository
specified by RepoURL. This is a more precise identifier than Tag.
type: string
gitRepoURL:
description: GitRepoURL specifies the URL of a Git repository that
contains the source code for the image repository referenced by
the RepoURL field if Kargo was able to infer it.
description: |-
GitRepoURL specifies the URL of a Git repository that contains the source
code for the image repository referenced by the RepoURL field if Kargo was
able to infer it.
type: string
repoURL:
description: RepoURL describes the repository in which the image
can be found.
type: string
tag:
description: Tag identifies a specific version of the image in the
repository specified by RepoURL.
description: |-
Tag identifies a specific version of the image in the repository specified
by RepoURL.
type: string
type: object
type: array
kind:
description: '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'
description: |-
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
type: string
metadata:
type: object
Expand All @@ -133,21 +145,24 @@ spec:
properties:
approvedFor:
additionalProperties:
description: ApprovedStage describes a Stage for which Freight has
been (manually) approved.
description: |-
ApprovedStage describes a Stage for which Freight has been (manually)
approved.
type: object
description: ApprovedFor describes the Stages for which this Freight
has been approved preemptively/manually by a user. This is useful
for hotfixes, where one might wish to promote a piece of Freight
to a given Stage without transiting the entire pipeline.
description: |-
ApprovedFor describes the Stages for which this Freight has been approved
preemptively/manually by a user. This is useful for hotfixes, where one
might wish to promote a piece of Freight to a given Stage without
transiting the entire pipeline.
type: object
verifiedIn:
additionalProperties:
description: VerifiedStage describes a Stage in which Freight has
been verified.
type: object
description: VerifiedIn describes the Stages in which this Freight
has been verified through promotion and subsequent health checks.
description: |-
VerifiedIn describes the Stages in which this Freight has been verified
through promotion and subsequent health checks.
type: object
type: object
type: object
Expand Down
58 changes: 33 additions & 25 deletions charts/kargo/crds/kargo.akuity.io_projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
controller-gen.kubebuilder.io/version: v0.14.0
name: projects.kargo.akuity.io
spec:
group: kargo.akuity.io
Expand All @@ -24,40 +24,48 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: 'Project is a resource type that reconciles to a specially labeled
namespace and other TODO: TBD project-level resources.'
description: |-
Project is a resource type that reconciles to a specially labeled namespace
and other TODO: TBD project-level resources.
properties:
apiVersion:
description: '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'
description: |-
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
type: string
kind:
description: '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'
description: |-
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
type: string
metadata:
type: object
spec:
description: Spec describes a Project.
properties:
promotionPolicies:
description: PromotionPolicies defines policies governing the promotion
of Freight to specific Stages within this Project.
description: |-
PromotionPolicies defines policies governing the promotion of Freight to
specific Stages within this Project.
items:
description: PromotionPolicy defines policies governing the promotion
of Freight to a specific Stage.
description: |-
PromotionPolicy defines policies governing the promotion of Freight to a
specific Stage.
properties:
autoPromotionEnabled:
description: 'AutoPromotionEnabled indicates whether new Freight
can automatically be promoted into the Stage referenced by
the Stage field. Note: There are may be other conditions also
required for an auto-promotion to occur. This field defaults
to false, but is commonly set to true for Stages that subscribe
to Warehouses instead of other, upstream Stages. This allows
users to define Stages that are automatically updated as soon
as new artifacts are detected.'
description: |-
AutoPromotionEnabled indicates whether new Freight can automatically be
promoted into the Stage referenced by the Stage field. Note: There are may
be other conditions also required for an auto-promotion to occur. This
field defaults to false, but is commonly set to true for Stages that
subscribe to Warehouses instead of other, upstream Stages. This allows
users to define Stages that are automatically updated as soon as new
artifacts are detected.
type: boolean
stage:
minLength: 1
Expand All @@ -72,10 +80,10 @@ spec:
description: Status describes the Project's current status.
properties:
message:
description: Message is a display message about the Project, including
any errors preventing the Project from being reconciled. i.e. If
the Phase field has a value of CreationFailed, this field can be
expected to explain why.
description: |-
Message is a display message about the Project, including any errors
preventing the Project from being reconciled. i.e. If the Phase field has a
value of CreationFailed, this field can be expected to explain why.
type: string
phase:
description: Phase describes the Project's current phase.
Expand Down
54 changes: 33 additions & 21 deletions charts/kargo/crds/kargo.akuity.io_promotions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
controller-gen.kubebuilder.io/version: v0.14.0
name: promotions.kargo.akuity.io
spec:
group: kargo.akuity.io
Expand Down Expand Up @@ -33,32 +33,41 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: Promotion represents a request to transition a particular Stage
into a particular Freight.
description: |-
Promotion represents a request to transition a particular Stage into a
particular Freight.
properties:
apiVersion:
description: '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'
description: |-
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
type: string
kind:
description: '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'
description: |-
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
type: string
metadata:
type: object
spec:
description: Spec describes the desired transition of a specific Stage
into a specific Freight.
description: |-
Spec describes the desired transition of a specific Stage into a specific
Freight.
properties:
freight:
description: Freight specifies the piece of Freight to be promoted
into the Stage referenced by the Stage field.
description: |-
Freight specifies the piece of Freight to be promoted into the Stage
referenced by the Stage field.
minLength: 1
type: string
stage:
description: Stage specifies the name of the Stage to which this Promotion
description: |-
Stage specifies the name of the Stage to which this Promotion
applies. The Stage referenced by this field MUST be in the same
namespace as the Promotion.
minLength: 1
Expand All @@ -69,19 +78,22 @@ spec:
- stage
type: object
status:
description: Status describes the current state of the transition represented
by this Promotion.
description: |-
Status describes the current state of the transition represented by this
Promotion.
properties:
message:
description: Message is a display message about the promotion, including
any errors preventing the Promotion controller from executing this
Promotion. i.e. If the Phase field has a value of Failed, this field
can be expected to explain why.
description: |-
Message is a display message about the promotion, including any errors
preventing the Promotion controller from executing this Promotion.
i.e. If the Phase field has a value of Failed, this field can be expected
to explain why.
type: string
metadata:
additionalProperties:
type: string
description: Metadata holds arbitrary metadata set by promotion mechanisms
description: |-
Metadata holds arbitrary metadata set by promotion mechanisms
(e.g. for display purposes, or internal bookkeeping)
type: object
phase:
Expand Down
Loading

0 comments on commit d873a90

Please sign in to comment.