Skip to content

Commit

Permalink
Merge pull request #5869 from kinvolk/invidian/cloud-init-default-web…
Browse files Browse the repository at this point in the history
…hook

✨Set default KubeadmConfig format to cloud-config✨
  • Loading branch information
k8s-ci-robot authored Jan 3, 2022
2 parents aca9f2f + 396bf69 commit a1b5189
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions bootstrap/kubeadm/api/v1beta1/kubeadmconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ type KubeadmConfigSpec struct {

// Format specifies the output format of the bootstrap data
// +optional
// +kubebuilder:default=cloud-config
Format Format `json:"format,omitempty"`

// Verbosity is the number for the kubeadm log level verbosity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2464,6 +2464,7 @@ spec:
type: object
type: array
format:
default: cloud-config
description: Format specifies the output format of the bootstrap data
enum:
- cloud-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2478,6 +2478,7 @@ spec:
type: object
type: array
format:
default: cloud-config
description: Format specifies the output format of the bootstrap
data
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestKubeadmControlPlaneDefault(t *testing.T) {
Name: "foo",
Namespace: "foo",
}
t.Run("for KubeadmControlPLane", utildefaulting.DefaultValidateTest(updateDefaultingValidationKCP))
t.Run("for KubeadmControlPlane", utildefaulting.DefaultValidateTest(updateDefaultingValidationKCP))
kcp.Default()

g.Expect(kcp.Spec.MachineTemplate.InfrastructureRef.Namespace).To(Equal(kcp.Namespace))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2923,6 +2923,7 @@ spec:
type: object
type: array
format:
default: cloud-config
description: Format specifies the output format of the bootstrap
data
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1707,6 +1707,7 @@ spec:
type: object
type: array
format:
default: cloud-config
description: Format specifies the output format of the
bootstrap data
enum:
Expand Down

0 comments on commit a1b5189

Please sign in to comment.