Skip to content

Commit

Permalink
Merge pull request #14320 from hakman/automated-cherry-pick-of-#14318…
Browse files Browse the repository at this point in the history
…-upstream-release-1.25

Automated cherry pick of #14318: Avoid spurious changes with bastion hosts due to user
  • Loading branch information
k8s-ci-robot authored Sep 24, 2022
2 parents ee5300c + 0b3e892 commit 978ebe0
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pkg/model/bootstrapscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (b *BootstrapScriptBuilder) ResourceNodeUp(c *fi.ModelBuilderContext, ig *k

// Bastions can have AdditionalUserData, but if there isn't any skip this part
if len(ig.Spec.AdditionalUserData) == 0 {
return fi.NewStringResource(""), nil
return nil, nil
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@
}
]
}
],
"UserData": "extracted"
]
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Resources.AWSEC2LaunchTemplatebastionprivatesharedipexamplecom.Properties.LaunchTemplateData.UserData: ""
Resources.AWSEC2LaunchTemplatemasterustest1amastersprivatesharedipexamplecom.Properties.LaunchTemplateData.UserData: |
#!/bin/bash
set -o errexit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,7 @@
}
]
}
],
"UserData": "extracted"
]
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Resources.AWSEC2LaunchTemplatebastionprivateciliumexamplecom.Properties.LaunchTemplateData.UserData: ""
Resources.AWSEC2LaunchTemplatemasterustest1amastersprivateciliumexamplecom.Properties.LaunchTemplateData.UserData: |
#!/bin/bash
set -o errexit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,7 @@
}
]
}
],
"UserData": "extracted"
]
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Resources.AWSEC2LaunchTemplatebastionprivateciliumexamplecom.Properties.LaunchTemplateData.UserData: ""
Resources.AWSEC2LaunchTemplatemasterustest1amastersprivateciliumexamplecom.Properties.LaunchTemplateData.UserData: |
#!/bin/bash
set -o errexit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,7 @@
}
]
}
],
"UserData": "extracted"
]
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Resources.AWSEC2LaunchTemplatebastionprivateciliumadvancedexamplecom.Properties.LaunchTemplateData.UserData: ""
Resources.AWSEC2LaunchTemplatemasterustest1amastersprivateciliumadvancedexamplecom.Properties.LaunchTemplateData.UserData: |
#!/bin/bash
set -o errexit
Expand Down

0 comments on commit 978ebe0

Please sign in to comment.