Skip to content

Commit 7728c25

Browse files
committed
Sort automount configmaps and secrets to ensure deterministic ordering
Signed-off-by: David Kwon <dakwon@redhat.com>
1 parent 0607887 commit 7728c25

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/provision/automount/configmap.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func getDevWorkspaceConfigmaps(namespace string, api sync.ClusterAPI) (*Resource
3636
}); err != nil {
3737
return nil, err
3838
}
39+
sortConfigmaps(configmaps.Items)
3940
var allAutoMountResouces []Resources
4041
for _, configmap := range configmaps.Items {
4142
if msg := checkAutomountVolumeForPotentialError(&configmap); msg != "" {

pkg/provision/automount/secret.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func getDevWorkspaceSecrets(namespace string, api sync.ClusterAPI) (*Resources,
3636
}); err != nil {
3737
return nil, err
3838
}
39+
sortSecrets(secrets.Items)
3940
var allAutoMountResouces []Resources
4041
for _, secret := range secrets.Items {
4142
if msg := checkAutomountVolumeForPotentialError(&secret); msg != "" {

0 commit comments

Comments
 (0)