2021-10-29 18:13:13 +00:00
|
|
|
<script>
|
2022-04-06 09:09:15 +00:00
|
|
|
import { GlEmptyState, GlLink, GlSprintf, GlAlert } from '@gitlab/ui';
|
2021-10-29 18:13:13 +00:00
|
|
|
import { helpPagePath } from '~/helpers/help_page_helper';
|
2021-11-09 03:42:22 +00:00
|
|
|
import { I18N_CLUSTERS_EMPTY_STATE } from '../constants';
|
2021-10-29 18:13:13 +00:00
|
|
|
|
|
|
|
export default {
|
2021-11-09 03:42:22 +00:00
|
|
|
i18n: I18N_CLUSTERS_EMPTY_STATE,
|
2021-10-29 18:13:13 +00:00
|
|
|
components: {
|
|
|
|
GlEmptyState,
|
|
|
|
GlLink,
|
2021-11-09 03:42:22 +00:00
|
|
|
GlSprintf,
|
2021-12-02 21:10:16 +00:00
|
|
|
GlAlert,
|
2021-10-29 18:13:13 +00:00
|
|
|
},
|
2022-04-06 09:09:15 +00:00
|
|
|
inject: ['emptyStateHelpText', 'clustersEmptyStateImage'],
|
2021-12-02 21:10:16 +00:00
|
|
|
clustersHelpUrl: helpPagePath('user/infrastructure/clusters/index', {
|
|
|
|
anchor: 'certificate-based-kubernetes-integration-deprecated',
|
|
|
|
}),
|
|
|
|
blogPostUrl:
|
|
|
|
'https://about.gitlab.com/blog/2021/11/15/deprecating-the-cert-based-kubernetes-integration/',
|
2021-10-29 18:13:13 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2021-12-02 21:10:16 +00:00
|
|
|
<div>
|
2022-04-06 09:09:15 +00:00
|
|
|
<gl-empty-state :svg-path="clustersEmptyStateImage" :svg-height="100">
|
|
|
|
<template #title>
|
|
|
|
<p>
|
2021-12-02 21:10:16 +00:00
|
|
|
<gl-sprintf :message="$options.i18n.introText">
|
|
|
|
<template #link="{ content }">
|
|
|
|
<gl-link :href="$options.clustersHelpUrl">{{ content }}</gl-link>
|
|
|
|
</template>
|
|
|
|
</gl-sprintf>
|
|
|
|
</p>
|
2021-10-29 18:13:13 +00:00
|
|
|
|
2021-12-02 21:10:16 +00:00
|
|
|
<p v-if="emptyStateHelpText" data-testid="clusters-empty-state-text">
|
|
|
|
{{ emptyStateHelpText }}
|
|
|
|
</p>
|
|
|
|
</template>
|
|
|
|
</gl-empty-state>
|
2021-10-29 18:13:13 +00:00
|
|
|
|
2021-12-02 21:10:16 +00:00
|
|
|
<gl-alert variant="warning" :dismissible="false">
|
|
|
|
<gl-sprintf :message="$options.i18n.alertText">
|
|
|
|
<template #link="{ content }">
|
2022-04-06 09:09:15 +00:00
|
|
|
<gl-link :href="$options.blogPostUrl" target="_blank">{{ content }}</gl-link>
|
2021-12-02 21:10:16 +00:00
|
|
|
</template>
|
|
|
|
</gl-sprintf>
|
|
|
|
</gl-alert>
|
|
|
|
</div>
|
2021-10-29 18:13:13 +00:00
|
|
|
</template>
|