Skip to content

is there any way to templating a date of a fixed day of the week? #12152

@lzecca78

Description

@lzecca78

Hi! This is not an issue, but just a question regarding something I would like to configure in the helm template.
As per documentation, kube-janitor allows to specify a label to resource janitor/expires: 23-06-23T23:59:00Z. This label will enable kube-janitor to delete it.
I would like to configure with helm template the value of the time that is the next Friday at 23:59. I've seen the documentation of helm but even with date_modify seems not possible to make something like this: date -d 'next Friday' '+%y-%m-%dT23:59:00Z'. This is very useful for feature branch namespaces/resources that in our case, has an expiration date.
Does anyone have any suggestions for this?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions