Closed char-iot closed 2 months ago
2.8.5
helm chart
RKE1
no proxy, self-signed
v1.29.6+rke2r1
Downstream
Imported
argument renew = false doesn't work
# Create a rancher2 Token resource "rancher2_user" "foo" { name = "foo" username = "foo" password = "changeme" enabled = true } resource "rancher2_global_role_binding" "foo-login" { name = "foo-login-binding" global_role_id = "user-base" user_id = rancher2_user.foo.id } resource "rancher2_custom_user_token" "foo" { username = rancher2_user.foo.username password = rancher2_user.foo.password renew = false description = "foo token" ttl = 0 depends_on = [ rancher2_global_role_binding.foo-login ] }
when trys to rerun or any kind of change to repo, token would be renewed.
when trys to rerun or any kind of change to repo, token shouldn't be renewed.
Is there a way to say renew only when older than 60days or expired?
problem is with ttl being forced replaced with 7776000 every run.
Rancher Server Setup
2.8.5
helm chart
RKE1
no proxy, self-signed
Information about the Cluster
v1.29.6+rke2r1
Downstream
Imported
argument renew = false doesn't work
To Reproduce
Actual Result
when trys to rerun or any kind of change to repo, token would be renewed.
Expected Result
when trys to rerun or any kind of change to repo, token shouldn't be renewed.
Screenshots
Additional Question
Is there a way to say renew only when older than 60days or expired?