Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Bring back AdditionalUserDataFiles #89

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/v1alpha2/kubeadmbootstrapconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ type KubeadmConfigSpec struct {
// JoinConfiguration is the kubeadm configuration for the join command
// +optional
JoinConfiguration *kubeadmv1beta1.JoinConfiguration `json:"joinConfiguration,omitempty"`
// AdditionalUserDataFiles specifies extra files to be passed to user_data upon creation.
// +optional
AdditionalUserDataFiles []Files `json:"additionalUserDataFiles,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be wired up anywhere in the cloudinit code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but I'm going to file another issue for that.

}

// KubeadmConfigStatus defines the observed state of KubeadmConfig
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha2/zz_generated.deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ func (in *KubeadmConfigSpec) DeepCopyInto(out *KubeadmConfigSpec) {
*out = new(v1beta1.JoinConfiguration)
(*in).DeepCopyInto(*out)
}
if in.AdditionalUserDataFiles != nil {
in, out := &in.AdditionalUserDataFiles, &out.AdditionalUserDataFiles
*out = make([]Files, len(*in))
copy(*out, *in)
}
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmConfigSpec.
Expand Down