You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which component:
Not sure, controller, apiVersion: bitnami.com/v1alpha1, 2.14.2 version of helmchart
Describe the bug
lastTransitionTime/lastUpdateTime under status->conditions not updated when updating a SealedSecret
To Reproduce
Steps to reproduce the behavior:
Apply a sealed secret by running "oc apply -f my-sealed-secret.yaml", output "sealedsecret.bitnami.com/my-secret created"
Modify the encryptedData part of my-sealed-secret.yaml.
Apply the modified sealed secret by running "oc apply -f my-sealed-secret.yaml", output "sealedsecret.bitnami.com/my-secret configured"
Check the SealedSecret object's "status" property:
status:
conditions:
lastTransitionTime: "the time when the sealed secret is created first time"
lastUpdateTime: "the time when the sealed secret is created first time"
status: 'True'
type: Synced
observedGeneration: 2
Expected behavior
The lastTransitionTime/lastUpdateTime should be the time the sealed secret is updated? The observedGeneration property seems to be correctly updated.
Version of Kubernetes:
v1.26.12+9ed7eae
OpenShift 4.13
**Description of the change**
This PR modify the way that we are setting up the LastUpdateTime. We are
going to modify the LastUpdateTime always that we are updating the
Sealed Secrets and the LastTransitionTime only when the status has
changed.
Integration tests included.
**Benefits**
LastUpdateTime is working properly
**Applicable issues**
<!-- Enter any applicable Issues here (You can reference an issue using
#) -->
- fixes#1470
Signed-off-by: Alvaro Neira Ayuso <alvaro.neira@broadcom.com>
Which component:
Not sure, controller, apiVersion: bitnami.com/v1alpha1, 2.14.2 version of helmchart
Describe the bug
lastTransitionTime/lastUpdateTime under status->conditions not updated when updating a SealedSecret
To Reproduce
Steps to reproduce the behavior:
status:
conditions:
lastUpdateTime: "the time when the sealed secret is created first time"
status: 'True'
type: Synced
observedGeneration: 2
Expected behavior
The lastTransitionTime/lastUpdateTime should be the time the sealed secret is updated? The observedGeneration property seems to be correctly updated.
Version of Kubernetes:
v1.26.12+9ed7eae
OpenShift 4.13
kubectl version
:Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.1", GitCommit:"8f94681cd294aa8cfd3407b8191f6c70214973a4", GitTreeState:"clean", BuildDate:"2023-01-18T15:58:16Z", GoVersion:"go1.19.5", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.12+9ed7eae", GitCommit:"8172db91f90e631b8219bb990a1fc5d992b7c4ea", GitTreeState:"clean", BuildDate:"2024-01-04T15:45:03Z", GoVersion:"go1.19.13 X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
Additional context
The text was updated successfully, but these errors were encountered: