webhookHelm

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_NAMESPACE   = "default"
	HELM_APP_DETAIL_URL = "%s/orchestrator/application/app?appId=%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartRepoIdentifierSpec

type ChartRepoIdentifierSpec struct {
	Url      string `json:"url,notnull" validate:"required"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

type ChartRepoSpec

type ChartRepoSpec struct {
	Name       string                   `json:"name,notnull" validate:"required"`
	Identifier *ChartRepoIdentifierSpec `json:"identifier,omitempty"`
}

type ChartSpec

type ChartSpec struct {
	Repo         *ChartRepoSpec `json:"repo,notnull" validate:"required"`
	ChartName    string         `json:"chartName,notnull" validate:"required"`
	ChartVersion string         `json:"chartVersion,omitempty"`
}

type HelmAppCreateUpdateRequest

type HelmAppCreateUpdateRequest struct {
	ClusterName        string     `json:"clusterName,notnull" validate:"required"`
	Namespace          string     `json:"namespace,omitempty"`
	ReleaseName        string     `json:"releaseName,notnull" validate:"required"`
	ValuesOverrideYaml string     `json:"valuesOverrideYaml,omitempty"`
	Chart              *ChartSpec `json:"chart,notnull" validate:"required"`
}

type WebhookHelmService

type WebhookHelmService interface {
	CreateOrUpdateHelmApplication(ctx context.Context, request *HelmAppCreateUpdateRequest) (result interface{}, errorCode string, errorMessage string, statusCode int)
}

type WebhookHelmServiceImpl

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

func NewWebhookHelmServiceImpl

func NewWebhookHelmServiceImpl(logger *zap.SugaredLogger, helmAppService client.HelmAppService, clusterService cluster.ClusterService,
	chartRepositoryService chartRepo.ChartRepositoryService, attributesService attributes.AttributesService) *WebhookHelmServiceImpl

func (WebhookHelmServiceImpl) CreateOrUpdateHelmApplication

func (impl WebhookHelmServiceImpl) CreateOrUpdateHelmApplication(ctx context.Context, request *HelmAppCreateUpdateRequest) (result interface{}, errorCode string, errorMessage string, statusCode int)

Jump to

Keyboard shortcuts

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