Skip to content

Commit

Permalink
* refactor: update various files with new configurations and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Jul 17, 2024
1 parent b0278db commit d8d2ce2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 17 deletions.
4 changes: 1 addition & 3 deletions cmd/app/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ func NewCmdAppRestart(f factory.Factory) *cobra.Command {
Use: "restart",
Short: "restart app",
Args: cobra.ExactArgs(1),
Hidden: true,
Deprecated: "zentao not support query by url",
Example: `z app exec http://console.example.corp.cc/instance-view-39.html`,
Example: `z app`,
RunE: func(cmd *cobra.Command, args []string) error {
url := args[0]
apidebug := log.GetLevel() == logrus.DebugLevel
Expand Down
3 changes: 2 additions & 1 deletion cmd/experimental/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ var (
"mc": true,
"etcdctl": true,
"dnsctl": true,
"nerdctl": true,
}
)

// InstallCommand install some tools
func InstallCommand(f factory.Factory) *cobra.Command {
installCmd := &cobra.Command{
Use: "install [flags]",
Short: "install tools, like: helm, kubectl,etcdctl,mc,dnsctl",
Short: "install tools, like: helm, kubectl,etcdctl,mc,dnsctl,nerdctl",
Example: installExample,
Args: cobra.MinimumNArgs(1),
PreRunE: func(cmd *cobra.Command, args []string) error {
Expand Down
3 changes: 3 additions & 0 deletions hack/manifests/hub/nerdctl.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# /etc/nerdctl/nerdctl.toml
address = "unix:///run/k3s/containerd/containerd.sock"
namespace = "k8s.io"
4 changes: 3 additions & 1 deletion hack/manifests/hub/registries.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
mirrors:
"docker.io":
endpoint:
- "http://hub.quickon.me:32378"
- "http://127.0.0.1:32378"
"hub.zentao.net":
endpoint:
- "http://127.0.0.1:32378"
"hub.qucheng.com":
endpoint:
Expand Down
2 changes: 1 addition & 1 deletion hack/manifests/storage/longhorn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ z exp helm repo-update

# z helm upgrade -i longhorn install/longhorn -n quickon-storage --create-namespace --set ingress.host=lh.local

# z exp helm upgrade --repo install --name longhorn -n quickon-storage --chart longhorn --set ingress.host=lh.local
z exp helm upgrade --repo install --name longhorn -n quickon-storage --chart longhorn --set ingress.host=lh.local
11 changes: 0 additions & 11 deletions hack/manifests/storage/openebs-jiva.sh

This file was deleted.

0 comments on commit d8d2ce2

Please sign in to comment.