upstream

package
v1.129.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KnownRepos = map[string]string{
	"stable":  "https://kubernetes-charts.storage.googleapis.com",
	"local":   "http://127.0.0.1:8879",
	"elastic": "https://helm.elastic.co",
	"gomods":  "https://athens.blob.core.windows.net/charts",
	"harbor":  "https://helm.goharbor.io",
}

Functions

func CreateAirgapMultipartRequest added in v1.128.2

func CreateAirgapMultipartRequest(airgapBundle string) (io.Reader, string, error)

CreateAirgapMultipartRequest creates a multipart request body for airgap bundle upload

func FetchUpstream

func FetchUpstream(upstreamURI string, fetchOptions *types.FetchOptions) (*types.Upstream, error)

func GenerateAdminConsoleFiles

func GenerateAdminConsoleFiles(renderDir string, options types.WriteOptions) ([]types.UpstreamFile, error)

func GetUpdatesUpstream

func GetUpdatesUpstream(upstreamURI string, fetchOptions *types.FetchOptions) (*types.UpdateCheckResult, error)

func LoadIdentity

func LoadIdentity(upstreamDir string) (*kotsv1beta1.Identity, error)

func LoadIdentityConfig

func LoadIdentityConfig(upstreamDir string) (*kotsv1beta1.IdentityConfig, error)

func MustMarshalLicenseWrapper added in v1.129.0

func MustMarshalLicenseWrapper(license *licensewrapper.LicenseWrapper) ([]byte, error)

MustMarshalLicenseWrapper marshals a LicenseWrapper to YAML bytes. It marshals the appropriate version (v1beta1 or v1beta2) based on what's present in the wrapper.

func PushImagesFromAirgapBundle added in v1.128.2

func PushImagesFromAirgapBundle(airgapBundle string, registryConfig kotsadmtypes.RegistryConfig) error

PushImagesFromAirgapBundle pushes images from an airgap bundle to registry if image push is enabled

func SaveIdentityConfig

func SaveIdentityConfig(identityConfig *kotsv1beta1.IdentityConfig, upstreamDir string) error

func WriteUpstream

func WriteUpstream(u *types.Upstream, options types.WriteOptions) error

Types

type App

type App struct {
	Name string
}

type ChannelRelease

type ChannelRelease struct {
	ChannelSequence        int    `json:"channelSequence"`
	ReleaseSequence        int    `json:"releaseSequence"`
	VersionLabel           string `json:"versionLabel"`
	IsRequired             bool   `json:"isRequired"`
	CreatedAt              string `json:"createdAt"`
	ReleaseNotes           string `json:"releaseNotes"`
	EmbeddedClusterVersion string `json:"embeddedClusterVersion,omitempty"` // the version of the embedded cluster (if applicable) this release contains
}

type IncompatibleAppError

type IncompatibleAppError struct {
	KotsApplication *kotsv1beta1.Application
	License         *licensewrapper.LicenseWrapper
	Message         string
}

func (IncompatibleAppError) Error

func (e IncompatibleAppError) Error() string

type Release

type Release struct {
	UpdateCursor             replicatedapp.ReplicatedCursor
	VersionLabel             string
	IsRequired               bool
	ReleaseNotes             string
	ReleasedAt               *time.Time
	ReplicatedRegistryDomain string
	ReplicatedProxyDomain    string
	ReplicatedChartNames     []string
	EmbeddedClusterArtifacts *kotsv1beta1.EmbeddedClusterArtifacts
	Manifests                map[string][]byte
}

type UpgradeOptions

type UpgradeOptions struct {
	AirgapBundle        string
	RegistryConfig      kotsadmtypes.RegistryConfig
	IsKurl              bool
	DisableImagePush    bool
	UpdateCheckEndpoint string
	Namespace           string
	Debug               bool
	Deploy              bool
	DeployVersionLabel  string
	Wait                bool
	Silent              bool
}

type UpgradeRelease

type UpgradeRelease struct {
	Sequence int64  `json:"sequence"`
	Version  string `json:"version"`
}

type UpgradeResponse

type UpgradeResponse struct {
	Success           bool             `json:"success"`
	AvailableUpdates  int64            `json:"availableUpdates"`
	CurrentRelease    *UpgradeRelease  `json:"currentRelease,omitempty"`
	AvailableReleases []UpgradeRelease `json:"availableReleases,omitempty"`
	DeployingRelease  *UpgradeRelease  `json:"deployingRelease,omitempty"`
	Error             string           `json:"error,omitempty"`
}

func Upgrade

func Upgrade(appSlug string, options UpgradeOptions) (*UpgradeResponse, error)

type UpstreamSettings

type UpstreamSettings struct {
	Namespace              string
	SharedPassword         string
	SharedPasswordBcrypt   string
	S3AccessKey            string
	S3SecretKey            string
	JWT                    string
	RqlitePassword         string
	APIEncryptionKey       string
	StorageClassName       string
	HTTPProxyEnvValue      string
	HTTPSProxyEnvValue     string
	NoProxyEnvValue        string
	AutoCreateClusterToken string
	IsOpenShift            bool
	IsGKEAutopilot         bool
	IncludeMinio           bool
	IsMinimalRBAC          bool
	MigrateToMinioXl       bool
	CurrentMinioImage      string
	AdditionalNamespaces   []string
	PrivateCAsConfigmap    string

	RegistryConfig kotsadmtypes.RegistryConfig
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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