Skip to content

Commit

Permalink
use different perm (flyteorg#517)
Browse files Browse the repository at this point in the history
Signed-off-by: Yee Hing Tong <[email protected]>

Signed-off-by: Yee Hing Tong <[email protected]>
  • Loading branch information
wild-endeavor authored Jan 11, 2023
1 parent 8cbb05a commit ce57dbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/webhook/init_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const (
ServerCertPrivateKey = "tls.key"
podDefaultNamespace = "flyte"
permission = 0644
folderPerm = 0755
)

func InitCerts(ctx context.Context, propellerCfg *config.Config, cfg *webhookConfig.Config) error {
Expand Down Expand Up @@ -77,7 +78,7 @@ func createWebhookSecret(ctx context.Context, namespace string, cfg *webhookConf

if cfg.LocalCert {
if _, err := os.Stat(cfg.CertDir); os.IsNotExist(err) {
if err := os.Mkdir(cfg.CertDir, permission); err != nil {
if err := os.Mkdir(cfg.CertDir, folderPerm); err != nil {
return err
}
}
Expand Down

0 comments on commit ce57dbf

Please sign in to comment.