Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pkg/render/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,14 @@ func (c *apiServerComponent) tigeraUserClusterRole() *rbacv1.ClusterRole {
},
Verbs: []string{"get", "watch", "list"},
},
// A POST to AuthenticationReviews can be compared with a POST to the TokenReviews endpoint.
// This api is added to circumvent a bug in the k8s-apiserver that is present in k8s
// versions up to v1.18 (kubernetes/pull/87612) when oidc audiences are enabled.
{
APIGroups: []string{"projectcalico.org"},
Resources: []string{"authenticationreviews"},
Verbs: []string{"create"},
},
}

// If this is a managed cluster the rule to access the clusters indices in Elasticsearch need to be added to the management
Expand Down Expand Up @@ -922,6 +930,14 @@ func (c *apiServerComponent) tigeraNetworkAdminClusterRole() *rbacv1.ClusterRole
},
Verbs: []string{"create", "update", "delete", "patch", "get", "watch", "list"},
},
// A POST to AuthenticationReviews can be compared with a POST to the TokenReviews endpoint.
// This api is added to circumvent a bug in the k8s-apiserver that is present in k8s
// versions up to v1.18 (kubernetes/pull/87612) when oidc audiences are enabled.
{
APIGroups: []string{"projectcalico.org"},
Resources: []string{"authenticationreviews"},
Verbs: []string{"create"},
},
}

// If this is a managed cluster the rule to access the clusters indices in Elasticsearch need to be added to the management
Expand Down