Skip to content

Commit 45e7c40

Browse files
committed
fix naming
Signed-off-by: Sinelnikov Michail <mikhail.sinelnikov@flant.com>
1 parent 2b8b3bf commit 45e7c40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/linters/rbac/rules/placement.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,16 @@ func objectRBACPlacementServiceAccount(m *module.Module, object storage.StoreObj
144144

145145
if isDeckhouseSystemNamespace(namespace) {
146146
if objectName != expectedServiceAccountName {
147-
errorList.Errorf("Name of ServiceAccount in %q in namespace %q should be equal to %q. If the name is correct, change the namespace to local", shortPath, namespace, expectedServiceAccountName)
147+
errorList.Errorf("Name of ServiceAccount in %q in namespace %q should be equal to %q. If the name is correct, change the namespace to %q", shortPath, namespace, expectedServiceAccountName, m.GetNamespace())
148148
return
149149
}
150150
} else {
151151
if objectName != serviceAccountName {
152-
errorList.Errorf("Name of ServiceAccount in %q should be equal to %q. If the name is correct, change the namespace to system", shortPath, serviceAccountName)
152+
errorList.Errorf("Name of ServiceAccount in %q should be equal to %q. If the name is correct, change the namespace to system like \"d8-system\" or \"d8-monitoring\"", shortPath, serviceAccountName)
153153
return
154154
}
155155
if namespace != m.GetNamespace() {
156-
errorList.Errorf("ServiceAccount in %q should be deployed in namespace %q or change namespace to system", shortPath, m.GetNamespace())
156+
errorList.Errorf("ServiceAccount in %q should be deployed in namespace %q or change namespace to system like \"d8-system\" or \"d8-monitoring\"", shortPath, m.GetNamespace())
157157
return
158158
}
159159
}

0 commit comments

Comments
 (0)