feat(clustertool/spegel): improve spegel behavior for clustertool and make kubedashboard optional on clustertool

This commit is contained in:
Kjeld Schouten
2024-10-22 13:03:31 +02:00
parent 53fa3e02ad
commit 8582c6434a
14 changed files with 202 additions and 149 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ var fluxbootstrap = &cobra.Command{
if err := sops.DecryptFiles(); err != nil {
log.Info().Msgf("Error decrypting files: %v\n", err)
}
initfiles.LoadTalEnv()
initfiles.LoadTalEnv(false)
_, err := talhelperCfg.LoadAndValidateFromFile(helper.TalConfigFile, []string{helper.ClusterEnvFile}, false)
if err != nil {
log.Fatal().Err(err).Msg("failed to parse talconfig or talenv file: %s")
+1 -1
View File
@@ -11,7 +11,7 @@ var testcmd = &cobra.Command{
Use: "test",
Short: "test run",
Run: func(cmd *cobra.Command, args []string) {
initfiles.LoadTalEnv()
initfiles.LoadTalEnv(false)
// err := fluxhandler.ProcessJSONFiles("./testdata/truenas_exports")
// if err != nil {
// log.Info().Msg("Error:", err)
+1 -1
View File
@@ -12,7 +12,7 @@ var hrinstall = &cobra.Command{
Use: "install",
Short: "install a helm-release file without flux, helm-release file needs to be called helm-release.yaml",
Run: func(cmd *cobra.Command, args []string) {
initfiles.LoadTalEnv()
initfiles.LoadTalEnv(false)
var dir string
+1 -1
View File
@@ -12,7 +12,7 @@ var hrupgrade = &cobra.Command{
Use: "upgrade",
Short: "run helm-upgrade using a helm-release file without flux",
Run: func(cmd *cobra.Command, args []string) {
initfiles.LoadTalEnv()
initfiles.LoadTalEnv(false)
var dir string