Skip to content

Commit

Permalink
Fixing Dataproc GKE costs for dataproc container
Browse files Browse the repository at this point in the history
Signed-off-by: mattahrens <[email protected]>
  • Loading branch information
mattahrens committed Nov 3, 2023
1 parent a7592b4 commit b4683c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,6 @@ class DataprocGkeSavingsEstimator(DataprocSavingsEstimator):
"""

def _get_cost_per_cluster(self, cluster: ClusterGetAccessor):
dataproc_cost = super()._get_cost_per_cluster()
dataproc_cost = super()._get_cost_per_cluster(cluster)
dataproc_gke_cost = self.price_provider.get_container_cost()
return dataproc_cost + dataproc_gke_cost
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DataprocGkePriceProvider(DataprocPriceProvider):

def get_container_cost(self) -> float:
gke_container_cost = self.__get_gke_container_cost()
return dataproc_cost + gke_container_cost
return gke_container_cost

def __get_gke_container_cost(self) -> float:
lookup_key = 'CP-GKE-CONTAINER-MANAGMENT-COST'
Expand Down

0 comments on commit b4683c6

Please sign in to comment.