@@ -108,7 +108,7 @@ func (session *sessionWrapper) setUserArgs(args string) {
108
108
}
109
109
110
110
func (session * sessionWrapper ) setTLSParameters (appBinding * appcatalog.AppBinding , scratchDir string ) error {
111
- session .sh .SetEnv ("NODE_TLS_REJECT_UNAUTHORIZED" , "0" ) //xref: https://github.com/taskrabbit/elasticsearch-dump#bypassing-self-sign-certificate-errors
111
+ session .sh .SetEnv ("NODE_TLS_REJECT_UNAUTHORIZED" , "0" ) // xref: https://github.com/taskrabbit/elasticsearch-dump#bypassing-self-sign-certificate-errors
112
112
if appBinding .Spec .ClientConfig .CABundle != nil {
113
113
if err := ioutil .WriteFile (filepath .Join (scratchDir , ESCACertFile ), appBinding .Spec .ClientConfig .CABundle , os .ModePerm ); err != nil {
114
114
return err
@@ -141,6 +141,7 @@ func (opt esOptions) waitForDBReady(appBinding *appcatalog.AppBinding) error {
141
141
klog .Infoln ("Performing multielasticdump on" , hostname )
142
142
return nil
143
143
}
144
+
144
145
func clearDir (dir string ) error {
145
146
if err := os .RemoveAll (dir ); err != nil {
146
147
return fmt .Errorf ("unable to clean datadir: %v. Reason: %v" , dir , err )
@@ -160,5 +161,5 @@ func writeAuthFile(filename string, cred *core.Secret) error {
160
161
must (meta_util .GetBytesForKeys (cred .Data , core .BasicAuthUsernameKey , ESUser )),
161
162
must (meta_util .GetBytesForKeys (cred .Data , core .BasicAuthPasswordKey , ESPassword )),
162
163
)
163
- return ioutil .WriteFile (filename , []byte (authKeys ), 0400 ) // only redable to owner
164
+ return ioutil .WriteFile (filename , []byte (authKeys ), 0o400 ) // only redable to owner
164
165
}
0 commit comments