Skip to content

Commit

Permalink
feat(genconfig): don't remove AESCBC key for older cluster
Browse files Browse the repository at this point in the history
ref: #81
  • Loading branch information
budimanjojo committed Jan 25, 2023
1 parent eb142f3 commit 0802f4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/talos/nodeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ func generateNodeConfig(node *config.Nodes, input *generate.Input) (*v1alpha1.Co
return nil, err
}
}

// https://github.com/budimanjojo/talhelper/issues/81
if input.VersionContract.SecretboxEncryptionSupported() && input.Secrets.AESCBCEncryptionSecret != "" {
c.ClusterConfig.ClusterAESCBCEncryptionSecret = input.Secrets.AESCBCEncryptionSecret
}

cfg := applyNodeOverride(node, c)

return cfg, nil
Expand Down

0 comments on commit 0802f4a

Please sign in to comment.