You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by dy...@apache.org on 2022/10/28 11:13:09 UTC

[incubator-datalab] branch DATALAB-3082 created (now 2d7d41549)

This is an automated email from the ASF dual-hosted git repository.

dyankiv pushed a change to branch DATALAB-3082
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


      at 2d7d41549 add des bucket for billing

This branch includes the following new commits:

     new 2d7d41549 add des bucket for billing

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org


[incubator-datalab] 01/01: add des bucket for billing

Posted by dy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dyankiv pushed a commit to branch DATALAB-3082
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 2d7d41549a356c27eb22a7a49797593277105d32
Author: Denys Yankiv <de...@gmail.com>
AuthorDate: Fri Oct 28 13:08:32 2022 +0300

    add des bucket for billing
---
 .../main/java/com/epam/datalab/backendapi/util/BillingUtils.java    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/services/self-service/src/main/java/com/epam/datalab/backendapi/util/BillingUtils.java b/services/self-service/src/main/java/com/epam/datalab/backendapi/util/BillingUtils.java
index 026ae6192..7eb19ba55 100644
--- a/services/self-service/src/main/java/com/epam/datalab/backendapi/util/BillingUtils.java
+++ b/services/self-service/src/main/java/com/epam/datalab/backendapi/util/BillingUtils.java
@@ -51,6 +51,7 @@ public class BillingUtils {
     private static final String EDGE_VOLUME_FORMAT = "%s-%s-%s-edge-volume-primary";
     private static final String PROJECT_ENDPOINT_BUCKET_FORMAT = "%s-%s-%s-bucket";
     private static final String ENDPOINT_SHARED_BUCKET_FORMAT = "%s-%s-shared-bucket";
+    private static final String DATA_ENGINE_BUCKET_FORMAT = "%s-bucket";
 
     private static final String VOLUME_PRIMARY_FORMAT = "%s-volume-primary";
     private static final String VOLUME_PRIMARY_COMPUTATIONAL_FORMAT = "%s-%s-volume-primary";
@@ -178,6 +179,11 @@ public class BillingUtils {
                                     .resourceName(cr.getComputationalName())
                                     .datalabId(String.format(VOLUME_SECONDARY_COMPUTATIONAL_FORMAT, computationalId, "m"))
                                     .resourceType(VOLUME)
+                                    .build(),
+                            withUserProjectEndpoint(userInstance)
+                                    .resourceName(cr.getComputationalName())
+                                    .datalabId(String.format(DATA_ENGINE_BUCKET_FORMAT, computationalId))
+                                    .resourceType(BUCKET)
                                     .build()
                             ),
                             getSlaveVolumes(userInstance, cr, maxSparkInstanceCount)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org