vault/ui/lib/kubernetes/addon/components/page/configuration.hbs
Jordan Reimer 4bcd4db765
adds mount config details to kubernetes configuration view (#22926)
* adds mount config details to kubernetes configuration view

* adds changelog entry
2023-09-08 15:18:54 -06:00

33 lines
1.1 KiB
Handlebars
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
<TabPageHeader @model={{@backend}} @breadcrumbs={{@breadcrumbs}}>
<ToolbarLink @route="configure" data-test-toolbar-config-action>
{{if @config "Edit configuration" "Configure Kubernetes"}}
</ToolbarLink>
</TabPageHeader>
{{#if @config}}
{{#if @config.disableLocalCaJwt}}
<InfoTableRow @label="Kubernetes host" @value={{@config.kubernetesHost}} />
{{#if @config.kubernetesCaCert}}
<InfoTableRow @label="Certificate">
<CertificateCard @data={{@config.kubernetesCaCert}} @isPem={{true}} />
</InfoTableRow>
{{/if}}
{{else}}
<div class="has-top-margin-l" data-test-inferred-message>
<Icon @name="check-circle-fill" class="has-text-success" />
<span>
These details were successfully inferred from Vaults kubernetes environment and were not explicity set in this
config.
</span>
</div>
{{/if}}
{{else}}
<ConfigCta />
{{/if}}
<SecretsEngineMountConfig @model={{@backend}} class="has-top-margin-xl has-bottom-margin-xl" data-test-mount-config />