Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,199 changes: 1,025 additions & 174 deletions gitops-promoter/crds/crds.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gitops-promoter/kcl.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gitops-promoter"
edition = "v0.11.2"
version = "v0.14.0"
version = "v0.18.3"

[dependencies]
k8s = "1.32.4"
2 changes: 1 addition & 1 deletion gitops-promoter/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit
set -o nounset
set -eoux pipefail

VERSION="v0.14.0"
VERSION="v0.18.3"

rm -rf v*
mkdir -p crds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ schema PromoterArgoprojIoV1alpha1ArgoCDCommitStatusStatusApplicationsSelectedIte
Attributes
----------
clusterName : str, default is Undefined, required
ClusterName is the name of the cluster that the application manifest is deployed to.
environment : str, default is Undefined, optional
ClusterName is the name of the cluster that the application manifest is deployed to. An empty string indicates
the local cluster.
environment : str, default is Undefined, required
Environment is the syncSource.targetBranch of the Argo CD application (in effect, its environment).
lastTransitionTime : str, default is Undefined, optional
LastTransitionTime is the last time the phase transitioned.
Expand All @@ -217,7 +218,7 @@ schema PromoterArgoprojIoV1alpha1ArgoCDCommitStatusStatusApplicationsSelectedIte

clusterName: str

environment?: str
environment: str

lastTransitionTime?: str

Expand All @@ -230,6 +231,10 @@ schema PromoterArgoprojIoV1alpha1ArgoCDCommitStatusStatusApplicationsSelectedIte
sha: str


check:
len(environment) >= 1


schema PromoterArgoprojIoV1alpha1ArgoCDCommitStatusStatusConditionsItems0:
r"""
Condition contains details for one aspect of the current state of this API Resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusActiveCommitStatusesI
len(key) <= 63
len(key) >= 1
_regex_match(str(key), r"([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]")
_regex_match(str(url), r"^(https?://.*)?$") if url


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusActiveDry:
Expand Down Expand Up @@ -247,6 +248,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusActiveDry:
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusActiveDryReferencesItems0:
r"""
RevisionReference contains a reference to a some information that is related in some way to another commit. For now,
Expand Down Expand Up @@ -296,6 +301,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusActiveDryReferencesIt
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusActiveHydrated:
r"""
Hydrated is the hydrated state of the branch, which is the commit that is currently being worked on.
Expand Down Expand Up @@ -334,6 +343,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusActiveHydrated:
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusActiveHydratedReferencesItems0:
r"""
RevisionReference contains a reference to a some information that is related in some way to another commit. For now,
Expand Down Expand Up @@ -383,6 +396,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusActiveHydratedReferen
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusConditionsItems0:
r"""
Condition contains details for one aspect of the current state of this API Resource.
Expand Down Expand Up @@ -505,6 +522,7 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ActiveCo
len(key) <= 63
len(key) >= 1
_regex_match(str(key), r"([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]")
_regex_match(str(url), r"^(https?://.*)?$") if url


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ActiveDry:
Expand Down Expand Up @@ -545,6 +563,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ActiveDr
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ActiveDryReferencesItems0:
r"""
RevisionReference contains a reference to a some information that is related in some way to another commit. For now,
Expand Down Expand Up @@ -594,6 +616,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ActiveDr
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ActiveHydrated:
r"""
Hydrated is the hydrated state of the branch, which is the commit that is currently being worked on.
Expand Down Expand Up @@ -632,6 +658,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ActiveHy
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ActiveHydratedReferencesItems0:
r"""
RevisionReference contains a reference to a some information that is related in some way to another commit. For now,
Expand Down Expand Up @@ -681,6 +711,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ActiveHy
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0Proposed:
r"""
Proposed is the state of the proposed branch at the time the PR was merged.
Expand Down Expand Up @@ -726,6 +760,7 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0Proposed
len(key) <= 63
len(key) >= 1
_regex_match(str(key), r"([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]")
_regex_match(str(url), r"^(https?://.*)?$") if url


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ProposedHydrated:
Expand Down Expand Up @@ -766,6 +801,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0Proposed
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0ProposedHydratedReferencesItems0:
r"""
RevisionReference contains a reference to a some information that is related in some way to another commit. For now,
Expand Down Expand Up @@ -815,6 +854,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0Proposed
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0PullRequest:
r"""
PullRequest is the state of the pull request that was created for this ChangeTransferPolicy.
Expand All @@ -825,6 +868,11 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0PullRequ
ID is the unique identifier of the pull request, set by the SCM.
prCreationTime : str, default is Undefined, optional
PRCreationTime is the time when the pull request was created.
prMergeTime : str, default is Undefined, optional
PRMergeTime is the time when the pull request was merged. This time can vary slightly from the actual merge time because
it is the time when the ChangeTransferPolicy controller sets the pull requests spec to merge. In the future we plan on making
this time more accurate by fetching the actual merge time from the SCM via the webhook this would then be updated in the git note
for that commit.
state : str, default is Undefined, optional
State is the state of the pull request.
url : str, default is Undefined, optional
Expand All @@ -836,11 +884,17 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusHistoryItems0PullRequ

prCreationTime?: str

prMergeTime?: str

state?: "closed" | "merged" | "open"

url?: str


check:
_regex_match(str(url), r"^(https?://.*)?$") if url


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposed:
r"""
Proposed is the state of the proposed branch.
Expand Down Expand Up @@ -889,6 +943,7 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposedCommitStatuse
len(key) <= 63
len(key) >= 1
_regex_match(str(key), r"([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]")
_regex_match(str(url), r"^(https?://.*)?$") if url


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposedDry:
Expand Down Expand Up @@ -929,6 +984,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposedDry:
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposedDryReferencesItems0:
r"""
RevisionReference contains a reference to a some information that is related in some way to another commit. For now,
Expand Down Expand Up @@ -978,6 +1037,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposedDryReferences
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposedHydrated:
r"""
Hydrated is the hydrated state of the branch, which is the commit that is currently being worked on.
Expand Down Expand Up @@ -1016,6 +1079,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposedHydrated:
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposedHydratedReferencesItems0:
r"""
RevisionReference contains a reference to a some information that is related in some way to another commit. For now,
Expand Down Expand Up @@ -1065,6 +1132,10 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusProposedHydratedRefer
subject?: str


check:
_regex_match(str(repoURL), r"^(https?://.*)?$") if repoURL


schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusPullRequest:
r"""
PullRequest is the state of the pull request that was created for this ChangeTransferPolicy.
Expand All @@ -1075,6 +1146,11 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusPullRequest:
ID is the unique identifier of the pull request, set by the SCM.
prCreationTime : str, default is Undefined, optional
PRCreationTime is the time when the pull request was created.
prMergeTime : str, default is Undefined, optional
PRMergeTime is the time when the pull request was merged. This time can vary slightly from the actual merge time because
it is the time when the ChangeTransferPolicy controller sets the pull requests spec to merge. In the future we plan on making
this time more accurate by fetching the actual merge time from the SCM via the webhook this would then be updated in the git note
for that commit.
state : str, default is Undefined, optional
State is the state of the pull request.
url : str, default is Undefined, optional
Expand All @@ -1086,8 +1162,14 @@ schema PromoterArgoprojIoV1alpha1ChangeTransferPolicyStatusPullRequest:

prCreationTime?: str

prMergeTime?: str

state?: "closed" | "merged" | "open"

url?: str


check:
_regex_match(str(url), r"^(https?://.*)?$") if url


Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
import regex
import k8s.apimachinery.pkg.apis.meta.v1
_regex_match = regex.match


schema ClusterScmProvider:
Expand All @@ -19,8 +21,8 @@ schema ClusterScmProvider:
metadata
spec : PromoterArgoprojIoV1alpha1ClusterScmProviderSpec, default is Undefined, optional
spec
status : any, default is Undefined, optional
ScmProviderStatus defines the observed state of ScmProvider
status : PromoterArgoprojIoV1alpha1ClusterScmProviderStatus, default is Undefined, optional
status
"""


Expand All @@ -32,7 +34,7 @@ schema ClusterScmProvider:

spec?: PromoterArgoprojIoV1alpha1ClusterScmProviderSpec

status?: any
status?: PromoterArgoprojIoV1alpha1ClusterScmProviderStatus


schema PromoterArgoprojIoV1alpha1ClusterScmProviderSpec:
Expand Down Expand Up @@ -156,3 +158,69 @@ schema PromoterArgoprojIoV1alpha1ClusterScmProviderSpecSecretRef:
name?: str = ""


schema PromoterArgoprojIoV1alpha1ClusterScmProviderStatus:
r"""
ScmProviderStatus defines the observed state of ScmProvider

Attributes
----------
conditions : [PromoterArgoprojIoV1alpha1ClusterScmProviderStatusConditionsItems0], default is Undefined, optional
Conditions Represents the observations of the current state.
"""


conditions?: [PromoterArgoprojIoV1alpha1ClusterScmProviderStatusConditionsItems0]


schema PromoterArgoprojIoV1alpha1ClusterScmProviderStatusConditionsItems0:
r"""
Condition contains details for one aspect of the current state of this API Resource.

Attributes
----------
lastTransitionTime : str, default is Undefined, 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.
message : str, default is Undefined, required
message is a human readable message indicating details about the transition.
This may be an empty string.
observedGeneration : int, default is Undefined, optional
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.
reason : str, default is Undefined, 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.
status : str, default is Undefined, required
status of the condition, one of True, False, Unknown.
$type : str, default is Undefined, required
type of condition in CamelCase or in foo.example.com/CamelCase.
"""


lastTransitionTime: str

message: str

observedGeneration?: int

reason: str

status: "True" | "False" | "Unknown"

$type: str


check:
len(message) <= 32768
observedGeneration >= 0 if observedGeneration not in [None, Undefined]
len(reason) <= 1024
len(reason) >= 1
_regex_match(str(reason), r"^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$")
len($type) <= 316
_regex_match(str($type), r"^([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])$")


Loading