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

Commit d03edcd

Browse files
committed
updating constants
Signed-off-by: Chuck Ha <[email protected]>
1 parent f8eb0a9 commit d03edcd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

api/v1alpha2/kubeadmbootstrapconfig_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,16 @@ func init() {
108108
}
109109

110110
// Encoding specifies the cloud-init file encoding.
111-
// +kubebuilder:validation:Enum=b64;gzip;gz+b64
111+
// +kubebuilder:validation:Enum=base64;gzip;gzip+base64
112112
type Encoding string
113113

114114
const (
115115
// Base64 implies the contents of the file are encoded as base64.
116-
Base64 Encoding = "b64"
116+
Base64 Encoding = "base64"
117117
// Gzip implies the contents of the file are encoded with gzip.
118118
Gzip Encoding = "gzip"
119119
// GzipBase64 implies the contents of the file are first base64 encoded and then gzip encoded.
120-
GzipBase64 Encoding = "gz+b64"
120+
GzipBase64 Encoding = "gzip+base64"
121121
)
122122

123123
// File defines the input for generating write_files in cloud-init.

cloudinit/cloudinit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestNewInitControlPlaneAdditionalFileEncodings(t *testing.T) {
7373
}
7474
expectedFiles := []string{
7575
`- path: /tmp/my-path
76-
encoding: "b64"
76+
encoding: "base64"
7777
content: |
7878
aGk=`,
7979
`- path: /tmp/my-other-path

config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ spec:
362362
encoding:
363363
description: Encoding specifies the encoding of the file contents.
364364
enum:
365-
- b64
365+
- base64
366366
- gzip
367-
- gz+b64
367+
- gzip+base64
368368
type: string
369369
owner:
370370
description: Owner specifies the ownership of the file, e.g. "root:root".

config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigtemplates.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ spec:
384384
description: Encoding specifies the encoding of the file
385385
contents.
386386
enum:
387-
- b64
387+
- base64
388388
- gzip
389-
- gz+b64
389+
- gzip+base64
390390
type: string
391391
owner:
392392
description: Owner specifies the ownership of the file,

0 commit comments

Comments
 (0)