Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved kcal calculation api to grocery-be application #9

Merged
merged 1 commit into from
Oct 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.