Skip to content

Commit

Permalink
Merge pull request #60 from psuzn/main
Browse files Browse the repository at this point in the history
Main -> Develop
  • Loading branch information
psuzn authored Aug 6, 2024
2 parents 443d551 + 1af9722 commit 680ff68
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class AppDetailScrapper(
val app = loggingExecutionTime("$SIMPLE_NAME:: scrapping app details $packageName") {
getAppDetail(packageName)
}.getOrElse {
repository.delete(packageName)
throw RuntimeException("AppDetailScrapper failed to scrap details ${it.message}")
}

Expand Down Expand Up @@ -121,21 +122,19 @@ class AppDetailScrapper(
id = packageName,
name = combined.getValue(Value.TITLE),
icon = combined.getValue(Value.ICON),
images =
(combined.getValue(Value.SCREENSHOTS_LIST) as JsonArray).mapNotNull {
getValue(it as JsonArray, Value.SCREENSHOTS_URL.path.toTypedArray()) as? String
},
images = (combined.getValue(Value.SCREENSHOTS_LIST) as JsonArray).mapNotNull {
getValue(it as JsonArray, Value.SCREENSHOTS_URL.path.toTypedArray()) as? String
},
normalPrice = normalPrice,
currency = combined.getValue(Value.CURRENCY) as String,
currentPrice = currentPrice,
rating = combined.getValue<Float>(Value.RATINGS).toString(),
downloads = combined.getValue(Value.INSTALLS),
storeUrl = "https://play.google.com/store/apps/details?id=$packageName",
category = combined.getValue(Value.GENRE) as String,
offerExpiresIn =
combined.getValueOrNull<Int>(Value.OFFER_END_TIME)?.let {
OffsetDateTime.ofInstant(Instant.ofEpochSecond(it.toLong()), ZoneOffset.UTC)
},
offerExpiresIn = combined.getValueOrNull<Int>(Value.OFFER_END_TIME)?.let {
OffsetDateTime.ofInstant(Instant.ofEpochSecond(it.toLong()), ZoneOffset.UTC)
},
source = Constants.DealSources.APP_DEAL_SUBREDDIT,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: redirect-https
namespace: {{ .Values.namespace }}
spec:
redirectScheme:
scheme: https
Expand Down
1 change: 0 additions & 1 deletion helm/service-account/templates/serviceaccount-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: v1
kind: Secret
metadata:
name: sa-{{ .Values.serviceAccountName }}-token
namespace: {{ .Values.namespace }}
annotations:
kubernetes.io/service-account.name: sa-{{ .Values.serviceAccountName }}
type: kubernetes.io/service-account-token
1 change: 0 additions & 1 deletion helm/service-account/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: sa-{{ .Values.serviceAccountName }}
namespace: {{ .Values.namespace }}
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ helm-upgrade imageTag=tag:
--set firebaseAdminAuthCredential=$FIREBASE_ADMIN_AUTH_CREDENTIALS \
--set forexApiKey=$FOREX_API_KEY \
--set image.tag={{imageTag}} \
--set image.repository={{imageRepo}}
--set image.repository={{imageRepo}} \
--set namespace={{namespace}}
# Uninstalls the helm chart
helm-delete:
Expand Down

0 comments on commit 680ff68

Please sign in to comment.