File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed
cloudformation/bootstrap/fixtures Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ limitations under the License.
17
17
package v1beta1
18
18
19
19
import (
20
- runtime "k8s.io/apimachinery/pkg/runtime"
20
+ "k8s.io/apimachinery/pkg/runtime"
21
21
"k8s.io/utils/pointer"
22
22
23
23
infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2"
@@ -27,6 +27,8 @@ import (
27
27
const (
28
28
// DefaultBootstrapUserName is the default bootstrap user name.
29
29
DefaultBootstrapUserName = "bootstrapper.cluster-api-provider-aws.sigs.k8s.io"
30
+ // DefaultBootstrapGroupName is the default bootstrap user name.
31
+ DefaultBootstrapGroupName = "bootstrapper.cluster-api-provider-aws.sigs.k8s.io"
30
32
// DefaultStackName is the default CloudFormation stack name.
31
33
DefaultStackName = "cluster-api-provider-aws-sigs-k8s-io"
32
34
// DefaultPartitionName is the default security partition for AWS ARNs.
@@ -43,8 +45,13 @@ func addDefaultingFuncs(scheme *runtime.Scheme) error {
43
45
44
46
// SetDefaults_BootstrapUser is used by defaulter-gen.
45
47
func SetDefaults_BootstrapUser (obj * BootstrapUser ) { //nolint:golint,stylecheck
46
- if obj != nil && obj .UserName == "" {
47
- obj .UserName = DefaultBootstrapUserName
48
+ if obj != nil {
49
+ if obj .UserName == "" {
50
+ obj .UserName = DefaultBootstrapUserName
51
+ }
52
+ if obj .GroupName == "" {
53
+ obj .GroupName = DefaultBootstrapGroupName
54
+ }
48
55
}
49
56
}
50
57
Original file line number Diff line number Diff line change 1
1
AWSTemplateFormatVersion : 2010-09-09
2
2
Resources :
3
3
AWSIAMGroupBootstrapper :
4
- Properties : {}
4
+ Properties :
5
+ GroupName : bootstrapper.cluster-api-provider-aws.sigs.k8s.io
5
6
Type : AWS::IAM::Group
6
7
AWSIAMInstanceProfileControlPlane :
7
8
Properties :
Original file line number Diff line number Diff line change 1
1
AWSTemplateFormatVersion : 2010-09-09
2
2
Resources :
3
3
AWSIAMGroupBootstrapper :
4
- Properties : {}
4
+ Properties :
5
+ GroupName : bootstrapper.cluster-api-provider-aws.sigs.k8s.io
5
6
Type : AWS::IAM::Group
6
7
AWSIAMInstanceProfileControlPlane :
7
8
Properties :
Original file line number Diff line number Diff line change 1
1
AWSTemplateFormatVersion : 2010-09-09
2
2
Resources :
3
3
AWSIAMGroupBootstrapper :
4
- Properties : {}
4
+ Properties :
5
+ GroupName : bootstrapper.cluster-api-provider-aws.sigs.k8s.io
5
6
Type : AWS::IAM::Group
6
7
AWSIAMInstanceProfileControlPlane :
7
8
Properties :
You can’t perform that action at this time.
0 commit comments