Skip to content

Commit

Permalink
Moved kcal calculation api to grocery-be application
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-iaco committed Oct 8, 2022
1 parent d5d6186 commit 118523e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 98 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@7e0881f8fe90b25e305bbf0309761e9314607e25
with:
cosign-release: 'v1.9.0'


# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
Expand Down Expand Up @@ -96,16 +88,3 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
COSIGN_EXPERIMENTAL: "true"
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
32 changes: 0 additions & 32 deletions controller/FoodDetailController.go

This file was deleted.

1 change: 0 additions & 1 deletion k8s/overlays/qa/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ configMapGenerator:
- DB_PORT=5432
- DB_USER=foodtrack
- GROCERY_BASE_URL=http://grocery-be-service.grocery.svc.cluster.local:8000
- FOOD_DETAIL_BASE_URL=http://food-details-integrator-be-service.grocery.svc.cluster.local:8080
patchesStrategicMerge:
- deployment_patch.yaml
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,10 @@ func main() {
ms := service.NewMealService(mr, fcs)
mc := controller.NewMealController(ms)
fcc := controller.NewFoodConsumptionController(fcs)
fds := service.NewFoodDetailService()
fdc := controller.NewFoodDetailController(fds)

r := gin.Default()
r.Use(cors.Default())

r.GET("/meal/detail/:barcode", fdc.GetFoodKcals)

r.GET("/meal", mc.FindAllMeals)
r.GET("/meal/:mealId", mc.FindMealById)
r.POST("/meal", mc.CreateMeal)
Expand Down
40 changes: 0 additions & 40 deletions service/FoodDetailService.go

This file was deleted.

0 comments on commit 118523e

Please sign in to comment.