Commit f778e31
Wait up to 5 seconds for ImagePullSecrets to be added to SA
In some clusters, adding ImagePullSecrets to a ServiceAccount can take a
second or two. If the DevWorkspace Operator creates the workspace
Deployment before this occurs, then once the pull secret is added the
Deployment needs to roll out a new version, resulting in a delay in
workspace start.
To avoid this, if the ServiceAccount does not have any image pull
secrets, we wait up to 5 seconds from the creation timestamp of the
ServiceAccount before continuing.
Signed-off-by: Angel Misevski <amisevsk@redhat.com>1 parent 9b9d8fd commit f778e31
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
73 | 87 | | |
74 | 88 | | |
75 | 89 | | |
| |||
0 commit comments