Welcome to mirror list, hosted at ThFree Co, Russian Federation.

create_eks_cluster.vue « components « eks_cluster « create_cluster « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba170dc0e192f2cab7f1f9c8510d2b9fb448529a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<script>
import { mapState } from 'vuex';
import EksClusterConfigurationForm from './eks_cluster_configuration_form.vue';
import ServiceCredentialsForm from './service_credentials_form.vue';

export default {
  components: {
    ServiceCredentialsForm,
    EksClusterConfigurationForm,
  },
  props: {
    gitlabManagedClusterHelpPath: {
      type: String,
      required: true,
    },
    namespacePerEnvironmentHelpPath: {
      type: String,
      required: true,
    },
    kubernetesIntegrationHelpPath: {
      type: String,
      required: true,
    },
    accountAndExternalIdsHelpPath: {
      type: String,
      required: true,
    },
    createRoleArnHelpPath: {
      type: String,
      required: true,
    },
    externalLinkIcon: {
      type: String,
      required: true,
    },
  },
  computed: {
    ...mapState(['hasCredentials']),
  },
};
</script>
<template>
  <div class="js-create-eks-cluster">
    <eks-cluster-configuration-form
      v-if="hasCredentials"
      :gitlab-managed-cluster-help-path="gitlabManagedClusterHelpPath"
      :namespace-per-environment-help-path="namespacePerEnvironmentHelpPath"
      :kubernetes-integration-help-path="kubernetesIntegrationHelpPath"
      :external-link-icon="externalLinkIcon"
    />
    <service-credentials-form
      v-else
      :create-role-arn-help-path="createRoleArnHelpPath"
      :account-and-external-ids-help-path="accountAndExternalIdsHelpPath"
      :external-link-icon="externalLinkIcon"
    />
  </div>
</template>