Skip to content

Commit

Permalink
Merge pull request #3158 from sedefsavas/flatcar
Browse files Browse the repository at this point in the history
Add flatcar-stable to supported OS list for clusterawsadm
  • Loading branch information
k8s-ci-robot committed Feb 10, 2022
2 parents 8343acd + 69cdd56 commit d4e16e4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/clusterawsadm/ami/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
)

func getSupportedOsList() []string {
return []string{"centos-7", "ubuntu-18.04", "ubuntu-20.04", "amazon-2"}
return []string{"centos-7", "ubuntu-18.04", "ubuntu-20.04", "amazon-2", "flatcar-stable"}
}

func getimageRegionList() []string {
Expand Down
2 changes: 1 addition & 1 deletion cmd/clusterawsadm/cmd/ami/common/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func CopyAMICmd() *cobra.Command {
`),
Example: cmd.Examples(`
# Copy AMI from the default AWS account where AMIs are stored.
# Available os options: centos-7, ubuntu-18.04, ubuntu-20.04, amazon-2
# Available os options: centos-7, ubuntu-18.04, ubuntu-20.04, amazon-2, flatcar-stable
clusterawsadm ami copy --kubernetes-version=v1.18.12 --os=ubuntu-20.04 --region=us-west-2
# owner-id and dry-run flags are optional. region can be set via flag or env
Expand Down
2 changes: 1 addition & 1 deletion cmd/clusterawsadm/cmd/ami/common/encryptedcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func EncryptedCopyAMICmd() *cobra.Command {
`),
Example: cmd.Examples(`
# Create an encrypted AMI:
# Available os options: centos-7, ubuntu-18.04, ubuntu-20.04, amazon-2
# Available os options: centos-7, ubuntu-18.04, ubuntu-20.04, amazon-2, flatcar-stable
clusterawsadm ami encrypted-copy --kubernetes-version=v1.18.12 --os=ubuntu-20.04 --region=us-west-2
# owner-id and dry-run flags are optional. region can be set via flag or env
Expand Down
2 changes: 1 addition & 1 deletion cmd/clusterawsadm/cmd/ami/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func ListAMICmd() *cobra.Command {
`),
Example: cmd.Examples(`
# List AMIs from the default AWS account where AMIs are stored.
# Available os options: centos-7, ubuntu-18.04, ubuntu-20.04, amazon-2
# Available os options: centos-7, ubuntu-18.04, ubuntu-20.04, amazon-2, flatcar-stable
clusterawsadm ami list --kubernetes-version=v1.18.12 --os=ubuntu-20.04 --region=us-west-2
# To list all supported AMIs in all supported Kubernetes versions, regions, and linux distributions:
clusterawsadm ami list
Expand Down
1 change: 1 addition & 0 deletions docs/book/src/topics/images/built-amis.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ See [clusterawsadm ami list](../clusterawsadm/clusterawsadm_ami_list.md) for det
- Amazon Linux 2 (amazon-2)
- Ubuntu (ubuntu-20.04, ubuntu-18.04)
- Centos (centos-7)
- Flatcar (flatcar-stable)

## Supported AWS Regions
- ap-northeast-1
Expand Down

0 comments on commit d4e16e4

Please sign in to comment.