Skip to content

Commit 94c6dc6

Browse files
committed
Update ttl for bearer
1 parent 37953d2 commit 94c6dc6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pkg/controller/bearer_from_chunk_controller.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ func (c *BearerFromChunkController) handler(ctx context.Context, name string) {
168168
return
169169
}
170170

171-
if bti.ExpiresIn > 0 && bti.IssuedAt.IsZero() {
171+
if bti.ExpiresIn == 0 {
172+
bti.ExpiresIn = 600
173+
}
174+
175+
if bti.IssuedAt.IsZero() {
172176
bti.IssuedAt = chunk.CreationTimestamp
173177
}
174178

pkg/controller/chunk_to_bearer_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (c *ChunkToBearerController) handler(ctx context.Context, name string) {
204204
ObjectMeta: metav1.ObjectMeta{
205205
Name: chunk.Spec.BearerName,
206206
Annotations: map[string]string{
207-
v1alpha1.ReleaseTTLAnnotation: "24h",
207+
v1alpha1.ReleaseTTLAnnotation: "1h",
208208
},
209209
},
210210
Spec: v1alpha1.BearerSpec{

0 commit comments

Comments
 (0)