diff --git a/web/console/src/modules/registry/WebAPI.ts b/web/console/src/modules/registry/WebAPI.ts index fe318812f..55fde7385 100644 --- a/web/console/src/modules/registry/WebAPI.ts +++ b/web/console/src/modules/registry/WebAPI.ts @@ -12,8 +12,7 @@ import { POST, PUT, PATCH, - DELETE, - getProjectName + DELETE } from '../../../helpers'; import { resourceConfig } from '../../../config/resourceConfig'; import { RequestParams, ResourceInfo } from '../common/models'; diff --git a/web/console/src/modules/registry/components/ChartUsageGuideDialog.tsx b/web/console/src/modules/registry/components/ChartUsageGuideDialog.tsx index 23e99f866..111ef4b5e 100644 --- a/web/console/src/modules/registry/components/ChartUsageGuideDialog.tsx +++ b/web/console/src/modules/registry/components/ChartUsageGuideDialog.tsx @@ -19,6 +19,7 @@ interface ChartUsageGuideDialogProps extends RootProps { showDialog: boolean; chartGroupName: string; registryUrl: string; + username: string; onClose: Function; } @@ -82,7 +83,7 @@ export class ChartUsageGuideDialog extends React.Component 复制 -

{`$ curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | sh`}

+

{`curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | sh`}

  • @@ -93,7 +94,7 @@ export class ChartUsageGuideDialog extends React.Component 复制 -

    {`helm repo add ${this.props.chartGroupName} http://${this.props.registryUrl}/chart/${this.props.chartGroupName} --username tkestack --password [访问凭证] `}

    +

    {`helm repo add ${this.props.chartGroupName} http://${this.props.registryUrl}/chart/${this.props.chartGroupName} --username ${this.props.username} --password [访问凭证] `}

    @@ -119,8 +120,11 @@ export class ChartUsageGuideDialog extends React.Component 复制 -

    {`$ helm plugin install https://github.com/chartmuseum/helm-push`}

    +

    {`helm plugin install https://github.com/chartmuseum/helm-push`}

    +

    + 如安装失败,可以手动下载后解压到$HOME/.local/share/helm/plugins,解压路径可以通过helm --help 查看 +

  • @@ -137,7 +141,7 @@ export class ChartUsageGuideDialog extends React.Component 复制 -

    {`$ helm push ./myapp ${this.props.chartGroupName}`}

    +

    {`helm push ./myapp ${this.props.chartGroupName}`}

  • @@ -148,7 +152,7 @@ export class ChartUsageGuideDialog extends React.Component 复制 -

    {`$ helm push myapp-1.0.1.tgz ${this.props.chartGroupName}`}

    +

    {`helm push myapp-1.0.1.tgz ${this.props.chartGroupName}`}

  • @@ -159,7 +163,7 @@ export class ChartUsageGuideDialog extends React.Component 复制 -

    {`$ helm fetch ${this.props.chartGroupName}/myapp`}

    +

    {`helm fetch ${this.props.chartGroupName}/myapp`}

  • @@ -170,7 +174,7 @@ export class ChartUsageGuideDialog extends React.Component 复制 -

    {`$ helm fetch ${this.props.chartGroupName}/myapp --version 1.0.1`}

    +

    {`helm fetch ${this.props.chartGroupName}/myapp --version 1.0.1`}

  • diff --git a/web/console/src/modules/registry/components/chartgroup/list/TablePanel.tsx b/web/console/src/modules/registry/components/chartgroup/list/TablePanel.tsx index ac155082e..73f79ef7c 100644 --- a/web/console/src/modules/registry/components/chartgroup/list/TablePanel.tsx +++ b/web/console/src/modules/registry/components/chartgroup/list/TablePanel.tsx @@ -144,6 +144,7 @@ export class TablePanel extends React.Component { this.setState({ showChartUsageGuideDialog: false