Documentation
¶
Index ¶
- Constants
- Variables
- func ChartLint(ctx context.Context, opts ChartLintOptions) error
- func ChartRender(ctx context.Context, opts ChartRenderOptions) error
- func ReleaseInstall(ctx context.Context, releaseName, releaseNamespace string, ...) error
- func ReleasePlanInstall(ctx context.Context, releaseName, releaseNamespace string, ...) error
- func ReleaseRollback(ctx context.Context, releaseName, releaseNamespace string, ...) error
- func ReleaseUninstall(ctx context.Context, releaseName, releaseNamespace string, ...) error
- func SecretFileDecrypt(ctx context.Context, filePath string, opts SecretFileDecryptOptions) error
- func SecretFileEdit(ctx context.Context, filePath string, opts SecretFileEditOptions) error
- func SecretFileEncrypt(ctx context.Context, filePath string, opts SecretFileEncryptOptions) error
- func SecretKeyCreate(ctx context.Context, opts SecretKeyCreateOptions) (string, error)
- func SecretKeyRotate(ctx context.Context, opts SecretKeyRotateOptions) error
- func SecretValuesFileDecrypt(ctx context.Context, valuesFilePath string, ...) error
- func SecretValuesFileEdit(ctx context.Context, valuesFilePath string, opts SecretValuesFileEditOptions) error
- func SecretValuesFileEncrypt(ctx context.Context, valuesFilePath string, ...) error
- func SetupLogging(ctx context.Context, logLevel, defaultLogLevel, colorMode string) context.Context
- type ChartLintOptions
- type ChartRenderOptions
- type ReleaseGetOptions
- type ReleaseGetResultChart
- type ReleaseGetResultDeployedAt
- type ReleaseGetResultRelease
- type ReleaseGetResultV1
- type ReleaseInstallOptions
- type ReleasePlanInstallOptions
- type ReleaseRollbackOptions
- type ReleaseUninstallOptions
- type SecretFileDecryptOptions
- type SecretFileEditOptions
- type SecretFileEncryptOptions
- type SecretKeyCreateOptions
- type SecretKeyRotateOptions
- type SecretValuesFileDecryptOptions
- type SecretValuesFileEditOptions
- type SecretValuesFileEncryptOptions
- type VersionOptions
- type VersionResult
Constants ¶
View Source
const ( LogColorModeAuto = "auto" LogColorModeOff = "off" LogColorModeOn = "on" )
View Source
const ( ReleaseStorageDriverDefault = "" ReleaseStorageDriverSecrets = "secrets" ReleaseStorageDriverSecret = "secret" ReleaseStorageDriverConfigMaps = "configmaps" ReleaseStorageDriverConfigMap = "configmap" ReleaseStorageDriverMemory = "memory" ReleaseStorageDriverSQL = "sql" )
View Source
const ( YamlOutputFormat = "yaml" JsonOutputFormat = "json" )
View Source
const ( SilentLogLevel = string(log.SilentLevel) ErrorLogLevel = string(log.ErrorLevel) WarningLogLevel = string(log.WarningLevel) InfoLogLevel = string(log.InfoLevel) DebugLogLevel = string(log.DebugLevel) TraceLogLevel = string(log.TraceLevel) )
View Source
const ( DefaultQPSLimit = 30 DefaultBurstLimit = 100 DefaultNetworkParallelism = 30 DefaultLocalKubeVersion = "1.20.0" DefaultProgressPrintInterval = 5 * time.Second DefaultReleaseHistoryLimit = 10 DefaultLogColorMode = LogColorModeAuto StubReleaseName = "stub-release" StubReleaseNamespace = "stub-namespace" )
View Source
const ( DefaultReleaseGetOutputFormat = YamlOutputFormat DefaultReleaseGetLogLevel = ErrorLogLevel )
View Source
const ( DefaultVersionOutputFormat = YamlOutputFormat DefaultVersionLogLevel = ErrorLogLevel )
View Source
const (
DefaultChartLintLogLevel = InfoLogLevel
)
View Source
const (
DefaultChartRenderLogLevel = ErrorLogLevel
)
View Source
const (
DefaultReleaseInstallLogLevel = InfoLogLevel
)
View Source
const (
DefaultReleasePlanInstallLogLevel = InfoLogLevel
)
View Source
const (
DefaultReleaseRollbackLogLevel = InfoLogLevel
)
View Source
const (
DefaultReleaseUninstallLogLevel = InfoLogLevel
)
View Source
const (
DefaultSecretFileDecryptLogLevel = ErrorLogLevel
)
View Source
const (
DefaultSecretFileEditLogLevel = ErrorLogLevel
)
View Source
const (
DefaultSecretFileEncryptLogLevel = ErrorLogLevel
)
View Source
const (
DefaultSecretKeyCreateLogLevel = ErrorLogLevel
)
View Source
const (
DefaultSecretKeyRotateLogLevel = InfoLogLevel
)
View Source
const (
DefaultSecretValuesFileDecryptLogLevel = ErrorLogLevel
)
View Source
const (
DefaultSecretValuesFileEditLogLevel = ErrorLogLevel
)
View Source
const (
DefaultSecretValuesFileEncryptLogLevel = ErrorLogLevel
)
View Source
const ReleaseGetResultApiVersionV1 = "v1"
Variables ¶
View Source
var DefaultRegistryCredentialsPath = filepath.Join(homedir.Get(), ".docker", config.ConfigFileName)
View Source
var ErrChangesPlanned = errors.New("changes planned")
View Source
var LogColorModes = []string{LogColorModeAuto, LogColorModeOff, LogColorModeOn}
Functions ¶
func ChartRender ¶
func ChartRender(ctx context.Context, opts ChartRenderOptions) error
func ReleaseInstall ¶
func ReleaseInstall(ctx context.Context, releaseName, releaseNamespace string, opts ReleaseInstallOptions) error
func ReleasePlanInstall ¶
func ReleasePlanInstall(ctx context.Context, releaseName, releaseNamespace string, opts ReleasePlanInstallOptions) error
func ReleaseRollback ¶
func ReleaseRollback(ctx context.Context, releaseName, releaseNamespace string, opts ReleaseRollbackOptions) error
func ReleaseUninstall ¶
func ReleaseUninstall(ctx context.Context, releaseName, releaseNamespace string, opts ReleaseUninstallOptions) error
func SecretFileDecrypt ¶
func SecretFileDecrypt(ctx context.Context, filePath string, opts SecretFileDecryptOptions) error
func SecretFileEdit ¶
func SecretFileEdit(ctx context.Context, filePath string, opts SecretFileEditOptions) error
func SecretFileEncrypt ¶
func SecretFileEncrypt(ctx context.Context, filePath string, opts SecretFileEncryptOptions) error
func SecretKeyCreate ¶
func SecretKeyCreate(ctx context.Context, opts SecretKeyCreateOptions) (string, error)
func SecretKeyRotate ¶
func SecretKeyRotate(ctx context.Context, opts SecretKeyRotateOptions) error
func SecretValuesFileDecrypt ¶
func SecretValuesFileDecrypt(ctx context.Context, valuesFilePath string, opts SecretValuesFileDecryptOptions) error
func SecretValuesFileEdit ¶
func SecretValuesFileEdit(ctx context.Context, valuesFilePath string, opts SecretValuesFileEditOptions) error
func SecretValuesFileEncrypt ¶
func SecretValuesFileEncrypt(ctx context.Context, valuesFilePath string, opts SecretValuesFileEncryptOptions) error
Types ¶
type ChartLintOptions ¶
type ChartLintOptions struct {
ChartAppVersion string
ChartDirPath string
ChartRepositoryInsecure bool
ChartRepositorySkipTLSVerify bool
ChartRepositorySkipUpdate bool
DefaultChartAPIVersion string
DefaultChartName string
DefaultChartVersion string
DefaultSecretValuesDisable bool
DefaultValuesDisable bool
ExtraAnnotations map[string]string
ExtraLabels map[string]string
ExtraRuntimeAnnotations map[string]string
KubeAPIServerName string
KubeBurstLimit int
KubeCAPath string
KubeConfigBase64 string
KubeConfigPaths []string
KubeContext string
KubeQPSLimit int
KubeSkipTLSVerify bool
KubeTLSServerName string
KubeToken string
Remote bool
LocalKubeVersion string
LogRegistryStreamOut io.Writer
NetworkParallelism int
RegistryCredentialsPath string
ReleaseName string
ReleaseNamespace string
ReleaseStorageDriver string
SQLConnectionString string
SecretKey string
SecretKeyIgnore bool
SecretValuesPaths []string
SecretWorkDir string
TempDirPath string
ValuesFileSets []string
ValuesFilesPaths []string
ValuesSets []string
ValuesStringSets []string
}
type ChartRenderOptions ¶
type ChartRenderOptions struct {
ChartAppVersion string
ChartDirPath string
ChartRepositoryInsecure bool
ChartRepositorySkipTLSVerify bool
ChartRepositorySkipUpdate bool
DefaultChartAPIVersion string
DefaultChartName string
DefaultChartVersion string
DefaultSecretValuesDisable bool
DefaultValuesDisable bool
ExtraAnnotations map[string]string
ExtraLabels map[string]string
ExtraRuntimeAnnotations map[string]string
KubeAPIServerName string
KubeBurstLimit int
KubeCAPath string
KubeConfigBase64 string
KubeConfigPaths []string
KubeContext string
KubeQPSLimit int
KubeSkipTLSVerify bool
KubeTLSServerName string
KubeToken string
Remote bool
LocalKubeVersion string
LogRegistryStreamOut io.Writer
NetworkParallelism int
OutputFilePath string
RegistryCredentialsPath string
ReleaseName string
ReleaseNamespace string
ReleaseStorageDriver string
SQLConnectionString string
SecretKey string
SecretKeyIgnore bool
SecretValuesPaths []string
SecretWorkDir string
ShowCRDs bool
ShowOnlyFiles []string
TempDirPath string
ValuesFileSets []string
ValuesFilesPaths []string
ValuesSets []string
ValuesStringSets []string
}
type ReleaseGetOptions ¶
type ReleaseGetOptions struct {
KubeAPIServerName string
KubeBurstLimit int
KubeCAPath string
KubeConfigBase64 string
KubeConfigPaths []string
KubeContext string
KubeQPSLimit int
KubeSkipTLSVerify bool
KubeTLSServerName string
KubeToken string
NetworkParallelism int
OutputFormat string
OutputNoPrint bool
ReleaseStorageDriver string
Revision int
SQLConnectionString string
TempDirPath string
}
type ReleaseGetResultChart ¶
type ReleaseGetResultRelease ¶
type ReleaseGetResultRelease struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Revision int `json:"revision"`
Status helmrelease.Status `json:"status"`
DeployedAt *ReleaseGetResultDeployedAt `json:"deployedAt"`
Annotations map[string]string `json:"annotations"`
}
type ReleaseGetResultV1 ¶
type ReleaseGetResultV1 struct {
ApiVersion string `json:"apiVersion"`
Release *ReleaseGetResultRelease `json:"release"`
Chart *ReleaseGetResultChart `json:"chart"`
Notes string `json:"notes"`
Hooks []map[string]interface{} `json:"hooks"`
Resources []map[string]interface{} `json:"resources"`
}
func ReleaseGet ¶
func ReleaseGet(ctx context.Context, releaseName, releaseNamespace string, opts ReleaseGetOptions) (*ReleaseGetResultV1, error)
type ReleaseInstallOptions ¶
type ReleaseInstallOptions struct {
AutoRollback bool
ChartAppVersion string
ChartDirPath string
ChartRepositoryInsecure bool
ChartRepositorySkipTLSVerify bool
ChartRepositorySkipUpdate bool
DefaultChartAPIVersion string
DefaultChartName string
DefaultChartVersion string
DefaultSecretValuesDisable bool
DefaultValuesDisable bool
ExtraAnnotations map[string]string
ExtraLabels map[string]string
ExtraRuntimeAnnotations map[string]string
InstallGraphPath string
InstallReportPath string
KubeAPIServerName string
KubeBurstLimit int
KubeCAPath string
KubeConfigBase64 string
KubeConfigPaths []string
KubeContext string
KubeQPSLimit int
KubeSkipTLSVerify bool
KubeTLSServerName string
KubeToken string
LogRegistryStreamOut io.Writer
NetworkParallelism int
NoProgressTablePrint bool
ProgressTablePrintInterval time.Duration
RegistryCredentialsPath string
ReleaseHistoryLimit int
ReleaseInfoAnnotations map[string]string
ReleaseStorageDriver string
RollbackGraphPath string
SQLConnectionString string
SecretKey string
SecretKeyIgnore bool
SecretValuesPaths []string
SecretWorkDir string
SubNotes bool
TempDirPath string
TrackCreationTimeout time.Duration
TrackDeletionTimeout time.Duration
TrackReadinessTimeout time.Duration
ValuesFileSets []string
ValuesFilesPaths []string
ValuesSets []string
ValuesStringSets []string
}
type ReleasePlanInstallOptions ¶
type ReleasePlanInstallOptions struct {
ChartAppVersion string
ChartDirPath string
ChartRepositoryInsecure bool
ChartRepositorySkipTLSVerify bool
ChartRepositorySkipUpdate bool
DefaultChartAPIVersion string
DefaultChartName string
DefaultChartVersion string
DefaultSecretValuesDisable bool
DefaultValuesDisable bool
ErrorIfChangesPlanned bool
ExtraAnnotations map[string]string
ExtraLabels map[string]string
ExtraRuntimeAnnotations map[string]string
KubeAPIServerName string
KubeBurstLimit int
KubeCAPath string
KubeConfigBase64 string
KubeConfigPaths []string
KubeContext string
KubeQPSLimit int
KubeSkipTLSVerify bool
KubeTLSServerName string
KubeToken string
LogRegistryStreamOut io.Writer
NetworkParallelism int
RegistryCredentialsPath string
ReleaseStorageDriver string
SQLConnectionString string
SecretKey string
SecretKeyIgnore bool
SecretValuesPaths []string
SecretWorkDir string
TempDirPath string
ValuesFileSets []string
ValuesFilesPaths []string
ValuesSets []string
ValuesStringSets []string
}
type ReleaseRollbackOptions ¶
type ReleaseRollbackOptions struct {
ExtraRuntimeAnnotations map[string]string
KubeAPIServerName string
KubeBurstLimit int
KubeCAPath string
KubeConfigBase64 string
KubeConfigPaths []string
KubeContext string
KubeQPSLimit int
KubeSkipTLSVerify bool
KubeTLSServerName string
KubeToken string
NetworkParallelism int
NoProgressTablePrint bool
ProgressTablePrintInterval time.Duration
ReleaseHistoryLimit int
ReleaseStorageDriver string
Revision int
RollbackGraphPath string
RollbackReportPath string
SQLConnectionString string
TempDirPath string
TrackCreationTimeout time.Duration
TrackDeletionTimeout time.Duration
TrackReadinessTimeout time.Duration
}
type ReleaseUninstallOptions ¶
type ReleaseUninstallOptions struct {
NoDeleteHooks bool
DeleteReleaseNamespace bool
KubeAPIServerName string
KubeBurstLimit int
KubeCAPath string
KubeConfigBase64 string
KubeConfigPaths []string
KubeContext string
KubeQPSLimit int
KubeSkipTLSVerify bool
KubeTLSServerName string
KubeToken string
NetworkParallelism int
ProgressTablePrintInterval time.Duration
ReleaseHistoryLimit int
ReleaseStorageDriver string
TempDirPath string
}
type SecretFileEditOptions ¶
type SecretKeyCreateOptions ¶
type SecretKeyRotateOptions ¶
type VersionOptions ¶
type VersionResult ¶
type VersionResult struct {
FullVersion string `json:"full"`
MajorVersion int `json:"major"`
MinorVersion int `json:"minor"`
PatchVersion int `json:"patch"`
}
func Version ¶
func Version(ctx context.Context, opts VersionOptions) (*VersionResult, error)
Source Files
¶
- chart_lint.go
- chart_render.go
- common.go
- release_get.go
- release_install.go
- release_plan_install.go
- release_rollback.go
- release_uninstall.go
- report.go
- secret_file_decrypt.go
- secret_file_edit.go
- secret_file_encrypt.go
- secret_key_create.go
- secret_key_rotate.go
- secret_values_file_decrypt.go
- secret_values_file_edit.go
- secret_values_file_encrypt.go
- util.go
- version.go
Click to show internal directories.
Click to hide internal directories.