Skip to content

cmd/k8s-operator,k8s-operator: define ProxyGroupPolicy reconciler#18654

Merged
davidsbond merged 1 commit intomainfrom
davidb/k8s-proxy-group-policy-reconciler
Feb 18, 2026
Merged

cmd/k8s-operator,k8s-operator: define ProxyGroupPolicy reconciler#18654
davidsbond merged 1 commit intomainfrom
davidb/k8s-proxy-group-policy-reconciler

Conversation

@davidsbond
Copy link
Copy Markdown
Contributor

This commit implements a reconciler for the new ProxyGroupPolicy
custom resource. When created, all ProxyGroupPolicy resources
within the same namespace are merged into two ValidatingAdmissionPolicy
resources, one for egress and one for ingress.

These policies use CEL expressions to limit the usage of the
"tailscale.com/proxy-group" annotation on Service and Ingress
resources on create & update.

Included here is also a new e2e test that ensures that resources that
violate the policy return an error on creation, and that once the
policy is changed to allow them they can be created.

Closes: https://github.com/tailscale/corp/issues/36830

@davidsbond davidsbond self-assigned this Feb 9, 2026
@davidsbond davidsbond force-pushed the davidb/k8s-proxy-group-policy-reconciler branch 5 times, most recently from e923195 to 2b6f02a Compare February 13, 2026 16:05
@davidsbond davidsbond marked this pull request as ready for review February 13, 2026 16:06
@davidsbond davidsbond requested a review from a team February 13, 2026 16:06
@davidsbond davidsbond force-pushed the davidb/k8s-proxy-group-policy-reconciler branch from 2b6f02a to dc66511 Compare February 13, 2026 16:27
This commit implements a reconciler for the new `ProxyGroupPolicy`
custom resource. When created, all `ProxyGroupPolicy` resources
within the same namespace are merged into two `ValidatingAdmissionPolicy`
resources, one for egress and one for ingress.

These policies use CEL expressions to limit the usage of the
"tailscale.com/proxy-group" annotation on `Service` and `Ingress`
resources on create & update.

Included here is also a new e2e test that ensures that resources that
violate the policy return an error on creation, and that once the
policy is changed to allow them they can be created.

Closes: tailscale/corp#36830

Signed-off-by: David Bond <davidsbond93@gmail.com>
@davidsbond davidsbond force-pushed the davidb/k8s-proxy-group-policy-reconciler branch from dc66511 to 281b5d0 Compare February 17, 2026 10:05
@davidsbond davidsbond merged commit eb3d35c into main Feb 18, 2026
60 checks passed
@davidsbond davidsbond deleted the davidb/k8s-proxy-group-policy-reconciler branch February 18, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants