mirror of https://github.com/rancher/ui.git
Update the UX for enabling istio
This commit is contained in:
parent
ef036cf36e
commit
d0cdadd0f5
|
|
@ -2,13 +2,6 @@
|
||||||
<h1 class="pull-left">
|
<h1 class="pull-left">
|
||||||
{{t "clusterIstioPage.header"}}
|
{{t "clusterIstioPage.header"}}
|
||||||
</h1>
|
</h1>
|
||||||
{{#if (and enabled canEnable)}}
|
|
||||||
<div class="pull-right">
|
|
||||||
<button class="btn bg-error" {{action "disable"}}>
|
|
||||||
{{t "clusterIstioPage.disable"}}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{#if canEnable}}
|
{{#if canEnable}}
|
||||||
|
|
@ -141,7 +134,7 @@
|
||||||
detail=(t "clusterIstioPage.workload.detail" workload="Pilot")
|
detail=(t "clusterIstioPage.workload.detail" workload="Pilot")
|
||||||
expandAll=al.expandAll
|
expandAll=al.expandAll
|
||||||
expand=(action expandFn)
|
expand=(action expandFn)
|
||||||
expandOnInit=true
|
expandOnInit=false
|
||||||
}}
|
}}
|
||||||
{{form-reservation
|
{{form-reservation
|
||||||
component="Pilot"
|
component="Pilot"
|
||||||
|
|
@ -203,7 +196,7 @@
|
||||||
detail=(t "clusterIstioPage.workload.detail" workload="Mixer")
|
detail=(t "clusterIstioPage.workload.detail" workload="Mixer")
|
||||||
expandAll=al.expandAll
|
expandAll=al.expandAll
|
||||||
expand=(action expandFn)
|
expand=(action expandFn)
|
||||||
expandOnInit=true
|
expandOnInit=false
|
||||||
}}
|
}}
|
||||||
{{form-reservation
|
{{form-reservation
|
||||||
component="MixerTelemetry"
|
component="MixerTelemetry"
|
||||||
|
|
@ -265,7 +258,7 @@
|
||||||
detail=(t "clusterIstioPage.workload.detail" workload="Tracing")
|
detail=(t "clusterIstioPage.workload.detail" workload="Tracing")
|
||||||
expandAll=al.expandAll
|
expandAll=al.expandAll
|
||||||
expand=(action expandFn)
|
expand=(action expandFn)
|
||||||
expandOnInit=true
|
expandOnInit=false
|
||||||
}}
|
}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
|
|
@ -308,7 +301,7 @@
|
||||||
detail=(t "clusterIstioPage.workload.detail" workload="Ingress Gateway")
|
detail=(t "clusterIstioPage.workload.detail" workload="Ingress Gateway")
|
||||||
expandAll=al.expandAll
|
expandAll=al.expandAll
|
||||||
expand=(action expandFn)
|
expand=(action expandFn)
|
||||||
expandOnInit=true
|
expandOnInit=false
|
||||||
}}
|
}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
|
|
@ -424,25 +417,29 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/accordion-list-item}}
|
{{/accordion-list-item}}
|
||||||
{{/accordion-list}}
|
|
||||||
|
|
||||||
{{#advanced-section}}
|
{{#accordion-list-item
|
||||||
<hr/>
|
title=(t "clusterIstioPage.customAnswers.title")
|
||||||
{{form-key-value
|
detail=(t "clusterIstioPage.customAnswers.detail")
|
||||||
initialMap=customAnswers
|
expandAll=al.expandAll
|
||||||
changed=(action (mut customAnswers))
|
expand=(action expandFn)
|
||||||
allowEmptyValue=true
|
expandOnInit=false
|
||||||
addInitialEmptyRow=true
|
|
||||||
editing=true
|
|
||||||
header=(t "newCatalog.answers.label")
|
|
||||||
addActionLabel="newCatalog.answers.addAction"
|
|
||||||
keyLabel="newContainer.environment.keyLabel"
|
|
||||||
keyPlaceholder="newContainer.environment.keyPlaceholder"
|
|
||||||
valueLabel="newContainer.environment.valueLabel"
|
|
||||||
valuePlaceholder="newContainer.environment.valuePlaceholder"
|
|
||||||
}}
|
}}
|
||||||
{{/advanced-section}}
|
{{form-key-value
|
||||||
|
initialMap=customAnswers
|
||||||
|
changed=(action (mut customAnswers))
|
||||||
|
allowEmptyValue=true
|
||||||
|
addInitialEmptyRow=true
|
||||||
|
editing=true
|
||||||
|
header=(t "newCatalog.answers.label")
|
||||||
|
addActionLabel="newCatalog.answers.addAction"
|
||||||
|
keyLabel="newContainer.environment.keyLabel"
|
||||||
|
keyPlaceholder="newContainer.environment.keyPlaceholder"
|
||||||
|
valueLabel="newContainer.environment.valueLabel"
|
||||||
|
valuePlaceholder="newContainer.environment.valuePlaceholder"
|
||||||
|
}}
|
||||||
|
{{/accordion-list-item}}
|
||||||
|
{{/accordion-list}}
|
||||||
{{#if (or pilotWarning mixerTelemetryWarning tracingWarning gatewayWarning (and mixerPolicyWarning config.mixerPolicyEnabled) mixerWarning istioWarning)}}
|
{{#if (or pilotWarning mixerTelemetryWarning tracingWarning gatewayWarning (and mixerPolicyWarning config.mixerPolicyEnabled) mixerWarning istioWarning)}}
|
||||||
{{#banner-message color="bg-warning"}}
|
{{#banner-message color="bg-warning"}}
|
||||||
{{#if istioWarning}}
|
{{#if istioWarning}}
|
||||||
|
|
@ -466,14 +463,20 @@
|
||||||
|
|
||||||
{{top-errors errors=errors}}
|
{{top-errors errors=errors}}
|
||||||
|
|
||||||
{{save-cancel
|
{{#save-cancel
|
||||||
saveDisabled=saveDisabled
|
saveDisabled=saveDisabled
|
||||||
editing=enabled
|
editing=enabled
|
||||||
createLabel="clusterIstioPage.enableActionLabel"
|
createLabel="clusterIstioPage.enableActionLabel"
|
||||||
save=(action "save")
|
save=(action "save")
|
||||||
saved=saved
|
saved=saved
|
||||||
cancel=cancel
|
cancelDisabled=true
|
||||||
}}
|
}}
|
||||||
|
{{#if (and enabled canEnable)}}
|
||||||
|
<button class="btn bg-error" {{action "disable"}}>
|
||||||
|
{{t "clusterIstioPage.disable"}}
|
||||||
|
</button>
|
||||||
|
{{/if}}
|
||||||
|
{{/save-cancel}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if enableClusterMonitoring}}
|
{{#if enableClusterMonitoring}}
|
||||||
{{#unless canReuse}}
|
{{#unless canReuse}}
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,12 @@ clusterIstioPage:
|
||||||
disabled: "Istio is not enabled yet. Please click Enable button to enable it."
|
disabled: "Istio is not enabled yet. Please click Enable button to enable it."
|
||||||
notReady: Installing Istio into the system project of current cluster...
|
notReady: Installing Istio into the system project of current cluster...
|
||||||
confirmDisable: "Are you sure? Click again to disable Istio"
|
confirmDisable: "Are you sure? Click again to disable Istio"
|
||||||
disable: Disable Istio
|
disable: Disable
|
||||||
enableActionLabel: Enable
|
enableActionLabel: Enable
|
||||||
version: Istio Version
|
version: Istio Version
|
||||||
|
customAnswers:
|
||||||
|
title: Custom Answers
|
||||||
|
detail: Config custom answers for Istio.
|
||||||
links:
|
links:
|
||||||
kiali:
|
kiali:
|
||||||
label: Kiali UI
|
label: Kiali UI
|
||||||
|
|
|
||||||
|
|
@ -3,34 +3,6 @@
|
||||||
<h1 class="pull-left">
|
<h1 class="pull-left">
|
||||||
{{t (concat "monitoringPage." level ".title")}}
|
{{t (concat "monitoringPage." level ".title")}}
|
||||||
</h1>
|
</h1>
|
||||||
{{#if (and enabled canDisableMonitor)}}
|
|
||||||
<div class="pull-right">
|
|
||||||
{{#if confirmDisable}}
|
|
||||||
<button class="btn bg-error" {{action "disable"}}>
|
|
||||||
<i class="icon icon-alert"></i> {{t "monitoringPage.confirmDisable"}}
|
|
||||||
</button>
|
|
||||||
{{else}}
|
|
||||||
{{#if (and istioEnabled (eq level "cluster"))}}
|
|
||||||
{{#tooltip-element
|
|
||||||
type="tooltip-basic"
|
|
||||||
model=(t "monitoringPage.errors.disableIstioFirst")
|
|
||||||
tooltipTemplate="tooltip-static"
|
|
||||||
aria-describedby="tooltip-base"
|
|
||||||
inlineBlock=true
|
|
||||||
placement="top"
|
|
||||||
}}
|
|
||||||
<button class="btn bg-error" {{action "promptDisable"}}>
|
|
||||||
{{t "monitoringPage.disable"}}
|
|
||||||
</button>
|
|
||||||
{{/tooltip-element}}
|
|
||||||
{{else}}
|
|
||||||
<button class="btn bg-error" {{action "promptDisable"}}>
|
|
||||||
{{t "monitoringPage.disable"}}
|
|
||||||
</button>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{#if settings.isRancher}}
|
{{#if settings.isRancher}}
|
||||||
|
|
@ -371,13 +343,40 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
{{save-cancel
|
{{#save-cancel
|
||||||
saveDisabled=saveDisabled
|
saveDisabled=saveDisabled
|
||||||
cancelDisabled=true
|
cancelDisabled=true
|
||||||
editing=enabled
|
editing=enabled
|
||||||
createLabel="monitoringPage.enableActionLabel"
|
createLabel="monitoringPage.enableActionLabel"
|
||||||
save="enable"
|
save="enable"
|
||||||
}}
|
}}
|
||||||
|
{{#if (and enabled canDisableMonitor)}}
|
||||||
|
{{#if confirmDisable}}
|
||||||
|
<button class="btn bg-error" {{action "disable"}}>
|
||||||
|
<i class="icon icon-alert"></i> {{t "monitoringPage.confirmDisable"}}
|
||||||
|
</button>
|
||||||
|
{{else}}
|
||||||
|
{{#if (and istioEnabled (eq level "cluster"))}}
|
||||||
|
{{#tooltip-element
|
||||||
|
type="tooltip-basic"
|
||||||
|
model=(t "monitoringPage.errors.disableIstioFirst")
|
||||||
|
tooltipTemplate="tooltip-static"
|
||||||
|
aria-describedby="tooltip-base"
|
||||||
|
inlineBlock=true
|
||||||
|
placement="top"
|
||||||
|
}}
|
||||||
|
<button class="btn bg-error" {{action "promptDisable"}}>
|
||||||
|
{{t "monitoringPage.disable"}}
|
||||||
|
</button>
|
||||||
|
{{/tooltip-element}}
|
||||||
|
{{else}}
|
||||||
|
<button class="btn bg-error" {{action "promptDisable"}}>
|
||||||
|
{{t "monitoringPage.disable"}}
|
||||||
|
</button>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
{{/save-cancel}}
|
||||||
</div>
|
</div>
|
||||||
{{else if (and (eq level "project") scope.currentProject.isSystemProject)}}
|
{{else if (and (eq level "project") scope.currentProject.isSystemProject)}}
|
||||||
{{banner-message
|
{{banner-message
|
||||||
|
|
|
||||||
|
|
@ -94,8 +94,8 @@ monitoringPage:
|
||||||
upgrade: Upgrade monitoring to the latest version {version}
|
upgrade: Upgrade monitoring to the latest version {version}
|
||||||
upgradeAvailable: "({version} Upgrade Available)"
|
upgradeAvailable: "({version} Upgrade Available)"
|
||||||
confirmDisable: "Are you sure? Click again to disable monitoring."
|
confirmDisable: "Are you sure? Click again to disable monitoring."
|
||||||
disable: Disable Monitoring
|
disable: Disable
|
||||||
enableActionLabel: Enable Monitoring
|
enableActionLabel: Enable
|
||||||
systemProject: "If you want to collect custom metrics for pods in System Project, please enable cluster level monitoring directly."
|
systemProject: "If you want to collect custom metrics for pods in System Project, please enable cluster level monitoring directly."
|
||||||
noPermission: "You do not have permission to configure {level} level monitoring."
|
noPermission: "You do not have permission to configure {level} level monitoring."
|
||||||
toUpdate:
|
toUpdate:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
{{yield}}
|
|
||||||
{{#if saving}}
|
{{#if saving}}
|
||||||
<button class="btn btn-disabled {{savingColor}}" {{action "doNothing"}}>
|
<button class="btn btn-disabled {{savingColor}}" {{action "doNothing"}}>
|
||||||
<i class="icon icon-spinner icon-spin"></i>
|
<i class="icon icon-spinner icon-spin"></i>
|
||||||
|
|
@ -9,6 +8,7 @@
|
||||||
{{t btnLabel}}
|
{{t btnLabel}}
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{yield}}
|
||||||
{{#unless cancelDisabled}}
|
{{#unless cancelDisabled}}
|
||||||
<button {{action "cancel"}} class="btn {{cancelColor}}">
|
<button {{action "cancel"}} class="btn {{cancelColor}}">
|
||||||
{{t cancelLabel}}
|
{{t cancelLabel}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue