Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
edcdavid committed Nov 3, 2023
1 parent 834ed7d commit 21f9d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cnf-certification-test/accesscontrol/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ func testPodRoleBindings(env *provider.TestEnvironment) {
if subject.Kind == rbacv1.ServiceAccountKind &&
subject.Namespace == put.Namespace &&
subject.Name == put.Spec.ServiceAccountName {
tnf.Logf(logrus.WarnLevel, "Pod: %s/%s has the following role bindings that do not live in the same namespace: %s", put.Namespace, put.Name, env.RoleBindings[rbIndex].Name)
tnf.Logf(logrus.WarnLevel, "Pod: %s has the following role bindings that do not live in one of the CNF namespaces: %s", put, env.RoleBindings[rbIndex].Name)

// Add the pod to the non-compliant list
nonCompliantObjects = append(nonCompliantObjects,
Expand All @@ -539,7 +539,7 @@ func testPodRoleBindings(env *provider.TestEnvironment) {
// Add pod to the compliant object list
if podIsCompliant {
compliantObjects = append(compliantObjects,
testhelper.NewPodReportObject(put.Namespace, put.Name, "All the role bindings used by this pod (applied by the service accounts) live in the same namespace", true))
testhelper.NewPodReportObject(put.Namespace, put.Name, "All the role bindings used by this pod (applied by the service accounts) live in one of the CNF namespaces", true))
}
}
testhelper.AddTestResultReason(compliantObjects, nonCompliantObjects, tnf.ClaimFilePrintf, ginkgo.Fail)
Expand Down

0 comments on commit 21f9d38

Please sign in to comment.