Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move search to alpha #1902

Merged
merged 1 commit into from
Dec 5, 2022
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
1 change: 1 addition & 0 deletions cmd/sealer/cmd/alpha/alpha.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ func NewCmdAlpha() *cobra.Command {
cmd.AddCommand(NewUpgradeCmd())
cmd.AddCommand(NewGenCmd())
cmd.AddCommand(NewCheckCmd())
cmd.AddCommand(NewSearchCmd())
return cmd
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package image
package alpha

import (
"context"
Expand All @@ -32,10 +32,10 @@ const (

var longNewSearchCmdDescription = ``

var exampleForSearchCmd = `sealer search <imageDomain>/<imageRepo>/<imageName> ...
## default imageDomain: 'registry.cn-qingdao.aliyuncs.com', default imageRepo: 'sealer-io'
var exampleForSearchCmd = `sealer alpha search <imageDomain>/<imageRepo>/<imageName> ...
## default imageDomain: 'docker.io', default imageRepo: 'sealerio'
ex.:
sealer search kubernetes seadent/rootfs docker.io/library/hello-world
sealer alpha search kubernetes
`

// NewSearchCmd searchCmd represents the search command
Expand Down
2 changes: 1 addition & 1 deletion cmd/sealer/cmd/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ import (
func NewImageCommands() []*cobra.Command {
var imageCommands []*cobra.Command
imageCommands = append(imageCommands, NewManifestCmd(), NewBuildCmd(), NewListCmd(), NewInspectCmd(), NewLoadCmd(),
NewLoginCmd(), NewLogoutCmd(), NewPullCmd(), NewPushCmd(), NewRmiCmd(), NewSaveCmd(), NewSearchCmd(), NewTagCmd())
NewLoginCmd(), NewLogoutCmd(), NewPullCmd(), NewPushCmd(), NewRmiCmd(), NewSaveCmd(), NewTagCmd())
return imageCommands
}
4 changes: 2 additions & 2 deletions pkg/image/reference/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
)

const (
defaultDomain = "registry.cn-qingdao.aliyuncs.com"
defaultRepo = "sealer-io"
defaultDomain = "docker.io"
defaultRepo = "sealerio"
defaultTag = "latest"
localhost = "localhost"
)
Expand Down