Skip to content

Commit

Permalink
add fresh init container to cleanup tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin authored Jul 29, 2023
1 parent a48ed32 commit 25065a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/fullnode/pod_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ func initContainers(crd *cosmosv1.CosmosFullNode, moniker string) []corev1.Conta

initCmd := fmt.Sprintf("%s init %s --chain-id %s", binary, moniker, crd.Spec.ChainSpec.ChainID)
required := []corev1.Container{
{
Name: "fresh-init",
Image: infraToolImage,
Command: []string{"sh"},
Args: []string{"-c",`rm -rf "$HOME/.tmp"`},

Check failure on line 284 in internal/fullnode/pod_builder.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
Env: envVars,
ImagePullPolicy: tpl.ImagePullPolicy,
WorkingDir: workDir,
},
{
Name: "chain-init",
Image: tpl.Image,
Expand Down

0 comments on commit 25065a2

Please sign in to comment.