Skip to content

Commit

Permalink
Merge pull request #154 from abhi-intelops/appconfig-store
Browse files Browse the repository at this point in the history
Appconfig store
  • Loading branch information
vramk23 authored Aug 9, 2023
2 parents 96f31f1 + fc53ae0 commit 18f7ecd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions capten/agent/pkg/agent/agent_cluster_apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ func (suite *AgentTestSuite) Test_1_SyncApp() {

req2.Data = &agentpb.SyncAppData{
Config: &agentpb.AppConfig{
ReleaseName: "release2",
Icon: []byte{0x1, 0x2, 0x3, 0x4},
ReleaseName: "release2",
PrivilegedNamespace: true,
Icon: []byte{0x1, 0x2, 0x3, 0x4},
},
Values: &agentpb.AppValues{
OverrideValues: override,
Expand Down
4 changes: 2 additions & 2 deletions capten/agent/pkg/capten-store/app_config_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ func formUpdateKvPairs(config *agentpb.SyncAppData) (string, bool) {

if config.Config.CreateNamespace {
params = append(params,
fmt.Sprintf("%s = 'true'", createNamespace))
fmt.Sprintf("%s = true", createNamespace))
}
if config.Config.PrivilegedNamespace {
params = append(params,
fmt.Sprintf("%s = 'true'", privilegedNamespace))
fmt.Sprintf("%s = true", privilegedNamespace))
}

if config.Config.LaunchURL != "" {
Expand Down

0 comments on commit 18f7ecd

Please sign in to comment.