Skip to content

Commit

Permalink
test: karma assertions (#2196)
Browse files Browse the repository at this point in the history
* chore: set logger to get rid of warning

* test: assertions about karma deployment

* test: karma upgrade

* test: fixex dashboard assert

* test: fixing the karma object init

* test: use func for karma dependencies

* chore: regroup import in apply.go
  • Loading branch information
cwyl02 committed May 8, 2024
1 parent bf0f830 commit a051e58
Show file tree
Hide file tree
Showing 6 changed files with 364 additions and 158 deletions.
1 change: 1 addition & 0 deletions apptests/appscenarios/contants.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ const (
// priority class names
dkpHighPriority = "dkp-high-priority"
systemClusterCriticalPriority = "system-cluster-critical"
dkpCriticalPriority = "dkp-critical-priority"
)
6 changes: 4 additions & 2 deletions apptests/appscenarios/karma.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ func (k karma) install(ctx context.Context, env *environment.Env, appPath string
// apply defaults config maps first
defaultKustomizations := filepath.Join(appPath, "/defaults")
err := env.ApplyKustomizations(ctx, defaultKustomizations, map[string]string{
"releaseNamespace": kommanderNamespace,
"releaseNamespace": kommanderNamespace,
"workspaceNamespace": kommanderNamespace,
})
if err != nil {
return err
}
// apply the rest of kustomizations
err = env.ApplyKustomizations(ctx, appPath, map[string]string{
"releaseNamespace": kommanderNamespace,
"releaseNamespace": kommanderNamespace,
"workspaceNamespace": kommanderNamespace,
})
if err != nil {
return err
Expand Down
Loading

0 comments on commit a051e58

Please sign in to comment.