Skip to content

Commit

Permalink
Added Rotate Credentials Help Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
grolu committed Sep 19, 2024
1 parent 9016659 commit 4af78d2
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
54 changes: 54 additions & 0 deletions frontend/src/components/GCredentialRotationHelp.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!--
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors
SPDX-License-Identifier: Apache-2.0
-->

<template>
<g-action-button
icon="mdi-help-circle-outline"
color="toolbar-title"
class="mr-4"
@click="showDialog"
>
<template #tooltip>
<span>Help</span>
</template>
</g-action-button>
<g-dialog
ref="gDialog"
confirm-button-text="Ok"
cancel-button-text=""
width="600"
>
<template #caption>
Credential Rotation Help
</template>
<template #content>
<v-card-text>
There are a lot of different credentials for Shoots to make sure that the various components can communicate with each other and to make sure it is usable and operable.<br>
<g-external-link url="https://github.com/gardener/gardener/blob/master/docs/usage/shoot_credentials_rotation.md">
This page
</g-external-link>
explains how the varieties of credentials can be rotated so that the cluster can be considered secure.
</v-card-text>
</template>
</g-dialog>
</template>

<script>
import GDialog from '@/components/dialogs/GDialog.vue'
import GActionButton from '@/components/GActionButton.vue'
export default {
components: {
GDialog,
GActionButton,
},
methods: {
showDialog () {
this.$refs.gDialog.showDialog()
},
},
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ SPDX-License-Identifier: Apache-2.0

<template>
<v-card class="mb-4">
<g-toolbar title="Credential Rotation" />
<g-toolbar title="Credential Rotation">
<template #append>
<g-credential-rotation-help />
</template>
</g-toolbar>
<g-list>
<g-credential-tile
type="ALL_CREDENTIALS"
Expand Down Expand Up @@ -45,6 +49,7 @@ SPDX-License-Identifier: Apache-2.0

<script setup>
import GCredentialTile from '@/components/GCredentialTile'
import GCredentialRotationHelp from '@/components/GCredentialRotationHelp'
import { useShootItem } from '@/composables/useShootItem'
Expand Down

0 comments on commit 4af78d2

Please sign in to comment.