Help us shape the future of Go! Take the 2026 Go Developer Survey

bean

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 23

Documentation

Index

Constants

View Source
const (
	RefreshTypeNormal          = "normal"
	TargetRevisionMaster       = "master"
	TargetRevisionOriginMaster = "origin/master"
	PatchTypeMerge             = "merge"
	TargetRevisionHead         = "head"
)
View Source
const (
	Degraded    = "Degraded"
	Healthy     = "Healthy"
	Progressing = "Progressing"
	Suspended   = "Suspended"
	TimeoutFast = 10 * time.Second
	TimeoutSlow = 30 * time.Second
	TimeoutLazy = 60 * time.Second
	HIBERNATING = "HIBERNATING"
	SUCCEEDED   = "Succeeded"
)
View Source
const ArgoRepoSyncDelayErr = "unable to resolve 'HEAD' to a commit SHA" // argocd version <= v2.13.0

ArgoRepoSyncDelayErr - This error occurs inconsistently; ArgoCD requires 80-120s after last commit for create repository operation Error message reference: https://github.com/argoproj/argo-cd/blob/master/util/git/client.go#L718

View Source
const ArgoRepoSyncDelayErrOld = "Unable to resolve 'HEAD' to a commit SHA" // argocd version > v2.13.0
View Source
const RegisterRepoMaxRetryCount = 3

RegisterRepoMaxRetryCount is the maximum retries to be performed to register a repository in ArgoCd

Variables

View Source
var EmptyRepoErrorList = []string{"failed to get index: 404 Not Found", "remote repository is empty"}

EmptyRepoErrorList - ArgoCD can't register empty repo and throws these error message in such cases

Functions

This section is empty.

Types

type AcdAuthConfig added in v1.2.1

type AcdAuthConfig struct {
	ClusterId                 int
	DevtronSecretName         string
	DevtronDexSecretNamespace string
	UserName                  string
	Password                  string
}

type ArgoCdAppPatchReqDto added in v0.6.29

type ArgoCdAppPatchReqDto struct {
	ArgoAppName    string
	ChartLocation  string
	GitRepoUrl     string
	TargetRevision string
	PatchType      string
}

type ArgoGRPCConfig added in v1.2.2

type ArgoGRPCConfig struct {
	ConnectionConfig *Config
	AuthConfig       *AcdAuthConfig
}

type ArgoK8sConfig added in v1.2.2

type ArgoK8sConfig struct {
	RestConfig       *rest.Config
	AcdNamespace     string
	AcdConfigMapName string
}

type Config added in v1.2.2

type Config struct {
	Host      string `env:"CD_HOST" envDefault:"localhost" description:"Host for the devtron stack"`
	Port      string `env:"CD_PORT" envDefault:"8000" description:"Port for pre/post-cd" `
	Namespace string `env:"CD_NAMESPACE" envDefault:"devtroncd"`
}

func GetConfig added in v1.2.2

func GetConfig() (*Config, error)

type ErrUnauthorized added in v0.6.29

type ErrUnauthorized struct {
	// contains filtered or unexported fields
}

func NewErrUnauthorized added in v0.6.29

func NewErrUnauthorized(message string) *ErrUnauthorized

func (*ErrUnauthorized) Error added in v0.6.29

func (e *ErrUnauthorized) Error() string

type PodMetadata added in v0.6.29

type PodMetadata struct {
	Name           string    `json:"name"`
	UID            string    `json:"uid"`
	Containers     []*string `json:"containers"`
	InitContainers []*string `json:"initContainers"`
	IsNew          bool      `json:"isNew"`
	// EphemeralContainers are set for Pod kind manifest response only
	// will always contain running ephemeral containers
	// +optional
	EphemeralContainers []*k8sObjectsUtil.EphemeralContainerData `json:"ephemeralContainers"`
}

type ResourceTreeResponse added in v0.6.29

type ResourceTreeResponse struct {
	*v1alpha1.ApplicationTree
	Status                 string                          `json:"status"`
	RevisionHash           string                          `json:"revisionHash"`
	PodMetadata            []*PodMetadata                  `json:"podMetadata"`
	Conditions             []v1alpha1.ApplicationCondition `json:"conditions"`
	ResourcesSyncResultMap map[string]string               `json:"resourcesSyncResult"`
}

type Result added in v0.6.29

type Result struct {
	Response *application.ApplicationResourceResponse
	Error    error
	Request  *application.ApplicationResourceRequest
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL