Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Rotate Credentials Help Dialog #2100

Merged
merged 7 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that you have copied the text from the docs, however I guess they need to be improved a bit

Suggested change
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.
There are many different credentials for Shoots to ensure that various components can communicate with each other and to make sure they are 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 these credentials can be rotated to ensure the cluster's security.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is c&p from the Gardener docu.. maybe we should change this also in the upstream repo? 🤔

</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>
grolu marked this conversation as resolved.
Show resolved Hide resolved
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