From 51ba3275def387c86902687f70cdf257ed75e2dd Mon Sep 17 00:00:00 2001 From: Octopus Date: Mon, 29 Sep 2025 23:49:37 +0000 Subject: [PATCH] Updated Manifests with Release: 2025.09.29.4 Project: update-manifests-kustomize Environment: test --- .../test/base/kustomization.yaml | 13 ++++++ .../test/base/octopub-ingress.yaml | 25 +++++++++++ .../test/base/octopub-products.yaml | 44 +++++++++++++++++++ .../test/production/kustomization.yaml | 28 ++++++++++++ .../test/production/octopub-ingress.yaml | 3 ++ .../octopub-products-deployment.yaml | 3 ++ .../production/octopub-products-service.yaml | 6 +++ .../test/test/kustomization.yaml | 28 ++++++++++++ .../test/test/octopub-ingress.yaml | 3 ++ .../test/octopub-products-deployment.yaml | 3 ++ .../test/test/octopub-products-service.yaml | 6 +++ 11 files changed, 162 insertions(+) create mode 100644 manifests/update-manifests-kustomize-octopub/test/base/kustomization.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/base/octopub-ingress.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/base/octopub-products.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/production/kustomization.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/production/octopub-ingress.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/production/octopub-products-deployment.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/production/octopub-products-service.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/test/kustomization.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/test/octopub-ingress.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/test/octopub-products-deployment.yaml create mode 100644 manifests/update-manifests-kustomize-octopub/test/test/octopub-products-service.yaml diff --git a/manifests/update-manifests-kustomize-octopub/test/base/kustomization.yaml b/manifests/update-manifests-kustomize-octopub/test/base/kustomization.yaml new file mode 100644 index 0000000..b3c7628 --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/base/kustomization.yaml @@ -0,0 +1,13 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- octopub-ingress.yaml +- octopub-products.yaml + +configMapGenerator: + - name: product-service-env-vars + env: variables.properties + +generatorOptions: + disableNameSuffixHash: true \ No newline at end of file diff --git a/manifests/update-manifests-kustomize-octopub/test/base/octopub-ingress.yaml b/manifests/update-manifests-kustomize-octopub/test/base/octopub-ingress.yaml new file mode 100644 index 0000000..78b1a6f --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/base/octopub-ingress.yaml @@ -0,0 +1,25 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: octopub-ingress-products + annotations: +spec: + ingressClassName: nginx + rules: + - host: + http: + paths: + - path: /api/products + pathType: Prefix + backend: + service: + name: octopub-productservice-cluster-ip + port: + name: http-product + - path: /health/products + pathType: Prefix + backend: + service: + name: octopub-productservice-cluster-ip + port: + name: http-product diff --git a/manifests/update-manifests-kustomize-octopub/test/base/octopub-products.yaml b/manifests/update-manifests-kustomize-octopub/test/base/octopub-products.yaml new file mode 100644 index 0000000..4aab226 --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/base/octopub-products.yaml @@ -0,0 +1,44 @@ +apiVersion: v1 +kind: Service +metadata: + name: octopub-productservice-cluster-ip +spec: + type: ClusterIP + selector: + component: productservice + ports: + - port: 8083 + targetPort: 8083 + name: http-product +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: octopub-productservice-deployment +spec: + replicas: 1 + selector: + matchLabels: + component: productservice + template: + metadata: + labels: + component: productservice + spec: + containers: + - name: productservice + image: octopussamples/octopub-products-microservice + ports: + - name: http-product + containerPort: 8083 + env: + - name: MIGRATE_AT_START + valueFrom: + configMapKeyRef: + name: product-service-env-vars + key: MIGRATE_AT_START + - name: COGNITO_DISABLE_AUTH + valueFrom: + configMapKeyRef: + name: product-service-env-vars + key: COGNITO_DISABLE_AUTH \ No newline at end of file diff --git a/manifests/update-manifests-kustomize-octopub/test/production/kustomization.yaml b/manifests/update-manifests-kustomize-octopub/test/production/kustomization.yaml new file mode 100644 index 0000000..85c9b30 --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/production/kustomization.yaml @@ -0,0 +1,28 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ../base + +patches: + - target: + kind: Ingress + name: octopub-ingress-products + path: octopub-ingress.yaml + - target: + kind: Service + name: octopub-products-deployment + path: octopub-products-deployment.yaml + - target: + kind: Deployment + name: octopub-products-service + path: octopub-products-service.yaml + +configMapGenerator: + - name: product-service-env-vars + behavior: merge + env: variables.properties + +images: + - name: octopussamples/octopub-products-microservice + newName: ghcr.io/octopussamples/octopub-products-microservice + newTag: 20250917.431.1 diff --git a/manifests/update-manifests-kustomize-octopub/test/production/octopub-ingress.yaml b/manifests/update-manifests-kustomize-octopub/test/production/octopub-ingress.yaml new file mode 100644 index 0000000..11cdb3b --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/production/octopub-ingress.yaml @@ -0,0 +1,3 @@ +- op: replace + path: /spec/rules/0/host + value: "update-manifests-kustomize-octopub-test" \ No newline at end of file diff --git a/manifests/update-manifests-kustomize-octopub/test/production/octopub-products-deployment.yaml b/manifests/update-manifests-kustomize-octopub/test/production/octopub-products-deployment.yaml new file mode 100644 index 0000000..ff5f183 --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/production/octopub-products-deployment.yaml @@ -0,0 +1,3 @@ +- op: replace + path: /spec/template/spec/containers/0/ports/0/containerPort + value: 8083 \ No newline at end of file diff --git a/manifests/update-manifests-kustomize-octopub/test/production/octopub-products-service.yaml b/manifests/update-manifests-kustomize-octopub/test/production/octopub-products-service.yaml new file mode 100644 index 0000000..5046156 --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/production/octopub-products-service.yaml @@ -0,0 +1,6 @@ +- op: replace + path: /spec/ports/0/port + value: 8083 +- op: replace + path: /spec/ports/0/targetPort + value: 8083 diff --git a/manifests/update-manifests-kustomize-octopub/test/test/kustomization.yaml b/manifests/update-manifests-kustomize-octopub/test/test/kustomization.yaml new file mode 100644 index 0000000..85c9b30 --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/test/kustomization.yaml @@ -0,0 +1,28 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ../base + +patches: + - target: + kind: Ingress + name: octopub-ingress-products + path: octopub-ingress.yaml + - target: + kind: Service + name: octopub-products-deployment + path: octopub-products-deployment.yaml + - target: + kind: Deployment + name: octopub-products-service + path: octopub-products-service.yaml + +configMapGenerator: + - name: product-service-env-vars + behavior: merge + env: variables.properties + +images: + - name: octopussamples/octopub-products-microservice + newName: ghcr.io/octopussamples/octopub-products-microservice + newTag: 20250917.431.1 diff --git a/manifests/update-manifests-kustomize-octopub/test/test/octopub-ingress.yaml b/manifests/update-manifests-kustomize-octopub/test/test/octopub-ingress.yaml new file mode 100644 index 0000000..11cdb3b --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/test/octopub-ingress.yaml @@ -0,0 +1,3 @@ +- op: replace + path: /spec/rules/0/host + value: "update-manifests-kustomize-octopub-test" \ No newline at end of file diff --git a/manifests/update-manifests-kustomize-octopub/test/test/octopub-products-deployment.yaml b/manifests/update-manifests-kustomize-octopub/test/test/octopub-products-deployment.yaml new file mode 100644 index 0000000..ff5f183 --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/test/octopub-products-deployment.yaml @@ -0,0 +1,3 @@ +- op: replace + path: /spec/template/spec/containers/0/ports/0/containerPort + value: 8083 \ No newline at end of file diff --git a/manifests/update-manifests-kustomize-octopub/test/test/octopub-products-service.yaml b/manifests/update-manifests-kustomize-octopub/test/test/octopub-products-service.yaml new file mode 100644 index 0000000..5046156 --- /dev/null +++ b/manifests/update-manifests-kustomize-octopub/test/test/octopub-products-service.yaml @@ -0,0 +1,6 @@ +- op: replace + path: /spec/ports/0/port + value: 8083 +- op: replace + path: /spec/ports/0/targetPort + value: 8083