Skip to content

Commit

Permalink
More comments
Browse files Browse the repository at this point in the history
Signed-off-by: Lubron Zhan <lubronzhan@gmail.com>
  • Loading branch information
lubronzhan committed Jan 29, 2024
1 parent c179a3c commit c2d5d1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/provisioner/model/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func (c *Contour) ContourRBACNames() RBACNames {

// this one has a different prefix to differentiate from the certgen role binding (see below).
RoleBinding: fmt.Sprintf("contour-rolebinding-%s", c.Name),
NamespaceScopedResourceRole: fmt.Sprintf("contour-resource-%s-%s", c.Namespace, c.Name),
NamespaceScopedResourceRoleBinding: fmt.Sprintf("contour-resource-%s-%s", c.Namespace, c.Name),
NamespaceScopedResourceRole: fmt.Sprintf("contour-resources-%s-%s", c.Namespace, c.Name),
NamespaceScopedResourceRoleBinding: fmt.Sprintf("contour-resources-%s-%s", c.Namespace, c.Name),
}
}

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/gatewayapi_predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ func HTTPRouteAccepted(route *gatewayapi_v1beta1.HTTPRoute) bool {
return false
}

// HTTPRouteIngnoredByContour returns true if the route has an empty .status.parents.conditions list
func HTTPRouteIngnoredByContour(route *gatewayapi_v1beta1.HTTPRoute) bool {
// HTTPRouteIgnoredByContour returns true if the route has an empty .status.parents.conditions list
func HTTPRouteIgnoredByContour(route *gatewayapi_v1beta1.HTTPRoute) bool {
if route == nil {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/provisioner/provisioner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ var _ = Describe("Gateway provisioner", func() {
} else {
// Root proxy in non-watched namespace should fail
By(fmt.Sprintf("Expect namespace %s not to be watched by contour", t.namespace))
hr, ok := f.CreateHTTPRouteAndWaitFor(route, e2e.HTTPRouteIngnoredByContour)
hr, ok := f.CreateHTTPRouteAndWaitFor(route, e2e.HTTPRouteIgnoredByContour)

By(fmt.Sprintf("Expect httproute under namespace %s is not accepted for a period of time", t.namespace))
require.Never(f.T(), func() bool {
Expand Down

0 comments on commit c2d5d1d

Please sign in to comment.