Skip to content

Commit

Permalink
Merge pull request #90 from rushtehrani/fix/namespace
Browse files Browse the repository at this point in the history
fix: Namespace reserved word validation
  • Loading branch information
Vafilor authored Dec 30, 2020
2 parents f1a6a55 + f3922f8 commit 611c3bd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ func Test_generateApplicationNodePoolOptions(t *testing.T) {

assert.Nil(t, err)
assert.Equal(t, nodePoolOptionsExpected, nodePoolOptionsActual)
}
}
1 change: 1 addition & 0 deletions manifest/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func Validate(manifest *util.DynamicYaml) error {
"knative-serving": true,
"kube-public": true,
"kube-system": true,
"default": true,
}

defaultNamespace := manifest.GetValue("application.defaultNamespace")
Expand Down
1 change: 0 additions & 1 deletion util/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func DeploymentStatus(yamlFile *DynamicYaml) (ready bool, err error) {
namespacesToCheck["application-system"] = true
namespacesToCheck["onepanel"] = true
namespacesToCheck["istio-system"] = true
namespacesToCheck["default"] = true

if yamlFile.HasKey("certManager") {
namespacesToCheck["cert-manager"] = true
Expand Down

0 comments on commit 611c3bd

Please sign in to comment.