Skip to content

Commit

Permalink
Default envconfig (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzsak committed Sep 13, 2023
1 parent 69a820f commit b4433bf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions web/dashboard/src/views/envConfig/envConfig.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,9 @@ class EnvConfig extends Component {
scmUrl: reduxState.settings.scmUrl
});

this.setLocalEnvConfigState(reduxState.envConfigs, repoName, env, config, reduxState.defaultChart);
this.ensureRepoAssociationExists(repoName, reduxState.repoMetas);

this.ensureGitCloneUrlExists(reduxState.defaultChart, reduxState.settings.scmUrl);

if (!this.state.values) {
this.setLocalEnvConfigState(reduxState.envConfigs, repoName, env, config, reduxState.defaultChart);
}
});

this.setValues = this.setValues.bind(this);
Expand All @@ -88,9 +84,9 @@ class EnvConfig extends Component {
this.setState({
configFile: (action === "new" ? {} : configFileContent),
chartFromConfigFile: configFileContent.chart,
appName: configFileContent.app,
appName: configFileContent.app ?? config,
namespace: configFileContent.namespace ?? "default",
defaultAppName: configFileContent.app,
defaultAppName: configFileContent.app ?? config,
defaultNamespace: configFileContent.namespace ?? "default",

values: Object.assign({}, envConfig),
Expand Down Expand Up @@ -932,7 +928,7 @@ function configFileContentFromEnvConfigs(envConfigs, repoName, env, config, defa
tag: "{{ .SHA }}",
},
resources: {
ignore: true,
ignoreLimits: true,
},
},
}
Expand Down

0 comments on commit b4433bf

Please sign in to comment.