diff --git a/deploy/artifact-catalog.jd01-v03.json b/deploy/artifact-catalog.jd01-v03.json index 6f25814f..8d8c7681 100644 --- a/deploy/artifact-catalog.jd01-v03.json +++ b/deploy/artifact-catalog.jd01-v03.json @@ -10,7 +10,7 @@ "publish": { "ciPublished": true, "registryVerified": true, - "provenance": "node-ci-artifact:hwlab-jd01-v03-ci-poll-b2d2642b5bf1-rmqzggzz5-collect", + "provenance": "node-ci-artifact:hwlab-jd01-v03-ci-poll-b2d2642b5bf1-collect", "note": "Digest fields were copied from a successful DEV artifact publish report for this source commit." }, "healthContract": { @@ -308,7 +308,7 @@ "runtimeMode": "env-reuse-git-mirror-checkout", "envReuse": true, "envChanged": false, - "codeChanged": true, + "codeChanged": false, "environmentImage": "127.0.0.1:5000/hwlab/hwlab-cloud-web-env:env-5ff41b539190", "environmentDigest": "sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a", "environmentInputHash": "5ff41b539190849e76511ed722a4539f5921622e98eea1444b606475f8ef55aa", @@ -335,9 +335,9 @@ "baseImageReference": "127.0.0.1:5000/hwlab/hwlab-node20-base:20-bookworm-slim", "baseImageDigest": null, "buildArgsHash": "39effb18af665e5e286cca9f84ef2a30f577ad11c9acca098589b7ee37f6950c", - "ciAffected": true, + "ciAffected": false, "ciReason": [ - "code-input-changed" + "component-inputs-unchanged" ], "reuse": { "status": "ready", diff --git a/deploy/gitops/node/jd01/runtime-v03/opencode.yaml b/deploy/gitops/node/jd01/runtime-v03/opencode.yaml index cda367af..e7a8bb87 100644 --- a/deploy/gitops/node/jd01/runtime-v03/opencode.yaml +++ b/deploy/gitops/node/jd01/runtime-v03/opencode.yaml @@ -1,176 +1,259 @@ -apiVersion: v1 -kind: List -items: - - apiVersion: v1 - kind: ServiceAccount - metadata: - name: opencode-server - namespace: hwlab-v03 - labels: - app.kubernetes.io/name: opencode-server - app.kubernetes.io/part-of: hwlab - hwlab.pikastech.local/environment: v03 - hwlab.pikastech.local/profile: v03 - hwlab.pikastech.local/component: opencode - hwlab.pikastech.local/gitops-target: v03 - hwlab.pikastech.local/service-id: opencode-server - hwlab.pikastech.local/source-commit: b2d2642b5bf10854165662f57cb57f56b978cf05 - annotations: - hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: opencode-server-data - namespace: hwlab-v03 - labels: - app.kubernetes.io/name: opencode-server - app.kubernetes.io/part-of: hwlab - hwlab.pikastech.local/environment: v03 - hwlab.pikastech.local/profile: v03 - hwlab.pikastech.local/component: opencode - hwlab.pikastech.local/gitops-target: v03 - hwlab.pikastech.local/service-id: opencode-server - hwlab.pikastech.local/source-commit: b2d2642b5bf10854165662f57cb57f56b978cf05 - annotations: - hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 8Gi - - apiVersion: v1 - kind: Service - metadata: - name: opencode-server - namespace: hwlab-v03 - labels: - app.kubernetes.io/name: opencode-server - app.kubernetes.io/part-of: hwlab - hwlab.pikastech.local/environment: v03 - hwlab.pikastech.local/profile: v03 - hwlab.pikastech.local/component: opencode - hwlab.pikastech.local/gitops-target: v03 - hwlab.pikastech.local/service-id: opencode-server - hwlab.pikastech.local/source-commit: b2d2642b5bf10854165662f57cb57f56b978cf05 - annotations: - hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs - spec: - type: ClusterIP - selector: - app.kubernetes.io/name: opencode-server - app.kubernetes.io/part-of: hwlab - hwlab.pikastech.local/environment: v03 - hwlab.pikastech.local/profile: v03 - ports: - - name: http - port: 4096 - targetPort: http - - apiVersion: apps/v1 - kind: Deployment - metadata: - name: opencode-server - namespace: hwlab-v03 - labels: - app.kubernetes.io/name: opencode-server - app.kubernetes.io/part-of: hwlab - hwlab.pikastech.local/environment: v03 - hwlab.pikastech.local/profile: v03 - hwlab.pikastech.local/component: opencode - hwlab.pikastech.local/gitops-target: v03 - hwlab.pikastech.local/service-id: opencode-server - hwlab.pikastech.local/source-commit: b2d2642b5bf10854165662f57cb57f56b978cf05 - annotations: - hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs - spec: - replicas: 1 - strategy: - type: Recreate - selector: - matchLabels: - app.kubernetes.io/name: opencode-server - app.kubernetes.io/part-of: hwlab - hwlab.pikastech.local/environment: v03 - hwlab.pikastech.local/profile: v03 - template: - metadata: - labels: - app.kubernetes.io/name: opencode-server - app.kubernetes.io/part-of: hwlab - hwlab.pikastech.local/environment: v03 - hwlab.pikastech.local/profile: v03 - hwlab.pikastech.local/component: opencode - hwlab.pikastech.local/gitops-target: v03 - hwlab.pikastech.local/service-id: opencode-server - hwlab.pikastech.local/source-commit: b2d2642b5bf10854165662f57cb57f56b978cf05 - annotations: - hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs - spec: - serviceAccountName: opencode-server - securityContext: - fsGroup: 1000 - fsGroupChangePolicy: OnRootMismatch - containers: - - name: opencode-server - image: 127.0.0.1:5000/hwlab/opencode:1.17.7 - imagePullPolicy: IfNotPresent - command: - - opencode - args: - - serve - - --hostname - - 0.0.0.0 - - --port - - "4096" - workingDir: /workspace - env: - - name: HOME - value: /workspace - - name: XDG_CONFIG_HOME - value: /workspace/.config - - name: XDG_DATA_HOME - value: /workspace/.local/share - - name: OPENCODE_CONFIG_CONTENT - value: '{"autoupdate":false,"share":"disabled"}' - - name: OPENCODE_SERVER_USERNAME - valueFrom: - secretKeyRef: - name: hwlab-v03-opencode-server-auth - key: username - - name: OPENCODE_SERVER_PASSWORD - valueFrom: - secretKeyRef: - name: hwlab-v03-opencode-server-auth - key: password - ports: - - name: http - containerPort: 4096 - startupProbe: - tcpSocket: - port: http - periodSeconds: 5 - failureThreshold: 60 - readinessProbe: - tcpSocket: - port: http - periodSeconds: 10 - failureThreshold: 3 - livenessProbe: - tcpSocket: - port: http - periodSeconds: 20 - failureThreshold: 3 - resources: - requests: - cpu: 100m - memory: 256Mi - limits: - cpu: "1" - memory: 1Gi - volumeMounts: - - name: workspace - mountPath: /workspace - volumes: - - name: workspace - persistentVolumeClaim: - claimName: opencode-server-data +{ + "apiVersion": "v1", + "kind": "List", + "items": [ + { + "apiVersion": "v1", + "kind": "ServiceAccount", + "metadata": { + "name": "opencode-server", + "namespace": "hwlab-v03", + "labels": { + "app.kubernetes.io/name": "opencode-server", + "app.kubernetes.io/part-of": "hwlab", + "hwlab.pikastech.local/environment": "v03", + "hwlab.pikastech.local/profile": "v03", + "hwlab.pikastech.local/component": "opencode", + "hwlab.pikastech.local/gitops-target": "v03", + "hwlab.pikastech.local/service-id": "opencode-server", + "hwlab.pikastech.local/source-commit": "b2d2642b5bf10854165662f57cb57f56b978cf05" + }, + "annotations": { + "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs" + } + } + }, + { + "apiVersion": "v1", + "kind": "PersistentVolumeClaim", + "metadata": { + "name": "opencode-server-data", + "namespace": "hwlab-v03", + "labels": { + "app.kubernetes.io/name": "opencode-server", + "app.kubernetes.io/part-of": "hwlab", + "hwlab.pikastech.local/environment": "v03", + "hwlab.pikastech.local/profile": "v03", + "hwlab.pikastech.local/component": "opencode", + "hwlab.pikastech.local/gitops-target": "v03", + "hwlab.pikastech.local/service-id": "opencode-server", + "hwlab.pikastech.local/source-commit": "b2d2642b5bf10854165662f57cb57f56b978cf05" + }, + "annotations": { + "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs" + } + }, + "spec": { + "accessModes": [ + "ReadWriteOnce" + ], + "resources": { + "requests": { + "storage": "8Gi" + } + } + } + }, + { + "apiVersion": "v1", + "kind": "Service", + "metadata": { + "name": "opencode-server", + "namespace": "hwlab-v03", + "labels": { + "app.kubernetes.io/name": "opencode-server", + "app.kubernetes.io/part-of": "hwlab", + "hwlab.pikastech.local/environment": "v03", + "hwlab.pikastech.local/profile": "v03", + "hwlab.pikastech.local/component": "opencode", + "hwlab.pikastech.local/gitops-target": "v03", + "hwlab.pikastech.local/service-id": "opencode-server", + "hwlab.pikastech.local/source-commit": "b2d2642b5bf10854165662f57cb57f56b978cf05" + }, + "annotations": { + "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs" + } + }, + "spec": { + "type": "ClusterIP", + "selector": { + "app.kubernetes.io/name": "opencode-server", + "app.kubernetes.io/part-of": "hwlab", + "hwlab.pikastech.local/environment": "v03", + "hwlab.pikastech.local/profile": "v03" + }, + "ports": [ + { + "name": "http", + "port": 4096, + "targetPort": "http" + } + ] + } + }, + { + "apiVersion": "apps/v1", + "kind": "Deployment", + "metadata": { + "name": "opencode-server", + "namespace": "hwlab-v03", + "labels": { + "app.kubernetes.io/name": "opencode-server", + "app.kubernetes.io/part-of": "hwlab", + "hwlab.pikastech.local/environment": "v03", + "hwlab.pikastech.local/profile": "v03", + "hwlab.pikastech.local/component": "opencode", + "hwlab.pikastech.local/gitops-target": "v03", + "hwlab.pikastech.local/service-id": "opencode-server", + "hwlab.pikastech.local/source-commit": "b2d2642b5bf10854165662f57cb57f56b978cf05" + }, + "annotations": { + "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs" + } + }, + "spec": { + "replicas": 1, + "strategy": { + "type": "Recreate" + }, + "selector": { + "matchLabels": { + "app.kubernetes.io/name": "opencode-server", + "app.kubernetes.io/part-of": "hwlab", + "hwlab.pikastech.local/environment": "v03", + "hwlab.pikastech.local/profile": "v03" + } + }, + "template": { + "metadata": { + "labels": { + "app.kubernetes.io/name": "opencode-server", + "app.kubernetes.io/part-of": "hwlab", + "hwlab.pikastech.local/environment": "v03", + "hwlab.pikastech.local/profile": "v03", + "hwlab.pikastech.local/component": "opencode", + "hwlab.pikastech.local/gitops-target": "v03", + "hwlab.pikastech.local/service-id": "opencode-server", + "hwlab.pikastech.local/source-commit": "b2d2642b5bf10854165662f57cb57f56b978cf05" + }, + "annotations": { + "hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs" + } + }, + "spec": { + "serviceAccountName": "opencode-server", + "securityContext": { + "fsGroup": 1000, + "fsGroupChangePolicy": "OnRootMismatch" + }, + "containers": [ + { + "name": "opencode-server", + "image": "ghcr.io/anomalyco/opencode:1.17.7", + "imagePullPolicy": "IfNotPresent", + "command": [ + "opencode" + ], + "args": [ + "serve", + "--hostname", + "0.0.0.0", + "--port", + "4096" + ], + "workingDir": "/workspace", + "env": [ + { + "name": "HOME", + "value": "/workspace" + }, + { + "name": "XDG_CONFIG_HOME", + "value": "/workspace/.config" + }, + { + "name": "XDG_DATA_HOME", + "value": "/workspace/.local/share" + }, + { + "name": "OPENCODE_CONFIG_CONTENT", + "value": "{\"autoupdate\":false,\"share\":\"disabled\"}" + }, + { + "name": "OPENCODE_SERVER_USERNAME", + "valueFrom": { + "secretKeyRef": { + "name": "hwlab-v03-opencode-server-auth", + "key": "username" + } + } + }, + { + "name": "OPENCODE_SERVER_PASSWORD", + "valueFrom": { + "secretKeyRef": { + "name": "hwlab-v03-opencode-server-auth", + "key": "password" + } + } + } + ], + "ports": [ + { + "name": "http", + "containerPort": 4096 + } + ], + "startupProbe": { + "tcpSocket": { + "port": "http" + }, + "periodSeconds": 5, + "failureThreshold": 60 + }, + "readinessProbe": { + "tcpSocket": { + "port": "http" + }, + "periodSeconds": 10, + "failureThreshold": 3 + }, + "livenessProbe": { + "tcpSocket": { + "port": "http" + }, + "periodSeconds": 20, + "failureThreshold": 3 + }, + "resources": { + "requests": { + "cpu": "100m", + "memory": "256Mi" + }, + "limits": { + "cpu": "1", + "memory": "1Gi" + } + }, + "volumeMounts": [ + { + "name": "workspace", + "mountPath": "/workspace" + } + ] + } + ], + "volumes": [ + { + "name": "workspace", + "persistentVolumeClaim": { + "claimName": "opencode-server-data" + } + } + ] + } + } + } + } + ] +}