Skip to content

Commit

Permalink
replace ClusterImage to sealer image
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevent-fei committed Mar 14, 2023
1 parent 265f599 commit 453259b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions cmd/sealer/cmd/image/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ import (

var buildFlags = options.BuildOptions{}

var longNewBuildCmdDescription = `build command is used to generate a ClusterImage from specified Kubefile.
var longNewBuildCmdDescription = `build command is used to generate a sealer image from specified Kubefile.
It organizes the specified Kubefile and input building context, and builds
a brand new ClusterImage.`
a brand new sealer image.`

var exampleNewBuildCmd = `the current path is the context path, default build type is lite and use build cache
build:
Expand All @@ -72,7 +72,7 @@ build manually ignore image:
func NewBuildCmd() *cobra.Command {
buildCmd := &cobra.Command{
Use: "build [flags] PATH",
Short: "build a ClusterImage from a Kubefile",
Short: "build a sealer image from a Kubefile",
Long: longNewBuildCmdDescription,
Args: cobra.MaximumNArgs(1),
Example: exampleNewBuildCmd,
Expand Down Expand Up @@ -105,7 +105,7 @@ func NewBuildCmd() *cobra.Command {
},
}
buildCmd.Flags().StringVarP(&buildFlags.Kubefile, "file", "f", "Kubefile", "Kubefile filepath")
buildCmd.Flags().StringVarP(&buildFlags.Tag, "tag", "t", "", "specify a name for ClusterImage")
buildCmd.Flags().StringVarP(&buildFlags.Tag, "tag", "t", "", "specify a name for sealer image")
//todo we can support imageList Flag to download extra container image rather than copy it to rootfs
buildCmd.Flags().StringVar(&buildFlags.ImageList, "image-list", "filepath", "`pathname` of imageList filepath, if set, sealer will read its content and download extra container")
buildCmd.Flags().StringVar(&buildFlags.ImageListWithAuth, "image-list-with-auth", "", "`pathname` of imageListWithAuth.yaml filepath, if set, sealer will read its content and download extra container images to rootfs(not usually used)")
Expand Down
2 changes: 1 addition & 1 deletion cmd/sealer/cmd/image/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var exampleForListCmd = `
func NewListCmd() *cobra.Command {
listCmd := &cobra.Command{
Use: "images",
Short: "list all ClusterImages on the local node",
Short: "list all sealer images on the local node",
// TODO: add long description.
Long: longNewListCmdDescription,
Args: cobra.NoArgs,
Expand Down
4 changes: 2 additions & 2 deletions cmd/sealer/cmd/image/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

var loadOpts *options.LoadOptions

var longNewLoadCmdDescription = `Load a ClusterImage from a tar archive`
var longNewLoadCmdDescription = `Load a sealer image from a tar archive`

var exampleForLoadCmd = `
sealer load -i kubernetes.tar
Expand All @@ -36,7 +36,7 @@ var exampleForLoadCmd = `
func NewLoadCmd() *cobra.Command {
loadCmd := &cobra.Command{
Use: "load",
Short: "load a ClusterImage from a tar file",
Short: "load a sealer image from a tar file",
Long: longNewLoadCmdDescription,
Example: exampleForLoadCmd,
Args: cobra.NoArgs,
Expand Down
2 changes: 1 addition & 1 deletion cmd/sealer/cmd/image/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var exampleForPullCmd = `
func NewPullCmd() *cobra.Command {
pullCmd := &cobra.Command{
Use: "pull",
Short: "pull ClusterImage from a registry to local",
Short: "pull sealer image from a registry to local",
Long: longNewPullCmdDescription,
Example: exampleForPullCmd,
Args: cobra.ExactArgs(1),
Expand Down
2 changes: 1 addition & 1 deletion cmd/sealer/cmd/image/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var exampleForPushCmd = `
func NewPushCmd() *cobra.Command {
pushCmd := &cobra.Command{
Use: "push",
Short: "push ClusterImage to remote registry",
Short: "push sealer image to remote registry",
// TODO: add long description.
Long: longNewPushCmdDescription,
Example: exampleForPushCmd,
Expand Down
2 changes: 1 addition & 1 deletion cmd/sealer/cmd/image/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ save kubernetes:v1.19.8 image to kubernetes.tar file:
func NewSaveCmd() *cobra.Command {
saveCmd := &cobra.Command{
Use: "save",
Short: "save ClusterImage to a tar file",
Short: "save sealer image to a tar file",
Long: longNewSaveCmdDescription,
Example: exampleForSaveCmd,
Args: cobra.ExactArgs(1),
Expand Down
2 changes: 1 addition & 1 deletion cmd/sealer/cmd/image/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var exampleForTagCmd = `
func NewTagCmd() *cobra.Command {
tagCmd := &cobra.Command{
Use: "tag",
Short: "create one or more tags for local ClusterImage",
Short: "create one or more tags for local sealer image",
Long: longNewTagCmdDescription,
Example: exampleForTagCmd,
Args: cobra.MinimumNArgs(2),
Expand Down

0 comments on commit 453259b

Please sign in to comment.