Просмотр исходного кода

add cluster id to create eks request

Alexander Belanger 5 лет назад
Родитель
Сommit
0e42367a16
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      dashboard/src/main/home/new-project/NewProject.tsx

+ 3 - 1
dashboard/src/main/home/new-project/NewProject.tsx

@@ -223,11 +223,13 @@ export default class NewProject extends Component<PropsType, StateType> {
 
   provisionEKS = (proj: ProjectType, ecr: any) => {
     let { awsAccessId, awsSecretKey, awsRegion } = this.state;
+    let clusterName = `${proj.name}-cluster`
 
     api.createAWSIntegration('<token>', {
       aws_region: awsRegion,
       aws_access_key_id: awsAccessId,
       aws_secret_access_key: awsSecretKey,
+      aws_cluster_id: clusterName,
     }, { id: proj.id }, (err: any, res: any) => {
       if (err) {
         console.log(err)
@@ -236,7 +238,7 @@ export default class NewProject extends Component<PropsType, StateType> {
 
       api.provisionEKS('<token>', {
         aws_integration_id: res.data.id,
-        eks_name: `${proj.name}-cluster`,
+        eks_name: clusterName,
       }, { id: proj.id}, (err: any, eks: any) => {
         if (err) {
           console.log(err)