mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 21:54:13 +01:00
Merge pull request #5565 from ninjadq/fix_command_content_undefined_issue
Fix repo is undefined issue on chart summary ui
This commit is contained in:
commit
7588e73600
@ -26,9 +26,9 @@ export class ChartDetailSummaryComponent implements OnInit {
|
|||||||
@Input() readme: string;
|
@Input() readme: string;
|
||||||
|
|
||||||
copiedCMD = '';
|
copiedCMD = '';
|
||||||
addCMD = `helm repo add --ca-file <ca file> --cert-file <cert file> --key-file <key file> --username <username> --password <password> <repo name> ${this.repoURL}/chartrepo/${this.projectName}`;
|
addCMD: string;
|
||||||
installCMD = `helm install --ca-file <ca file> --cert-file <cert file> --key-file <key file> --username=<username> --password=<password> --version ${this.chartVersion} <repo name>/${this.chartName}`;
|
installCMD: string;
|
||||||
verifyCMD = `helm verify --keyring <key path> ${this.chartName}-${this.chartVersion}.tgz`;
|
verifyCMD: string;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private errorHandler: ErrorHandler,
|
private errorHandler: ErrorHandler,
|
||||||
@ -36,6 +36,9 @@ export class ChartDetailSummaryComponent implements OnInit {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
this.addCMD = `helm repo add --ca-file <ca file> --cert-file <cert file> --key-file <key file> --username <username> --password <password> <repo name> ${this.repoURL}/chartrepo/${this.projectName}`;
|
||||||
|
this.installCMD = `helm install --ca-file <ca file> --cert-file <cert file> --key-file <key file> --username=<username> --password=<password> --version ${this.chartVersion} <repo name>/${this.chartName}`;
|
||||||
|
this.verifyCMD = `helm verify --keyring <key path> ${this.chartName}-${this.chartVersion}.tgz`;
|
||||||
}
|
}
|
||||||
|
|
||||||
isCopied(cmd: string) {
|
isCopied(cmd: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user