From 0a2577061aa6cd1616a7bbd9928a2e87669435ad Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 15:50:29 +0530 Subject: [PATCH 01/28] empty space added --- src/ad/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ad/Dockerfile b/src/ad/Dockerfile index 9da7ce7c20..f9441b49fd 100644 --- a/src/ad/Dockerfile +++ b/src/ad/Dockerfile @@ -26,3 +26,5 @@ ENV AD_PORT 9099 ENTRYPOINT ["./build/install/opentelemetry-demo-ad/bin/Ad"] + + From d0f2f565f78f000a610111657c912c7e682b6b63 Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 16:15:49 +0530 Subject: [PATCH 02/28] otel update --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e62d0f6033..2d9294129a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -86,7 +86,7 @@ jobs: - name: checkout code uses: actions/checkout@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.HUBGIT_TOKEN }} - name: Update tag in kubernetes deployment manifest run: | @@ -94,8 +94,8 @@ jobs: - name: Commit and push changes run: | - git config --global user.email "abhishek@gmail.com" - git config --global user.name "Abhishek Veeramalla" + git config --global user.email "leninfitfreak@gmail.com" + git config --global user.name "Lenin" git add kubernetes/productcatalog/deploy.yaml git commit -m "[CI]: Update product catalog image tag" git push origin HEAD:main -f From d482145eed5ec26f19dc27c699348ff8a7c887e1 Mon Sep 17 00:00:00 2001 From: Leninfitfreak Date: Sat, 26 Jul 2025 16:24:58 +0530 Subject: [PATCH 03/28] Create lenin --- src/product-catalog/lenin | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/product-catalog/lenin diff --git a/src/product-catalog/lenin b/src/product-catalog/lenin new file mode 100644 index 0000000000..69aa0af2c2 --- /dev/null +++ b/src/product-catalog/lenin @@ -0,0 +1 @@ +lenin From a11c8282fe0c4c842db1a62a2e11384141f3fa1c Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 16:35:28 +0530 Subject: [PATCH 04/28] dummy --- src/product-catalog/lenin | 1 + 1 file changed, 1 insertion(+) diff --git a/src/product-catalog/lenin b/src/product-catalog/lenin index 69aa0af2c2..7fe3325141 100644 --- a/src/product-catalog/lenin +++ b/src/product-catalog/lenin @@ -1 +1,2 @@ lenin +dsvdfbgsnjet \ No newline at end of file From de0807f4e9bd13a5da2342f517a6db98423ba827 Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 16:44:39 +0530 Subject: [PATCH 05/28] new change --- src/product-catalog/lenin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/product-catalog/lenin b/src/product-catalog/lenin index 7fe3325141..722a57e595 100644 --- a/src/product-catalog/lenin +++ b/src/product-catalog/lenin @@ -1,2 +1,4 @@ lenin -dsvdfbgsnjet \ No newline at end of file +dsvdfbgsnjet + +efger;gjiewluh wEI NU9 \ No newline at end of file From 1e1f15babd069a67d5409642ba90c8a6966b72f2 Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 16:49:49 +0530 Subject: [PATCH 06/28] bad change --- src/product-catalog/lenin | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/product-catalog/lenin b/src/product-catalog/lenin index 722a57e595..006103dc6f 100644 --- a/src/product-catalog/lenin +++ b/src/product-catalog/lenin @@ -1,4 +1,7 @@ lenin dsvdfbgsnjet -efger;gjiewluh wEI NU9 \ No newline at end of file +efger;gjiewluh wEI NU9 + + +efger';gjeroigf e4wufgI;/ \ No newline at end of file From edd0851f299c1bc7691c474c6d07d4d64cc6ce81 Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 16:54:00 +0530 Subject: [PATCH 07/28] bad --- src/product-catalog/lenin | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/product-catalog/lenin b/src/product-catalog/lenin index 006103dc6f..a444dfaff9 100644 --- a/src/product-catalog/lenin +++ b/src/product-catalog/lenin @@ -2,6 +2,4 @@ lenin dsvdfbgsnjet efger;gjiewluh wEI NU9 - - -efger';gjeroigf e4wufgI;/ \ No newline at end of file +vgergr \ No newline at end of file From ab873d8ecb3cfc535669eee68c1db2abd43f995c Mon Sep 17 00:00:00 2001 From: Lenin Date: Sat, 26 Jul 2025 11:56:34 +0000 Subject: [PATCH 08/28] [CI]: Update product catalog image tag --- kubernetes/productcatalog/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/productcatalog/deploy.yaml b/kubernetes/productcatalog/deploy.yaml index b42b3df637..1fbc55f361 100644 --- a/kubernetes/productcatalog/deploy.yaml +++ b/kubernetes/productcatalog/deploy.yaml @@ -31,7 +31,7 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: productcatalogservice - image: abhishekf5/product-catalog:13134113508 + image: leninfitfreak/product-catalog:16539317979 imagePullPolicy: IfNotPresent ports: From 9567630c60ca9149e9686b9677ba0a648f9773e1 Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 17:31:30 +0530 Subject: [PATCH 09/28] newchange4 --- src/product-catalog/lenin | 1 + 1 file changed, 1 insertion(+) diff --git a/src/product-catalog/lenin b/src/product-catalog/lenin index 69aa0af2c2..4375d3b0a9 100644 --- a/src/product-catalog/lenin +++ b/src/product-catalog/lenin @@ -1 +1,2 @@ lenin +jdsiGJERWIO'GJRW \ No newline at end of file From fa20786f4ef248075b55c84d4ae20be947540e09 Mon Sep 17 00:00:00 2001 From: Lenin Date: Sat, 26 Jul 2025 12:11:42 +0000 Subject: [PATCH 10/28] [CI]: Update product catalog image tag --- kubernetes/productcatalog/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/productcatalog/deploy.yaml b/kubernetes/productcatalog/deploy.yaml index 1fbc55f361..2c78fd771e 100644 --- a/kubernetes/productcatalog/deploy.yaml +++ b/kubernetes/productcatalog/deploy.yaml @@ -31,7 +31,7 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: productcatalogservice - image: leninfitfreak/product-catalog:16539317979 + image: leninfitfreak/product-catalog:16539662831 imagePullPolicy: IfNotPresent ports: From 19cef0ab8c3097c0daac4531db9d33fb72b08c42 Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 23:49:04 +0530 Subject: [PATCH 11/28] lenin --- .github/workflows/ci.yaml | 52 +++++---------------------------------- 1 file changed, 6 insertions(+), 46 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index db60f361ab..6c9f9f90aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,147 +10,111 @@ on: workflow_dispatch: permissions: - contents: write # Required for pushing changes + contents: write env: - DOCKER_IMAGE: leninfitfreak/product-catalog + DOCKER_IMAGE: your-dockerhub-username/product-catalog PRODUCT_CATALOG_PORT: 8088 SERVICE_PATH: src/product-catalog K8S_DEPLOY_FILE: kubernetes/productcatalog/deploy.yaml jobs: - # --------------------- - # 1. Unit Tests - # --------------------- unit-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 with: - go-version-file: ${{ env.SERVICE_PATH }}/go.mod - + go-version: "1.23.x" - name: Install Dependencies working-directory: ${{ env.SERVICE_PATH }} run: | go mod tidy go get -u -t ./... - - name: Run Unit Tests working-directory: ${{ env.SERVICE_PATH }} run: go test ./... -v - # --------------------- - # 2. Code Quality (Staticcheck) - # --------------------- code-quality: runs-on: ubuntu-latest needs: unit-tests steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 with: - go-version-file: ${{ env.SERVICE_PATH }}/go.mod - + go-version: "1.23.x" - name: Install Staticcheck run: go install honnef.co/go/tools/cmd/staticcheck@latest - - name: Run Staticcheck working-directory: ${{ env.SERVICE_PATH }} run: staticcheck ./... - # --------------------- - # 3. Vulnerability Scan (GoSec) - # --------------------- vulnerability-scan: runs-on: ubuntu-latest needs: code-quality steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 with: - go-version-file: ${{ env.SERVICE_PATH }}/go.mod - + go-version: "1.23.x" - name: Install GoSec run: go install github.com/securego/gosec/v2/cmd/gosec@latest - - name: Run GoSec Security Scan working-directory: ${{ env.SERVICE_PATH }} run: gosec ./... - # --------------------- - # 4. Build Binary - # --------------------- build-binary: runs-on: ubuntu-latest needs: vulnerability-scan steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 with: - go-version-file: ${{ env.SERVICE_PATH }}/go.mod - + go-version: "1.23.x" - name: Build Binary working-directory: ${{ env.SERVICE_PATH }} run: | export PRODUCT_CATALOG_PORT=${{ env.PRODUCT_CATALOG_PORT }} go build -o product-catalog . - - uses: actions/upload-artifact@v4 with: name: product-catalog-binary path: ${{ env.SERVICE_PATH }}/product-catalog - # --------------------- - # 5. Docker Build & Push - # --------------------- docker-build-push: runs-on: ubuntu-latest needs: build-binary steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 with: name: product-catalog-binary path: ${{ env.SERVICE_PATH }} - - name: Get Build Version id: vars run: | VERSION=build-${GITHUB_RUN_NUMBER} echo "VERSION=$VERSION" >> $GITHUB_ENV echo "version=$VERSION" >> $GITHUB_OUTPUT - - name: Docker Login uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} - - name: Build and Tag Docker Image working-directory: ${{ env.SERVICE_PATH }} run: | docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest - - name: Push Docker Image run: | docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} docker push ${{ env.DOCKER_IMAGE }}:latest - - uses: actions/upload-artifact@v4 with: name: build-version path: $GITHUB_ENV - # --------------------- - # 6. Update K8s Manifest and Commit - # --------------------- update-k8s: runs-on: ubuntu-latest needs: docker-build-push @@ -158,22 +122,18 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/download-artifact@v4 with: name: build-version path: . - - name: Load Build Version run: | source ./GITHUB_ENV echo "Using VERSION=$VERSION" - - name: Update Kubernetes Manifest run: | sed -i "s|image: .*|image: ${{ env.DOCKER_IMAGE }}:${VERSION}|" ${{ env.K8S_DEPLOY_FILE }} echo "Updated image in ${{ env.K8S_DEPLOY_FILE }} to ${{ env.DOCKER_IMAGE }}:${VERSION}" - - name: Commit and Push Updated Manifest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 623d513e31b500146f0a53ed7919be1356f31728 Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 23:56:34 +0530 Subject: [PATCH 12/28] getting sleep --- .github/workflows/ci.yaml | 58 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6c9f9f90aa..ea630a9b33 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,7 +10,7 @@ on: workflow_dispatch: permissions: - contents: write + contents: write # Required for pushing changes env: DOCKER_IMAGE: your-dockerhub-username/product-catalog @@ -19,102 +19,154 @@ env: K8S_DEPLOY_FILE: kubernetes/productcatalog/deploy.yaml jobs: + # --------------------- + # 1. Unit Tests + # --------------------- unit-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: "1.23.x" + check-latest: true + + - name: Check Go Version + run: go version + - name: Install Dependencies working-directory: ${{ env.SERVICE_PATH }} run: | go mod tidy go get -u -t ./... + - name: Run Unit Tests working-directory: ${{ env.SERVICE_PATH }} run: go test ./... -v + # --------------------- + # 2. Code Quality (Staticcheck) + # --------------------- code-quality: runs-on: ubuntu-latest needs: unit-tests steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: "1.23.x" + check-latest: true + + - name: Check Go Version + run: go version + - name: Install Staticcheck run: go install honnef.co/go/tools/cmd/staticcheck@latest + - name: Run Staticcheck working-directory: ${{ env.SERVICE_PATH }} run: staticcheck ./... + # --------------------- + # 3. Vulnerability Scan (GoSec) + # --------------------- vulnerability-scan: runs-on: ubuntu-latest needs: code-quality steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: "1.23.x" + check-latest: true + + - name: Check Go Version + run: go version + - name: Install GoSec run: go install github.com/securego/gosec/v2/cmd/gosec@latest + - name: Run GoSec Security Scan working-directory: ${{ env.SERVICE_PATH }} run: gosec ./... + # --------------------- + # 4. Build Binary + # --------------------- build-binary: runs-on: ubuntu-latest needs: vulnerability-scan steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: "1.23.x" + check-latest: true + + - name: Check Go Version + run: go version + - name: Build Binary working-directory: ${{ env.SERVICE_PATH }} run: | export PRODUCT_CATALOG_PORT=${{ env.PRODUCT_CATALOG_PORT }} go build -o product-catalog . + - uses: actions/upload-artifact@v4 with: name: product-catalog-binary path: ${{ env.SERVICE_PATH }}/product-catalog + # --------------------- + # 5. Docker Build & Push + # --------------------- docker-build-push: runs-on: ubuntu-latest needs: build-binary steps: - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 with: name: product-catalog-binary path: ${{ env.SERVICE_PATH }} + - name: Get Build Version id: vars run: | VERSION=build-${GITHUB_RUN_NUMBER} echo "VERSION=$VERSION" >> $GITHUB_ENV echo "version=$VERSION" >> $GITHUB_OUTPUT + - name: Docker Login uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} + - name: Build and Tag Docker Image working-directory: ${{ env.SERVICE_PATH }} run: | docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest + - name: Push Docker Image run: | docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} docker push ${{ env.DOCKER_IMAGE }}:latest + - uses: actions/upload-artifact@v4 with: name: build-version path: $GITHUB_ENV + # --------------------- + # 6. Update K8s Manifest and Commit + # --------------------- update-k8s: runs-on: ubuntu-latest needs: docker-build-push @@ -122,18 +174,22 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/download-artifact@v4 with: name: build-version path: . + - name: Load Build Version run: | source ./GITHUB_ENV echo "Using VERSION=$VERSION" + - name: Update Kubernetes Manifest run: | sed -i "s|image: .*|image: ${{ env.DOCKER_IMAGE }}:${VERSION}|" ${{ env.K8S_DEPLOY_FILE }} echo "Updated image in ${{ env.K8S_DEPLOY_FILE }} to ${{ env.DOCKER_IMAGE }}:${VERSION}" + - name: Commit and Push Updated Manifest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 0353d529d5dc4c447ae690267ebddf5df240f739 Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 00:07:39 +0530 Subject: [PATCH 13/28] over --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ea630a9b33..94aecc0d9c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -199,3 +199,5 @@ jobs: git add ${{ env.K8S_DEPLOY_FILE }} git commit -m "Update image tag to ${VERSION} [CI SKIP]" || echo "No changes to commit" git push origin main + + From bef69d5f71422096755cff43dd2415ff6991acbd Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 00:11:21 +0530 Subject: [PATCH 14/28] game over --- .github/workflows/ci.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94aecc0d9c..7c2c073530 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.23.x" + go-version: "1.24.x" check-latest: true - name: Check Go Version @@ -56,7 +56,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.23.x" + go-version: "1.24.x" check-latest: true - name: Check Go Version @@ -80,7 +80,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.23.x" + go-version: "1.24.x" check-latest: true - name: Check Go Version @@ -104,7 +104,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.23.x" + go-version: "1.24.x" check-latest: true - name: Check Go Version From c70e1c84a372f1a269df98447faf380bca7329f2 Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 00:15:59 +0530 Subject: [PATCH 15/28] get ready --- .github/workflows/ci.yaml | 129 ++++++++------------------------------ 1 file changed, 26 insertions(+), 103 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7c2c073530..a76132ceb8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,7 +10,7 @@ on: workflow_dispatch: permissions: - contents: write # Required for pushing changes + contents: write env: DOCKER_IMAGE: your-dockerhub-username/product-catalog @@ -24,6 +24,7 @@ jobs: # --------------------- unit-tests: runs-on: ubuntu-latest + continue-on-error: true steps: - uses: actions/checkout@v4 @@ -35,22 +36,34 @@ jobs: - name: Check Go Version run: go version + - name: Ensure go.sum + working-directory: ${{ env.SERVICE_PATH }} + run: go mod tidy + + - name: Cache Go Modules + uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Install Dependencies working-directory: ${{ env.SERVICE_PATH }} - run: | - go mod tidy - go get -u -t ./... + run: go get -u -t ./... - name: Run Unit Tests working-directory: ${{ env.SERVICE_PATH }} run: go test ./... -v # --------------------- - # 2. Code Quality (Staticcheck) + # 2. Code Quality # --------------------- code-quality: runs-on: ubuntu-latest - needs: unit-tests + needs: [unit-tests] + if: always() + continue-on-error: true steps: - uses: actions/checkout@v4 @@ -70,11 +83,13 @@ jobs: run: staticcheck ./... # --------------------- - # 3. Vulnerability Scan (GoSec) + # 3. Vulnerability Scan # --------------------- vulnerability-scan: runs-on: ubuntu-latest - needs: code-quality + needs: [code-quality] + if: always() + continue-on-error: true steps: - uses: actions/checkout@v4 @@ -98,7 +113,8 @@ jobs: # --------------------- build-binary: runs-on: ubuntu-latest - needs: vulnerability-scan + needs: [vulnerability-scan] + if: always() steps: - uses: actions/checkout@v4 @@ -107,97 +123,4 @@ jobs: go-version: "1.24.x" check-latest: true - - name: Check Go Version - run: go version - - - name: Build Binary - working-directory: ${{ env.SERVICE_PATH }} - run: | - export PRODUCT_CATALOG_PORT=${{ env.PRODUCT_CATALOG_PORT }} - go build -o product-catalog . - - - uses: actions/upload-artifact@v4 - with: - name: product-catalog-binary - path: ${{ env.SERVICE_PATH }}/product-catalog - - # --------------------- - # 5. Docker Build & Push - # --------------------- - docker-build-push: - runs-on: ubuntu-latest - needs: build-binary - steps: - - uses: actions/checkout@v4 - - - uses: actions/download-artifact@v4 - with: - name: product-catalog-binary - path: ${{ env.SERVICE_PATH }} - - - name: Get Build Version - id: vars - run: | - VERSION=build-${GITHUB_RUN_NUMBER} - echo "VERSION=$VERSION" >> $GITHUB_ENV - echo "version=$VERSION" >> $GITHUB_OUTPUT - - - name: Docker Login - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: Build and Tag Docker Image - working-directory: ${{ env.SERVICE_PATH }} - run: | - docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . - docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest - - - name: Push Docker Image - run: | - docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} - docker push ${{ env.DOCKER_IMAGE }}:latest - - - uses: actions/upload-artifact@v4 - with: - name: build-version - path: $GITHUB_ENV - - # --------------------- - # 6. Update K8s Manifest and Commit - # --------------------- - update-k8s: - runs-on: ubuntu-latest - needs: docker-build-push - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/download-artifact@v4 - with: - name: build-version - path: . - - - name: Load Build Version - run: | - source ./GITHUB_ENV - echo "Using VERSION=$VERSION" - - - name: Update Kubernetes Manifest - run: | - sed -i "s|image: .*|image: ${{ env.DOCKER_IMAGE }}:${VERSION}|" ${{ env.K8S_DEPLOY_FILE }} - echo "Updated image in ${{ env.K8S_DEPLOY_FILE }} to ${{ env.DOCKER_IMAGE }}:${VERSION}" - - - name: Commit and Push Updated Manifest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git config user.name "lenin" - git config user.email "leninfitfreak@gmail.com" - git add ${{ env.K8S_DEPLOY_FILE }} - git commit -m "Update image tag to ${VERSION} [CI SKIP]" || echo "No changes to commit" - git push origin main - - + - name: Chec From 8d948998b1af43e578746269414b4108c256dd10 Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 00:19:09 +0530 Subject: [PATCH 16/28] work over --- .github/workflows/ci.yaml | 95 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a76132ceb8..e868554141 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -123,4 +123,97 @@ jobs: go-version: "1.24.x" check-latest: true - - name: Chec + - name: Check Go Version + run: go version + + - name: Build Binary + working-directory: ${{ env.SERVICE_PATH }} + run: | + export PRODUCT_CATALOG_PORT=${{ env.PRODUCT_CATALOG_PORT }} + go build -o product-catalog . + + - uses: actions/upload-artifact@v4 + with: + name: product-catalog-binary + path: ${{ env.SERVICE_PATH }}/product-catalog + + # --------------------- + # 5. Docker Build & Push + # --------------------- + docker-build-push: + runs-on: ubuntu-latest + needs: [build-binary] + if: always() + steps: + - uses: actions/checkout@v4 + + - uses: actions/download-artifact@v4 + with: + name: product-catalog-binary + path: ${{ env.SERVICE_PATH }} + + - name: Get Build Version + id: vars + run: | + VERSION=build-${GITHUB_RUN_NUMBER} + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "version=$VERSION" >> $GITHUB_OUTPUT + + - name: Docker Login + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and Tag Docker Image + working-directory: ${{ env.SERVICE_PATH }} + run: | + docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . + docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest + + - name: Push Docker Image + run: | + docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} + docker push ${{ env.DOCKER_IMAGE }}:latest + + - uses: actions/upload-artifact@v4 + with: + name: build-version + path: $GITHUB_ENV + + # --------------------- + # 6. Update Kubernetes Manifest + # --------------------- + update-k8s: + runs-on: ubuntu-latest + needs: [docker-build-push] + if: always() + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/download-artifact@v4 + with: + name: build-version + path: . + + - name: Load Build Version + run: | + source ./GITHUB_ENV + echo "Using VERSION=$VERSION" + + - name: Update Kubernetes Manifest + run: | + sed -i "s|image: .*|image: ${{ env.DOCKER_IMAGE }}:${VERSION}|" ${{ env.K8S_DEPLOY_FILE }} + echo "Updated image in ${{ env.K8S_DEPLOY_FILE }} to ${{ env.DOCKER_IMAGE }}:${VERSION}" + + - name: Commit and Push Updated Manifest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config user.name "lenin" + git config user.email "leninfitfreak@gmail.com" + git add ${{ env.K8S_DEPLOY_FILE }} + git commit -m "Update image tag to ${VERSION} [CI SKIP]" || echo "No changes to commit" + git push origin main \ No newline at end of file From 84116025cf761c0499cfb49154a24633d65be03b Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 00:25:49 +0530 Subject: [PATCH 17/28] work over2 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e868554141..e12de30afd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ permissions: contents: write env: - DOCKER_IMAGE: your-dockerhub-username/product-catalog + DOCKER_IMAGE: leninfitfreak/product-catalog PRODUCT_CATALOG_PORT: 8088 SERVICE_PATH: src/product-catalog K8S_DEPLOY_FILE: kubernetes/productcatalog/deploy.yaml From ff39902696c1a197c6ffc63d50969d28f582bf2b Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 00:33:24 +0530 Subject: [PATCH 18/28] work over3 --- .github/workflows/ci.yaml | 80 ++++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 38 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e12de30afd..26dcda9846 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -141,45 +141,49 @@ jobs: # 5. Docker Build & Push # --------------------- docker-build-push: - runs-on: ubuntu-latest - needs: [build-binary] - if: always() - steps: - - uses: actions/checkout@v4 - - - uses: actions/download-artifact@v4 - with: - name: product-catalog-binary - path: ${{ env.SERVICE_PATH }} - - - name: Get Build Version - id: vars - run: | - VERSION=build-${GITHUB_RUN_NUMBER} - echo "VERSION=$VERSION" >> $GITHUB_ENV - echo "version=$VERSION" >> $GITHUB_OUTPUT + runs-on: ubuntu-latest + needs: [build-binary] + if: always() + steps: + - uses: actions/checkout@v4 + + - uses: actions/download-artifact@v4 + with: + name: product-catalog-binary + path: ${{ env.SERVICE_PATH }} + + - name: Get Build Version + id: vars + run: | + VERSION=build-${GITHUB_RUN_NUMBER} + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "version=$VERSION" >> $GITHUB_OUTPUT + + - name: Docker Login + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and Tag Docker Image + working-directory: ${{ env.SERVICE_PATH }} + run: | + docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . + docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest + + - name: Push Docker Image + run: | + docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} + docker push ${{ env.DOCKER_IMAGE }}:latest + + - name: Save Build Version + run: echo "${{ steps.vars.outputs.version }}" > build-version.txt + + - uses: actions/upload-artifact@v4 + with: + name: build-version + path: build-version.txt - - name: Docker Login - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: Build and Tag Docker Image - working-directory: ${{ env.SERVICE_PATH }} - run: | - docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . - docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest - - - name: Push Docker Image - run: | - docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} - docker push ${{ env.DOCKER_IMAGE }}:latest - - - uses: actions/upload-artifact@v4 - with: - name: build-version - path: $GITHUB_ENV # --------------------- # 6. Update Kubernetes Manifest From 76a75a41172f3795a9e0f8f1f549d022a3405da4 Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 00:36:01 +0530 Subject: [PATCH 19/28] work over4 --- .github/workflows/ci.yaml | 88 +++++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 26dcda9846..abfaf4d321 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -141,49 +141,48 @@ jobs: # 5. Docker Build & Push # --------------------- docker-build-push: - runs-on: ubuntu-latest - needs: [build-binary] - if: always() - steps: - - uses: actions/checkout@v4 - - - uses: actions/download-artifact@v4 - with: - name: product-catalog-binary - path: ${{ env.SERVICE_PATH }} - - - name: Get Build Version - id: vars - run: | - VERSION=build-${GITHUB_RUN_NUMBER} - echo "VERSION=$VERSION" >> $GITHUB_ENV - echo "version=$VERSION" >> $GITHUB_OUTPUT - - - name: Docker Login - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: Build and Tag Docker Image - working-directory: ${{ env.SERVICE_PATH }} - run: | - docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . - docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest - - - name: Push Docker Image - run: | - docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} - docker push ${{ env.DOCKER_IMAGE }}:latest - - - name: Save Build Version - run: echo "${{ steps.vars.outputs.version }}" > build-version.txt - - - uses: actions/upload-artifact@v4 - with: - name: build-version - path: build-version.txt + runs-on: ubuntu-latest + needs: [build-binary] + if: always() + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: product-catalog-binary + path: ${{ env.SERVICE_PATH }} + + - name: Get Build Version + id: vars + run: | + VERSION=build-${GITHUB_RUN_NUMBER} + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "version=$VERSION" >> $GITHUB_OUTPUT + + - name: Docker Login + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and Tag Docker Image + working-directory: ${{ env.SERVICE_PATH }} + run: | + docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . + docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest + + - name: Push Docker Image + run: | + docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} + docker push ${{ env.DOCKER_IMAGE }}:latest + + - name: Save Build Version + run: echo "${{ steps.vars.outputs.version }}" > build-version.txt + + - uses: actions/upload-artifact@v4 + with: + name: build-version + path: build-version.txt # --------------------- # 6. Update Kubernetes Manifest @@ -204,7 +203,8 @@ jobs: - name: Load Build Version run: | - source ./GITHUB_ENV + VERSION=$(cat build-version.txt) + echo "VERSION=$VERSION" >> $GITHUB_ENV echo "Using VERSION=$VERSION" - name: Update Kubernetes Manifest @@ -220,4 +220,4 @@ jobs: git config user.email "leninfitfreak@gmail.com" git add ${{ env.K8S_DEPLOY_FILE }} git commit -m "Update image tag to ${VERSION} [CI SKIP]" || echo "No changes to commit" - git push origin main \ No newline at end of file + git push origin main From 8ef10c757bd5d706f4f10af6355087a2472e5f5d Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 19:10:51 +0000 Subject: [PATCH 20/28] Update image tag to build-17 [CI SKIP] --- kubernetes/productcatalog/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/productcatalog/deploy.yaml b/kubernetes/productcatalog/deploy.yaml index 2c78fd771e..26f149608a 100644 --- a/kubernetes/productcatalog/deploy.yaml +++ b/kubernetes/productcatalog/deploy.yaml @@ -31,7 +31,7 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: productcatalogservice - image: leninfitfreak/product-catalog:16539662831 + image: leninfitfreak/product-catalog:build-17 imagePullPolicy: IfNotPresent ports: From 3e7b1e0e973a11dfc39269c4ace37a49af5d62ec Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 00:45:53 +0530 Subject: [PATCH 21/28] work over5 --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index abfaf4d321..2aabae7d8f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -156,8 +156,11 @@ jobs: id: vars run: | VERSION=build-${GITHUB_RUN_NUMBER} + RUN_ID_TAG=run-${GITHUB_RUN_ID} echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "RUN_ID_TAG=$RUN_ID_TAG" >> $GITHUB_ENV echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "runid=$RUN_ID_TAG" >> $GITHUB_OUTPUT - name: Docker Login uses: docker/login-action@v2 @@ -169,11 +172,13 @@ jobs: working-directory: ${{ env.SERVICE_PATH }} run: | docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . + docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.runid }} docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest - name: Push Docker Image run: | docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} + docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.runid }} docker push ${{ env.DOCKER_IMAGE }}:latest - name: Save Build Version From c312916c03950a322a996c72808ae7571ced1337 Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 19:22:13 +0000 Subject: [PATCH 22/28] Update image tag to build-18 [CI SKIP] --- kubernetes/productcatalog/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/productcatalog/deploy.yaml b/kubernetes/productcatalog/deploy.yaml index 26f149608a..da71dedea4 100644 --- a/kubernetes/productcatalog/deploy.yaml +++ b/kubernetes/productcatalog/deploy.yaml @@ -31,7 +31,7 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: productcatalogservice - image: leninfitfreak/product-catalog:build-17 + image: leninfitfreak/product-catalog:build-18 imagePullPolicy: IfNotPresent ports: From 4d00a2815a009dd900691407315fa7d3cc08364f Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 01:00:01 +0530 Subject: [PATCH 23/28] work over7 --- .github/workflows/ci.yaml | 48 ++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2aabae7d8f..d82b1d45b5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -152,15 +152,12 @@ jobs: name: product-catalog-binary path: ${{ env.SERVICE_PATH }} - - name: Get Build Version + - name: Set Docker Tag id: vars run: | - VERSION=build-${GITHUB_RUN_NUMBER} - RUN_ID_TAG=run-${GITHUB_RUN_ID} - echo "VERSION=$VERSION" >> $GITHUB_ENV - echo "RUN_ID_TAG=$RUN_ID_TAG" >> $GITHUB_ENV - echo "version=$VERSION" >> $GITHUB_OUTPUT - echo "runid=$RUN_ID_TAG" >> $GITHUB_OUTPUT + TAG=run-${GITHUB_RUN_ID} + echo "TAG=$TAG" >> $GITHUB_ENV + echo "tag=$TAG" >> $GITHUB_OUTPUT - name: Docker Login uses: docker/login-action@v2 @@ -168,26 +165,19 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} - - name: Build and Tag Docker Image + - name: Build and Push Docker Image working-directory: ${{ env.SERVICE_PATH }} run: | - docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} . - docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.runid }} - docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} ${{ env.DOCKER_IMAGE }}:latest + docker build -t ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.tag }} . + docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.tag }} - - name: Push Docker Image - run: | - docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.version }} - docker push ${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.runid }} - docker push ${{ env.DOCKER_IMAGE }}:latest - - - name: Save Build Version - run: echo "${{ steps.vars.outputs.version }}" > build-version.txt + - name: Save Docker Tag + run: echo "${{ steps.vars.outputs.tag }}" > docker-tag.txt - uses: actions/upload-artifact@v4 with: - name: build-version - path: build-version.txt + name: docker-tag + path: docker-tag.txt # --------------------- # 6. Update Kubernetes Manifest @@ -203,19 +193,19 @@ jobs: - uses: actions/download-artifact@v4 with: - name: build-version + name: docker-tag path: . - - name: Load Build Version + - name: Load Docker Tag run: | - VERSION=$(cat build-version.txt) - echo "VERSION=$VERSION" >> $GITHUB_ENV - echo "Using VERSION=$VERSION" + TAG=$(cat docker-tag.txt) + echo "TAG=$TAG" >> $GITHUB_ENV + echo "Using TAG=$TAG" - name: Update Kubernetes Manifest run: | - sed -i "s|image: .*|image: ${{ env.DOCKER_IMAGE }}:${VERSION}|" ${{ env.K8S_DEPLOY_FILE }} - echo "Updated image in ${{ env.K8S_DEPLOY_FILE }} to ${{ env.DOCKER_IMAGE }}:${VERSION}" + sed -i "s|image: .*|image: ${{ env.DOCKER_IMAGE }}:${TAG}|" ${{ env.K8S_DEPLOY_FILE }} + echo "Updated image in ${{ env.K8S_DEPLOY_FILE }} to ${{ env.DOCKER_IMAGE }}:${TAG}" - name: Commit and Push Updated Manifest env: @@ -224,5 +214,5 @@ jobs: git config user.name "lenin" git config user.email "leninfitfreak@gmail.com" git add ${{ env.K8S_DEPLOY_FILE }} - git commit -m "Update image tag to ${VERSION} [CI SKIP]" || echo "No changes to commit" + git commit -m "Update image tag to ${TAG} [CI SKIP]" || echo "No changes to commit" git push origin main From dda7c3d8f32c4ed00322deaacd067f3ae87219ea Mon Sep 17 00:00:00 2001 From: lenin Date: Sat, 26 Jul 2025 19:35:53 +0000 Subject: [PATCH 24/28] Update image tag to run-16543167632 [CI SKIP] --- kubernetes/productcatalog/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/productcatalog/deploy.yaml b/kubernetes/productcatalog/deploy.yaml index da71dedea4..b1558ea5b7 100644 --- a/kubernetes/productcatalog/deploy.yaml +++ b/kubernetes/productcatalog/deploy.yaml @@ -31,7 +31,7 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: productcatalogservice - image: leninfitfreak/product-catalog:build-18 + image: leninfitfreak/product-catalog:run-16543167632 imagePullPolicy: IfNotPresent ports: From 842c73b943eb8f9eb121f3aa3a0f6317538c3b0c Mon Sep 17 00:00:00 2001 From: Leninfitfreak Date: Sun, 27 Jul 2025 15:37:04 +0530 Subject: [PATCH 25/28] Update deploy.yaml service account From ccddb9a9d1b4d26400252e0c5e1a5eab03aa58bb Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 10:11:41 +0000 Subject: [PATCH 26/28] Update image tag to run-16549947340 [CI SKIP] --- kubernetes/productcatalog/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/productcatalog/deploy.yaml b/kubernetes/productcatalog/deploy.yaml index b1558ea5b7..dd9b59ac17 100644 --- a/kubernetes/productcatalog/deploy.yaml +++ b/kubernetes/productcatalog/deploy.yaml @@ -31,7 +31,7 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: productcatalogservice - image: leninfitfreak/product-catalog:run-16543167632 + image: leninfitfreak/product-catalog:run-16549947340 imagePullPolicy: IfNotPresent ports: From 0e6085c72f5ac9b51f23685f835b6f07aa2454d7 Mon Sep 17 00:00:00 2001 From: Leninfitfreak Date: Sun, 27 Jul 2025 16:02:19 +0530 Subject: [PATCH 27/28] Create sa-rbac.yaml rbac --- kubernetes/productcatalog/sa-rbac.yaml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 kubernetes/productcatalog/sa-rbac.yaml diff --git a/kubernetes/productcatalog/sa-rbac.yaml b/kubernetes/productcatalog/sa-rbac.yaml new file mode 100644 index 0000000000..29b42f0867 --- /dev/null +++ b/kubernetes/productcatalog/sa-rbac.yaml @@ -0,0 +1,29 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: opentelemetry-demo + namespace: default +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: opentelemetry-demo-role + namespace: default +rules: + - apiGroups: [""] + resources: ["pods", "services", "configmaps", "endpoints"] + verbs: ["get", "list", "watch"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: opentelemetry-demo-rolebinding + namespace: default +subjects: + - kind: ServiceAccount + name: opentelemetry-demo + namespace: default +roleRef: + kind: Role + name: opentelemetry-demo-role + apiGroup: rbac.authorization.k8s.io From fa9985b12cb3f461b4522e80ecdcb4c908f847f5 Mon Sep 17 00:00:00 2001 From: lenin Date: Sun, 27 Jul 2025 10:37:06 +0000 Subject: [PATCH 28/28] Update image tag to run-16550157252 [CI SKIP] --- kubernetes/productcatalog/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/productcatalog/deploy.yaml b/kubernetes/productcatalog/deploy.yaml index dd9b59ac17..6b68749d9c 100644 --- a/kubernetes/productcatalog/deploy.yaml +++ b/kubernetes/productcatalog/deploy.yaml @@ -31,7 +31,7 @@ spec: serviceAccountName: opentelemetry-demo containers: - name: productcatalogservice - image: leninfitfreak/product-catalog:run-16549947340 + image: leninfitfreak/product-catalog:run-16550157252 imagePullPolicy: IfNotPresent ports: