File tree 2 files changed +22
-13
lines changed
2 files changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -681,7 +681,8 @@ export const Utilities = {
681
681
const normalizedState = this . clusterState ( cluster . state ) ;
682
682
if (
683
683
normalizedState === "Upgrading" ||
684
- normalizedState === "Upgrading addons"
684
+ normalizedState === "Upgrading addons" ||
685
+ normalizedState === "Creating addons"
685
686
) {
686
687
return true ;
687
688
}
Original file line number Diff line number Diff line change @@ -85,20 +85,28 @@ describe("Utilities", () => {
85
85
} ) ;
86
86
87
87
it ( "should return true if the user has tried to deploy the current version and a cluster upgrade is in progress" , ( ) => {
88
- const apps = [
89
- {
90
- downstream : {
91
- currentVersion : {
92
- status : "deployed" ,
93
- } ,
94
- cluster : {
95
- requiresUpgrade : true ,
96
- state : "Installing" ,
88
+ for ( const installationState of [
89
+ "CopyingArtifacts" ,
90
+ "Enqueued" ,
91
+ "Installing" ,
92
+ "AddonsInstalling" ,
93
+ "PendingChartCreation" ,
94
+ ] ) {
95
+ const apps = [
96
+ {
97
+ downstream : {
98
+ currentVersion : {
99
+ status : "deployed" ,
100
+ } ,
101
+ cluster : {
102
+ requiresUpgrade : true ,
103
+ state : installationState ,
104
+ } ,
97
105
} ,
98
106
} ,
99
- } ,
100
- ] ;
101
- expect ( Utilities . shouldShowClusterUpgradeModal ( apps ) ) . toBe ( true ) ;
107
+ ] ;
108
+ expect ( Utilities . shouldShowClusterUpgradeModal ( apps ) ) . toBe ( true ) ;
109
+ }
102
110
} ) ;
103
111
104
112
it ( "should return false if there are is one installation that does not have a state" , ( ) => {
You can’t perform that action at this time.
0 commit comments