clean: optimize postrenderer code (#738)

This commit is contained in:
yxxhero
2023-03-14 06:18:20 +08:00
committed by GitHub
parent 5cdec2dd51
commit 2d9f83c1de
10 changed files with 59 additions and 91 deletions
-9
View File
@@ -35,7 +35,6 @@ type execer struct {
logger *zap.SugaredLogger
kubeContext string
extra []string
postRenderer string
decryptedSecretMutex sync.Mutex
decryptedSecrets map[string]*decryptedSecret
writeTempFile func([]byte) (string, error)
@@ -136,14 +135,6 @@ func (helm *execer) SetEnableLiveOutput(enableLiveOutput bool) {
helm.enableLiveOutput = enableLiveOutput
}
func (helm *execer) SetPostRenderer(postRenderer string) {
helm.postRenderer = postRenderer
}
func (helm *execer) GetPostRenderer() string {
return helm.postRenderer
}
func (helm *execer) AddRepo(name, repository, cafile, certfile, keyfile, username, password string, managed string, passCredentials string, skipTLSVerify string) error {
var args []string
var out []byte