Skip to content

Commit

Permalink
Update: Initialize Cue module and add definitions
Browse files Browse the repository at this point in the history
Signed-off-by: santoshkal <[email protected]>
  • Loading branch information
santoshkal committed Oct 23, 2023
1 parent c38ef30 commit 587b78e
Show file tree
Hide file tree
Showing 1,530 changed files with 276,673 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application

package application

// API Group
#Group: "argoproj.io"

// Application constants
#ApplicationKind: "Application"
#ApplicationSingular: "application"
#ApplicationPlural: "applications"
#ApplicationShortName: "app"
#ApplicationFullName: "applications.argoproj.io"

// AppProject constants
#AppProjectKind: "AppProject"
#AppProjectSingular: "appproject"
#AppProjectPlural: "appprojects"
#AppProjectShortName: "appproject"
#AppProjectFullName: "appprojects.argoproj.io"

// ApplicationSet constants
#ApplicationSetKind: "ApplicationSet"
#ApplicationSetSingular: "applicationset"
#ApplicationSetShortName: "appset"
#ApplicationSetPlural: "applicationsets"
#ApplicationSetFullName: "applicationsets.argoproj.io"
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1

package v1alpha1

import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

// AppProjectList is list of AppProject resources
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
#AppProjectList: {
metav1.#TypeMeta
metadata: metav1.#ListMeta @go(ListMeta) @protobuf(1,bytes,opt)
items: [...#AppProject] @go(Items,[]AppProject) @protobuf(2,bytes,rep)
}

// AppProject provides a logical grouping of applications, providing controls for:
// * where the apps may deploy to (cluster whitelist)
// * what may be deployed (repository whitelist, resource whitelist/blacklist)
// * who can access these applications (roles, OIDC group claims bindings)
// * and what they can do (RBAC policies)
// * automation access to these roles (JWT tokens)
// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:path=appprojects,shortName=appproj;appprojs
#AppProject: {
metav1.#TypeMeta
metadata: metav1.#ObjectMeta @go(ObjectMeta) @protobuf(1,bytes,opt)
spec: #AppProjectSpec @go(Spec) @protobuf(2,bytes,opt)
status?: #AppProjectStatus @go(Status) @protobuf(3,bytes,opt)
}

// AppProjectStatus contains status information for AppProject CRs
#AppProjectStatus: {
// JWTTokensByRole contains a list of JWT tokens issued for a given role
jwtTokensByRole?: {[string]: #JWTTokens} @go(JWTTokensByRole,map[string]JWTTokens) @protobuf(1,bytes,opt)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1

package v1alpha1

// AnnotationKeyRefresh is the annotation key which indicates that app needs to be refreshed. Removed by application controller after app is refreshed.
// Might take values 'normal'/'hard'. Value 'hard' means manifest cache and target cluster state cache should be invalidated before refresh.
#AnnotationKeyRefresh: "argocd.argoproj.io/refresh"

// AnnotationKeyManifestGeneratePaths is an annotation that contains a list of semicolon-separated paths in the
// manifests repository that affects the manifest generation. Paths might be either relative or absolute. The
// absolute path means an absolute path within the repository and the relative path is relative to the application
// source path within the repository.
#AnnotationKeyManifestGeneratePaths: "argocd.argoproj.io/manifest-generate-paths"
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1

package v1alpha1

import "time"

#DefaultSyncRetryMaxDuration: time.#Duration & 180000000000
#DefaultSyncRetryDuration: time.#Duration & 5000000000
#DefaultSyncRetryFactor: int64 & 2

// ResourcesFinalizerName is the finalizer value which we inject to finalize deletion of an application
#ResourcesFinalizerName: "resources-finalizer.argocd.argoproj.io"

// ForegroundPropagationPolicyFinalizer is the finalizer we inject to delete application with foreground propagation policy
#ForegroundPropagationPolicyFinalizer: "resources-finalizer.argocd.argoproj.io/foreground"

// BackgroundPropagationPolicyFinalizer is the finalizer we inject to delete application with background propagation policy
#BackgroundPropagationPolicyFinalizer: "resources-finalizer.argocd.argoproj.io/background"

// DefaultAppProjectName contains name of 'default' app project, which is available in every Argo CD installation
#DefaultAppProjectName: "default"

// RevisionHistoryLimit is the max number of successful sync to keep in history
#RevisionHistoryLimit: 10

// KubernetesInternalAPIServerAddr is address of the k8s API server when accessing internal to the cluster
#KubernetesInternalAPIServerAddr: "https://kubernetes.default.svc"
Loading

0 comments on commit 587b78e

Please sign in to comment.