Merge pull request #14318 from hakman/bastion_userdata_changes

Avoid spurious changes with bastion hosts due to user data
This commit is contained in:
Kubernetes Prow Robot 2022-09-23 10:16:26 -07:00 committed by GitHub
commit ad55e941e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 5 additions and 13 deletions

View File

@ -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
}
}

View File

@ -366,8 +366,7 @@
}
]
}
],
"UserData": "extracted"
]
}
}
},

View File

@ -1,4 +1,3 @@
Resources.AWSEC2LaunchTemplatebastionprivatesharedipexamplecom.Properties.LaunchTemplateData.UserData: ""
Resources.AWSEC2LaunchTemplatemasterustest1amastersprivatesharedipexamplecom.Properties.LaunchTemplateData.UserData: |
#!/bin/bash
set -o errexit

View File

@ -428,8 +428,7 @@
}
]
}
],
"UserData": "extracted"
]
}
}
},

View File

@ -1,4 +1,3 @@
Resources.AWSEC2LaunchTemplatebastionprivateciliumexamplecom.Properties.LaunchTemplateData.UserData: ""
Resources.AWSEC2LaunchTemplatemasterustest1amastersprivateciliumexamplecom.Properties.LaunchTemplateData.UserData: |
#!/bin/bash
set -o errexit

View File

@ -400,8 +400,7 @@
}
]
}
],
"UserData": "extracted"
]
}
}
},

View File

@ -1,4 +1,3 @@
Resources.AWSEC2LaunchTemplatebastionprivateciliumexamplecom.Properties.LaunchTemplateData.UserData: ""
Resources.AWSEC2LaunchTemplatemasterustest1amastersprivateciliumexamplecom.Properties.LaunchTemplateData.UserData: |
#!/bin/bash
set -o errexit

View File

@ -428,8 +428,7 @@
}
]
}
],
"UserData": "extracted"
]
}
}
},

View File

@ -1,4 +1,3 @@
Resources.AWSEC2LaunchTemplatebastionprivateciliumadvancedexamplecom.Properties.LaunchTemplateData.UserData: ""
Resources.AWSEC2LaunchTemplatemasterustest1amastersprivateciliumadvancedexamplecom.Properties.LaunchTemplateData.UserData: |
#!/bin/bash
set -o errexit