Skip to content

chore: add k8s level warning for malformed ports on annotation - #15785

Merged
alpeb merged 2 commits into
mainfrom
anthoturc/k8s-warnings-for-malformed-ports
Nov 23, 2026
Merged

alpeb merged 2 commits into
mainfrom
anthoturc/k8s-warnings-for-malformed-ports

Conversation

@anthoturc

@anthoturc anthoturc commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

prior to this commit, operators could mistakenly provide invalid ports and port ranges without the system making them aware. while the annotation isn't meant to be used by operators because policies exist to enforce mesh TLS, a warning is useful in case people do rely on it and provide invalid port values

@anthoturc
anthoturc requested a review from a team as a code owner November 13, 2026 18:34
@anthoturc
anthoturc marked this pull request as draft November 13, 2026 18:34
@anthoturc
anthoturc marked this pull request as ready for review November 13, 2026 19:05
@anthoturc
anthoturc requested a review from alpeb November 13, 2026 19:05
Comment thread pkg/inject/inject.go Resolved
Comment thread pkg/inject/inject.go Resolved
@alpeb

alpeb commented Nov 16, 2026

Copy link
Copy Markdown
Member
  Type     Reason             Age                 From                    Message
  ----     ------             ----                ----                    -------
  Normal   ScalingReplicaSet  7m50s               deployment-controller   Scaled up replica set emoji-bb694868d from 0 to 1
  Normal   Injected           8s (x2 over 7m50s)  linkerd-proxy-injector  Linkerd sidecar proxy injected
  Normal   ScalingReplicaSet  8s                  deployment-controller   Scaled up replica set emoji-755b7cb74c from 0 to 1
  Warning  InvalidAnnotation  8s                  linkerd-proxy-injector  invalid port(s) foo,bar in annotation "config.linkerd.io/proxy-require-identity-inbound-ports"
  Normal   ScalingReplicaSet  5s                  deployment-controller   Scaled down replica set emoji-bb694868d from 1 to 0

Looks good, just a couple of comments above.

@anthoturc
anthoturc force-pushed the anthoturc/k8s-warnings-for-malformed-ports branch from 8726d20 to 2b44f9c Compare November 19, 2026 18:49
@alpeb
alpeb merged commit c8c17e5 into main Nov 23, 2026
97 of 102 checks passed
@alpeb
alpeb deleted the anthoturc/k8s-warnings-for-malformed-ports branch November 23, 2026 16:06
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