diff --git a/pkg/reconciler/apiserversource/apiserversource_test.go b/pkg/reconciler/apiserversource/apiserversource_test.go index aeec9356f1f..4743af0d253 100644 --- a/pkg/reconciler/apiserversource/apiserversource_test.go +++ b/pkg/reconciler/apiserversource/apiserversource_test.go @@ -1423,7 +1423,7 @@ func makeOIDCRole() *rbacv1.Role { "description": fmt.Sprintf("Role for OIDC Authentication for ApiServerSource %q", sourceName), }, Labels: map[string]string{ - auth.OIDCLabelKey: "", + auth.OIDCLabelKey: "enabled", }, OwnerReferences: []metav1.OwnerReference{ *kmeta.NewControllerRef(src), @@ -1453,7 +1453,7 @@ func makeOIDCRoleBinding() *rbacv1.RoleBinding { "description": fmt.Sprintf("Role Binding for OIDC Authentication for ApiServerSource %q", sourceName), }, Labels: map[string]string{ - auth.OIDCLabelKey: "", + auth.OIDCLabelKey: "enabled", }, OwnerReferences: []metav1.OwnerReference{ *kmeta.NewControllerRef(src), diff --git a/pkg/reconciler/apiserversource/resources/oidc_rolebinding.go b/pkg/reconciler/apiserversource/resources/oidc_rolebinding.go index ac9a8d13fd1..1c38c5ef4c1 100644 --- a/pkg/reconciler/apiserversource/resources/oidc_rolebinding.go +++ b/pkg/reconciler/apiserversource/resources/oidc_rolebinding.go @@ -54,7 +54,7 @@ func MakeOIDCRole(source *v1.ApiServerSource) (*rbacv1.Role, error) { "description": fmt.Sprintf("Role for OIDC Authentication for ApiServerSource %q", source.GetName()), }, Labels: map[string]string{ - auth.OIDCLabelKey: "", + auth.OIDCLabelKey: "enabled", }, OwnerReferences: []metav1.OwnerReference{ *kmeta.NewControllerRef(source), @@ -92,7 +92,7 @@ func MakeOIDCRoleBinding(source *v1.ApiServerSource) (*rbacv1.RoleBinding, error "description": fmt.Sprintf("Role Binding for OIDC Authentication for ApiServerSource %q", source.GetName()), }, Labels: map[string]string{ - auth.OIDCLabelKey: "", + auth.OIDCLabelKey: "enabled", }, OwnerReferences: []metav1.OwnerReference{ *kmeta.NewControllerRef(source),