Skip to content

Commit

Permalink
feat: show container connection type and endpoint
Browse files Browse the repository at this point in the history
Make the container and the kubernetes endpoint look more similar.

Show the connection type, since it might not match the provider.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
  • Loading branch information
afbjorklund committed Dec 3, 2023
1 parent 88503ef commit b3b5512
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Expand Up @@ -62,10 +62,15 @@ $: providerContainerConfiguration = tmpProviderContainerConfiguration.filter(
{/if}
</div>
{/each}
<div class="flex flex-row mt-5">
<span class="font-semibold min-w-[150px]">Type</span>
<span aria-label="{containerConnectionInfo.type}"
>{#if containerConnectionInfo.type === 'docker'}Docker{:else if containerConnectionInfo.type === 'podman'}Podman{/if}</span>
</div>
<div class="flex flex-row mt-5">
<span class="font-semibold min-w-[150px]">Endpoint</span>
<span aria-label="{containerConnectionInfo.endpoint.socketPath}"
>{containerConnectionInfo.endpoint.socketPath}</span>
>unix://{containerConnectionInfo.endpoint.socketPath}</span>
</div>
</div>
{/if}
Expand Down
Expand Up @@ -43,6 +43,10 @@ $: providerConnectionConfiguration = tmpProviderContainerConfiguration.filter(
<span>{connectionSetting.value}</span>
</div>
{/each}
<div class="flex flex-row mt-5">
<span class="font-semibold min-w-[150px]">Type</span>
<span aria-label="kubernetes">Kubernetes</span>
</div>
<div class="flex flex-row mt-5">
<span class="font-semibold min-w-[150px]">Endpoint</span>
<span aria-label="{kubernetesConnectionInfo.endpoint.apiURL}">{kubernetesConnectionInfo.endpoint.apiURL}</span>
Expand Down
Expand Up @@ -473,6 +473,15 @@ function hasAnyConfiguration(provider: ProviderInfo) {
<ConnectionErrorInfoButton status="{status}" />
{/if}
</div>
<div class="mt-2">
<div class="text-gray-700 text-xs">
{#if container.type === 'docker'}Docker{:else if container.type === 'podman'}Podman{/if} endpoint
</div>
<div class="mt-1">
<span class="my-auto text-xs" class:text-gray-900="{container.status !== 'started'}"
>unix://{container.endpoint.socketPath}</span>
</div>
</div>

{#if providerContainerConfiguration.has(provider.internalId)}
{@const providerConfiguration = providerContainerConfiguration.get(provider.internalId) || []}
Expand Down

0 comments on commit b3b5512

Please sign in to comment.