Documentation
¶
Index ¶
- Variables
- func AddBasicAuthRepository(name, url, username, password string) error
- func GenUniqueHash(hr *v1alpha1.HelmRequest) string
- func GetChartsForRepo(name string) (*repo.IndexFile, error)
- func IsHelmRequestSynced(hr *v1alpha1.HelmRequest) bool
- func RemoveRepository(name string) error
- type Deploy
- type Downloader
- type IndexSyncer
- type Values
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ChartsDir = "/tmp/helm-charts"
)
Functions ¶
func AddBasicAuthRepository ¶ added in v0.9.0
AddBasicAuthRepository add a repo with basic auth
func GenUniqueHash ¶ added in v0.9.8
func GenUniqueHash(hr *v1alpha1.HelmRequest) string
GenUniqueHash generate a unique hash for a HelmRequest
func GetChartsForRepo ¶ added in v0.9.2
GetChartsForRepo retrieve charts info from a repo cache index Check: can we use the generated time to do compare?
func IsHelmRequestSynced ¶
func IsHelmRequestSynced(hr *v1alpha1.HelmRequest) bool
IsHelmRequestSynced check if a HelmRequest is synced only if hash is equal and not install to all clusters First version: only hash .spec Second version: hash .spec and .metadata.annotations
func RemoveRepository ¶ added in v0.9.0
RemoveRepository remove a repo from helm
Types ¶
type Deploy ¶ added in v0.9.5
type Deploy struct {
// logger
Log logr.Logger
// is this chart has deployed release
Deployed bool
// the global cluster info
InCluster *cluster.Info
// target cluster info
Cluster *cluster.Info
// system namespace for chartrepo
SystemNamespace string
// all the charts info
HelmRequest *v1alpha1.HelmRequest
}
Deploy contains info about one chart deploy
type Downloader ¶ added in v0.9.5
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶ added in v0.9.5
type IndexSyncer ¶
type IndexSyncer struct {
// contains filtered or unexported fields
}
IndexSyncer sync helm repo index repeatedly
func NewDefaultIndexSyncer ¶
func NewDefaultIndexSyncer() *IndexSyncer
NewDefaultIndexSyncer create a new IndexSyncer
func (*IndexSyncer) Start ¶
func (i *IndexSyncer) Start(stop <-chan struct{}) error
Start will refresh the repo index periodically
Click to show internal directories.
Click to hide internal directories.