Skip to content

Commit b67d81d

Browse files
Add cookie attributes to Canary CRD
Signed-off-by: Renato Vassão <[email protected]>
1 parent 25f575c commit b67d81d

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

artifacts/flagger/crd.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,32 @@ spec:
11581158
primaryCookieName:
11591159
description: CookieName is the key that will be used for the session affinity cookie.
11601160
type: string
1161+
domain:
1162+
description: Domain defines the host to which the cookie will be sent.
1163+
type: string
1164+
httpOnly:
1165+
description: HttpOnly forbids JavaScript from accessing the cookie, for example, through the Document.cookie property.
1166+
type: boolean
11611167
maxAge:
11621168
description: MaxAge indicates the number of seconds until the session affinity cookie will expire.
11631169
default: 86400
11641170
type: number
1171+
partitioned:
1172+
description: Partitioned indicates that the cookie should be stored using partitioned storage.
1173+
type: boolean
1174+
path:
1175+
description: Path indicates the path that must exist in the requested URL for the browser to send the Cookie header.
1176+
type: string
1177+
sameSite:
1178+
description: SameSite controls whether or not a cookie is sent with cross-site requests.
1179+
type: string
1180+
enum:
1181+
- Strict
1182+
- Lax
1183+
- None
1184+
secure:
1185+
description: "Secure indicates that the cookie is sent to the server only when a request is made with the https: scheme (except on localhost)"
1186+
type: boolean
11651187
status:
11661188
description: CanaryStatus defines the observed state of a canary.
11671189
type: object

charts/flagger/crds/crd.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,32 @@ spec:
11581158
primaryCookieName:
11591159
description: CookieName is the key that will be used for the session affinity cookie.
11601160
type: string
1161+
domain:
1162+
description: Domain defines the host to which the cookie will be sent.
1163+
type: string
1164+
httpOnly:
1165+
description: HttpOnly forbids JavaScript from accessing the cookie, for example, through the Document.cookie property.
1166+
type: boolean
11611167
maxAge:
11621168
description: MaxAge indicates the number of seconds until the session affinity cookie will expire.
11631169
default: 86400
11641170
type: number
1171+
partitioned:
1172+
description: Partitioned indicates that the cookie should be stored using partitioned storage.
1173+
type: boolean
1174+
path:
1175+
description: Path indicates the path that must exist in the requested URL for the browser to send the Cookie header.
1176+
type: string
1177+
sameSite:
1178+
description: SameSite controls whether or not a cookie is sent with cross-site requests.
1179+
type: string
1180+
enum:
1181+
- Strict
1182+
- Lax
1183+
- None
1184+
secure:
1185+
description: "Secure indicates that the cookie is sent to the server only when a request is made with the https: scheme (except on localhost)"
1186+
type: boolean
11651187
status:
11661188
description: CanaryStatus defines the observed state of a canary.
11671189
type: object

kustomize/base/flagger/crd.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,32 @@ spec:
11581158
primaryCookieName:
11591159
description: CookieName is the key that will be used for the session affinity cookie.
11601160
type: string
1161+
domain:
1162+
description: Domain defines the host to which the cookie will be sent.
1163+
type: string
1164+
httpOnly:
1165+
description: HttpOnly forbids JavaScript from accessing the cookie, for example, through the Document.cookie property.
1166+
type: boolean
11611167
maxAge:
11621168
description: MaxAge indicates the number of seconds until the session affinity cookie will expire.
11631169
default: 86400
11641170
type: number
1171+
partitioned:
1172+
description: Partitioned indicates that the cookie should be stored using partitioned storage.
1173+
type: boolean
1174+
path:
1175+
description: Path indicates the path that must exist in the requested URL for the browser to send the Cookie header.
1176+
type: string
1177+
sameSite:
1178+
description: SameSite controls whether or not a cookie is sent with cross-site requests.
1179+
type: string
1180+
enum:
1181+
- Strict
1182+
- Lax
1183+
- None
1184+
secure:
1185+
description: "Secure indicates that the cookie is sent to the server only when a request is made with the https: scheme (except on localhost)"
1186+
type: boolean
11651187
status:
11661188
description: CanaryStatus defines the observed state of a canary.
11671189
type: object

0 commit comments

Comments
 (0)