Fix node shell secret pulling (#3668)

- On some KE errors are thrown if trying to get a secret with an empty
  name, instead of just ignoring the entry

- Clean up the node shell settings

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-09-01 12:49:00 +03:00
1 parent 36b64f73bc
commit d132a4c7e7
3 files changed
+50 -52

No files matched your search

+3 -3
View File
@@ -706,10 +706,10 @@ export class Cluster implements ClusterModel, ClusterState {
}
get nodeShellImage(): string {
return this.preferences.nodeShellImage || initialNodeShellImage;
return this.preferences?.nodeShellImage || initialNodeShellImage;
}
get imagePullSecret(): string {
return this.preferences.imagePullSecret || "";
get imagePullSecret(): string | undefined {
return this.preferences?.imagePullSecret;
}
}