Skip to content

Commit

Permalink
Add null check for image type
Browse files Browse the repository at this point in the history
  • Loading branch information
harjain99 committed Oct 7, 2024
1 parent e85edb9 commit 8ca79f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/gyro/google/gke/GkeNodePool.java
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,10 @@ protected void doUpdate(GyroUI ui, State state, Resource current, Set<String> ch
builder.setTaints(ntBuilder.build());
}

builder.setImageType(getConfig().getImageType());
if (getConfig().getImageType() != null) {
builder.setImageType(getConfig().getImageType());
}

updateCluster(client, builder);
builder.clear();
}
Expand Down

0 comments on commit 8ca79f7

Please sign in to comment.