Skip to content

Commit 8b1bbac

Browse files
author
imatmati
committed
DOC/MINOR: annotations: deprecate cookie-persistence on Ingress
Add a warning tip on the cookie-persistence annotation announcing that its use on Ingress objects is deprecated and will be removed in a future release, advising to set it at the Service or ConfigMap level instead. Regenerate annotations.md from doc.yaml accordingly.
1 parent 4f362ea commit 8b1bbac

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

documentation/annotations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,8 @@ backend-config-snippet: |
692692

693693
Available on: `configmap` `ingress` `service`
694694

695+
:information_source: :warning: Using `cookie-persistence` on Ingress objects is deprecated and will be removed in a future release. Use this annotation at the Service or ConfigMap level instead.
696+
695697
:information_source: This will insert the following cookie configuration in the corresponding backend `cookie <cookie-name> insert indirect nocache dynamic` with `<cookie-name>` the value of this annotation.
696698

697699
Possible values:

documentation/doc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,7 @@ annotations:
917917
to before.
918918
- Dynamic cookies are used by default via a [dynamic-cookie-key](https://cbonte.github.io/haproxy-dconv/2.4/configuration.html#4.2-dynamic-cookie-key) in order to support sticky sessions across multiple Ingress Controller instances/replicas.
919919
tip:
920+
- ":warning: Using `cookie-persistence` on Ingress objects is deprecated and will be removed in a future release. Use this annotation at the Service or ConfigMap level instead."
920921
- This will insert the following cookie configuration in the corresponding backend `cookie <cookie-name> insert indirect nocache dynamic` with `<cookie-name>` the value of this annotation.
921922
values:
922923
- A name for the cookie

0 commit comments

Comments
 (0)