fix(clustertool): correct sopssecret yaml filename

This commit is contained in:
Kjeld Schouten
2024-10-24 15:59:23 +02:00
parent 83f874f8e6
commit 6828356312
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ var (
ControlPlaneIPs = []string{} ControlPlaneIPs = []string{}
WorkerIPs = []string{} WorkerIPs = []string{}
ManifestPaths = []string{ ManifestPaths = []string{
filepath.Join("flux-system", "flux", "sopskey.secret.yaml"), filepath.Join("flux-system", "flux", "sopssecret.secret.yaml"),
filepath.Join("flux-system", "flux", "deploykey.secret.yaml"), filepath.Join("flux-system", "flux", "deploykey.secret.yaml"),
filepath.Join("flux-system", "flux", "clustersettings.secret.yaml"), filepath.Join("flux-system", "flux", "clustersettings.secret.yaml"),
} }
+1 -1
View File
@@ -435,7 +435,7 @@ func GetSecKey() (string, error) {
} }
func GenSopsSecret() error { func GenSopsSecret() error {
secretPath := filepath.Join(helper.ClusterPath, "kubernetes", "flux-system", "flux", "sopsscret.secret.yaml") secretPath := filepath.Join(helper.ClusterPath, "kubernetes", "flux-system", "flux", "sopssecret.secret.yaml")
ageSecKey, err := GetSecKey() ageSecKey, err := GetSecKey()
// Generate Kubernetes secret YAML content // Generate Kubernetes secret YAML content
secret := map[string]interface{}{ secret := map[string]interface{}{