-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60df568
commit b697cee
Showing
6 changed files
with
888 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ ehthumbs.db | |
Thumbs.db | ||
vendor/ | ||
node_modules/ | ||
tmp/ |
154 changes: 154 additions & 0 deletions
154
cue.mod/gen/kargo.akuity.io/freight/v1alpha1/types_gen.cue
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,154 @@ | ||
// Code generated by timoni. DO NOT EDIT. | ||
|
||
//timoni:generate timoni vendor crd -f projects/argocd/components/kargo/vendor/1.0.3/kargo/resources/crds/kargo.akuity.io_freights.yaml | ||
|
||
package v1alpha1 | ||
|
||
import "strings" | ||
|
||
// Freight represents a collection of versioned artifacts. | ||
#Freight: { | ||
// Alias is a human-friendly alias for a piece of Freight. This is | ||
// an optional | ||
// field. A defaulting webhook will sync this field with the value | ||
// of the | ||
// kargo.akuity.io/alias label. When the alias label is not | ||
// present or differs | ||
// from the value of this field, the defaulting webhook will set | ||
// the label to | ||
// the value of this field. If the alias label is present and this | ||
// field is | ||
// empty, the defaulting webhook will set the value of this field | ||
// to the value | ||
// of the alias label. If this field is empty and the alias label | ||
// is not | ||
// present, the defaulting webhook will choose an available alias | ||
// and assign | ||
// it to both the field and label. | ||
alias?: 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 | ||
apiVersion: "kargo.akuity.io/v1alpha1" | ||
|
||
// Charts describes specific versions of specific Helm charts. | ||
charts?: [...{ | ||
// Name specifies the name of the chart. | ||
name?: string | ||
|
||
// 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. | ||
repoURL?: string | ||
|
||
// Version specifies a particular version of the chart. | ||
version?: string | ||
}] | ||
|
||
// Commits describes specific Git repository commits. | ||
commits?: [...{ | ||
// Author is the author of the commit. | ||
author?: string | ||
|
||
// Branch denotes the branch of the repository where this commit | ||
// was found. | ||
branch?: string | ||
|
||
// Committer is the person who committed the commit. | ||
committer?: string | ||
|
||
// ID is the ID of a specific commit in the Git repository | ||
// specified by | ||
// RepoURL. | ||
id?: string | ||
|
||
// Message is the message associated with the commit. At present, | ||
// this only | ||
// contains the first line (subject) of the commit message. | ||
message?: string | ||
|
||
// RepoURL is the URL of a Git repository. | ||
repoURL?: string | ||
|
||
// Tag denotes a tag in the repository that matched selection | ||
// criteria and | ||
// resolved to this commit. | ||
tag?: string | ||
}] | ||
|
||
// Images describes specific versions of specific container | ||
// images. | ||
images?: [...{ | ||
// Digest identifies a specific version of the image in the | ||
// repository | ||
// specified by RepoURL. This is a more precise identifier than | ||
// Tag. | ||
digest?: string | ||
|
||
// 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. | ||
gitRepoURL?: string | ||
|
||
// RepoURL describes the repository in which the image can be | ||
// found. | ||
repoURL?: string | ||
|
||
// Tag identifies a specific version of the image in the | ||
// repository specified | ||
// by RepoURL. | ||
tag?: 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 | ||
kind: "Freight" | ||
metadata!: { | ||
name!: strings.MaxRunes(253) & strings.MinRunes(1) & { | ||
string | ||
} | ||
namespace!: strings.MaxRunes(63) & strings.MinRunes(1) & { | ||
string | ||
} | ||
labels?: { | ||
[string]: string | ||
} | ||
annotations?: { | ||
[string]: string | ||
} | ||
} | ||
|
||
// Origin describes a kind of Freight in terms of its origin. | ||
origin: { | ||
// Kind is the kind of resource from which Freight may have | ||
// originated. At | ||
// present, this can only be "Warehouse". | ||
kind: "Warehouse" | ||
|
||
// Name is the name of the resource of the kind indicated by the | ||
// Kind field | ||
// from which Freight may originated. | ||
name: string | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
cue.mod/gen/kargo.akuity.io/project/v1alpha1/types_gen.cue
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,72 @@ | ||
// Code generated by timoni. DO NOT EDIT. | ||
|
||
//timoni:generate timoni vendor crd -f projects/argocd/components/kargo/vendor/1.0.3/kargo/resources/crds/kargo.akuity.io_projects.yaml | ||
|
||
package v1alpha1 | ||
|
||
import "strings" | ||
|
||
// Project is a resource type that reconciles to a specially | ||
// labeled namespace | ||
// and other TODO: TBD project-level resources. | ||
#Project: { | ||
// 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 | ||
apiVersion: "kargo.akuity.io/v1alpha1" | ||
|
||
// 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 | ||
kind: "Project" | ||
metadata!: { | ||
name!: strings.MaxRunes(253) & strings.MinRunes(1) & { | ||
string | ||
} | ||
namespace?: strings.MaxRunes(63) & strings.MinRunes(1) & { | ||
string | ||
} | ||
labels?: { | ||
[string]: string | ||
} | ||
annotations?: { | ||
[string]: string | ||
} | ||
} | ||
|
||
// Spec describes a Project. | ||
spec!: #ProjectSpec | ||
} | ||
#ProjectSpec: { | ||
// PromotionPolicies defines policies governing the promotion of | ||
// Freight to | ||
// specific Stages within this Project. | ||
promotionPolicies?: [...{ | ||
// 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. | ||
autoPromotionEnabled?: bool | ||
stage: strings.MinRunes(1) & { | ||
=~"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$" | ||
} | ||
}] | ||
} |
83 changes: 83 additions & 0 deletions
83
cue.mod/gen/kargo.akuity.io/promotion/v1alpha1/types_gen.cue
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,83 @@ | ||
// Code generated by timoni. DO NOT EDIT. | ||
|
||
//timoni:generate timoni vendor crd -f projects/argocd/components/kargo/vendor/1.0.3/kargo/resources/crds/kargo.akuity.io_promotions.yaml | ||
|
||
package v1alpha1 | ||
|
||
import "strings" | ||
|
||
// Promotion represents a request to transition a particular Stage | ||
// into a | ||
// particular Freight. | ||
#Promotion: { | ||
// 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 | ||
apiVersion: "kargo.akuity.io/v1alpha1" | ||
|
||
// 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 | ||
kind: "Promotion" | ||
metadata!: { | ||
name!: strings.MaxRunes(253) & strings.MinRunes(1) & { | ||
string | ||
} | ||
namespace!: strings.MaxRunes(63) & strings.MinRunes(1) & { | ||
string | ||
} | ||
labels?: { | ||
[string]: string | ||
} | ||
annotations?: { | ||
[string]: string | ||
} | ||
} | ||
|
||
// Spec describes the desired transition of a specific Stage into | ||
// a specific | ||
// Freight. | ||
spec!: #PromotionSpec | ||
} | ||
|
||
// Spec describes the desired transition of a specific Stage into | ||
// a specific | ||
// Freight. | ||
#PromotionSpec: { | ||
// Freight specifies the piece of Freight to be promoted into the | ||
// Stage | ||
// referenced by the Stage field. | ||
freight: strings.MinRunes(1) | ||
|
||
// 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. | ||
stage: strings.MinRunes(1) & { | ||
=~"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$" | ||
} | ||
|
||
// Steps specifies the directives to be executed as part of this | ||
// Promotion. | ||
// The order in which the directives are executed is the order in | ||
// which they | ||
// are listed in this field. | ||
steps?: [...{ | ||
// As is the alias this step can be referred to as. | ||
as?: string | ||
|
||
// Config is the configuration for the directive. | ||
config?: _ | ||
|
||
// Uses identifies a runner that can execute this step. | ||
uses: strings.MinRunes(1) | ||
}] | ||
} |
Oops, something went wrong.