From e8bde6f265b065a32096a7769036a6a1a43a914a Mon Sep 17 00:00:00 2001 From: Renzo Rojas Silva Date: Thu, 19 Oct 2023 15:48:07 -0400 Subject: [PATCH] chore: stop testing Go 1.18 to sabe disk space --- go/skaffold.yaml | 9 ---- go/test/k8s-test-go113.yaml | 91 ------------------------------------- go/test/k8s-test-go114.yaml | 91 ------------------------------------- go/test/k8s-test-go115.yaml | 91 ------------------------------------- go/test/k8s-test-go116.yaml | 91 ------------------------------------- go/test/k8s-test-go117.yaml | 91 ------------------------------------- go/test/k8s-test-go118.yaml | 91 ------------------------------------- 7 files changed, 555 deletions(-) delete mode 100644 go/test/k8s-test-go113.yaml delete mode 100644 go/test/k8s-test-go114.yaml delete mode 100644 go/test/k8s-test-go115.yaml delete mode 100644 go/test/k8s-test-go116.yaml delete mode 100644 go/test/k8s-test-go117.yaml delete mode 100644 go/test/k8s-test-go118.yaml diff --git a/go/skaffold.yaml b/go/skaffold.yaml index bda83a79..9cf1c731 100644 --- a/go/skaffold.yaml +++ b/go/skaffold.yaml @@ -38,14 +38,6 @@ profiles: # integration: set of `skaffold debug`-like integration tests - name: integration patches: - - op: add - path: /build/artifacts/- - value: - image: go118app - context: test/goapp - docker: - buildArgs: - GOVERSION: 1.18 - op: add path: /build/artifacts/- value: @@ -65,7 +57,6 @@ profiles: deploy: kubectl: manifests: - - test/k8s-test-go118.yaml - test/k8s-test-go119.yaml - test/k8s-test-go120.yaml diff --git a/go/test/k8s-test-go113.yaml b/go/test/k8s-test-go113.yaml deleted file mode 100644 index ab4be2f3..00000000 --- a/go/test/k8s-test-go113.yaml +++ /dev/null @@ -1,91 +0,0 @@ -# This test approximates `skaffold debug` for a go app. -apiVersion: v1 -kind: Pod -metadata: - name: go113pod - labels: - app: hello - protocol: dlv - runtime: go113 -spec: - containers: - - name: go113app - image: go113app - args: - - /dbg/go/bin/dlv - - exec - - --log - - --headless - - --continue - - --accept-multiclient - # listen on 0.0.0.0 as it is exposed as a service - - --listen=0.0.0.0:56286 - - --api-version=2 - - ./app - ports: - - containerPort: 8080 - - containerPort: 56286 - name: dlv - readinessProbe: - httpGet: - path: / - port: 8080 - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - initContainers: - - image: skaffold-debug-go - name: install-go-support - resources: {} - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - volumes: - - emptyDir: {} - name: go-debugging-support - ---- -apiVersion: v1 -kind: Service -metadata: - name: hello-dlv-go113 -spec: - ports: - - name: http - port: 8080 - protocol: TCP - - name: dlv - port: 56286 - protocol: TCP - selector: - app: hello - protocol: dlv - runtime: go113 - ---- -apiVersion: batch/v1 -kind: Job -metadata: - name: connect-to-go113 - labels: - project: container-debug-support - type: integration-test -spec: - ttlSecondsAfterFinished: 10 - backoffLimit: 1 - template: - spec: - restartPolicy: Never - initContainers: - - name: wait-for-go113pod - image: kubectl - command: [sh, -c, "while ! curl -s hello-dlv-go113:8080 2>/dev/null; do echo waiting for app; sleep 1; done"] - containers: - - name: dlv-to-go113 - image: skaffold-debug-go - command: [sh, -c, ' - (echo bt; echo exit -c) > init.txt; - set -x; - /duct-tape/go/bin/dlv connect --init init.txt hello-dlv-go113:56286'] - - diff --git a/go/test/k8s-test-go114.yaml b/go/test/k8s-test-go114.yaml deleted file mode 100644 index 9012b435..00000000 --- a/go/test/k8s-test-go114.yaml +++ /dev/null @@ -1,91 +0,0 @@ -# This test approximates `skaffold debug` for a go app. -apiVersion: v1 -kind: Pod -metadata: - name: go114pod - labels: - app: hello - protocol: dlv - runtime: go114 -spec: - containers: - - name: go114app - image: go114app - args: - - /dbg/go/bin/dlv - - exec - - --log - - --headless - - --continue - - --accept-multiclient - # listen on 0.0.0.0 as it is exposed as a service - - --listen=0.0.0.0:56286 - - --api-version=2 - - ./app - ports: - - containerPort: 8080 - - containerPort: 56286 - name: dlv - readinessProbe: - httpGet: - path: / - port: 8080 - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - initContainers: - - image: skaffold-debug-go - name: install-go-support - resources: {} - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - volumes: - - emptyDir: {} - name: go-debugging-support - ---- -apiVersion: v1 -kind: Service -metadata: - name: hello-dlv-go114 -spec: - ports: - - name: http - port: 8080 - protocol: TCP - - name: dlv - port: 56286 - protocol: TCP - selector: - app: hello - protocol: dlv - runtime: go114 - ---- -apiVersion: batch/v1 -kind: Job -metadata: - name: connect-to-go114 - labels: - project: container-debug-support - type: integration-test -spec: - ttlSecondsAfterFinished: 10 - backoffLimit: 1 - template: - spec: - restartPolicy: Never - initContainers: - - name: wait-for-go114pod - image: kubectl - command: [sh, -c, "while ! curl -s hello-dlv-go114:8080 2>/dev/null; do echo waiting for app; sleep 1; done"] - containers: - - name: dlv-to-go114 - image: skaffold-debug-go - command: [sh, -c, ' - (echo bt; echo exit -c) > init.txt; - set -x; - /duct-tape/go/bin/dlv connect --init init.txt hello-dlv-go114:56286'] - - diff --git a/go/test/k8s-test-go115.yaml b/go/test/k8s-test-go115.yaml deleted file mode 100644 index 988f35b4..00000000 --- a/go/test/k8s-test-go115.yaml +++ /dev/null @@ -1,91 +0,0 @@ -# This test approximates `skaffold debug` for a go app. -apiVersion: v1 -kind: Pod -metadata: - name: go115pod - labels: - app: hello - protocol: dlv - runtime: go115 -spec: - containers: - - name: go115app - image: go115app - args: - - /dbg/go/bin/dlv - - exec - - --log - - --headless - - --continue - - --accept-multiclient - # listen on 0.0.0.0 as it is exposed as a service - - --listen=0.0.0.0:56286 - - --api-version=2 - - ./app - ports: - - containerPort: 8080 - - containerPort: 56286 - name: dlv - readinessProbe: - httpGet: - path: / - port: 8080 - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - initContainers: - - image: skaffold-debug-go - name: install-go-support - resources: {} - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - volumes: - - emptyDir: {} - name: go-debugging-support - ---- -apiVersion: v1 -kind: Service -metadata: - name: hello-dlv-go115 -spec: - ports: - - name: http - port: 8080 - protocol: TCP - - name: dlv - port: 56286 - protocol: TCP - selector: - app: hello - protocol: dlv - runtime: go115 - ---- -apiVersion: batch/v1 -kind: Job -metadata: - name: connect-to-go115 - labels: - project: container-debug-support - type: integration-test -spec: - ttlSecondsAfterFinished: 10 - backoffLimit: 1 - template: - spec: - restartPolicy: Never - initContainers: - - name: wait-for-go115pod - image: kubectl - command: [sh, -c, "while ! curl -s hello-dlv-go115:8080 2>/dev/null; do echo waiting for app; sleep 1; done"] - containers: - - name: dlv-to-go115 - image: skaffold-debug-go - command: [sh, -c, ' - (echo bt; echo exit -c) > init.txt; - set -x; - /duct-tape/go/bin/dlv connect --init init.txt hello-dlv-go115:56286'] - - diff --git a/go/test/k8s-test-go116.yaml b/go/test/k8s-test-go116.yaml deleted file mode 100644 index a54cefa7..00000000 --- a/go/test/k8s-test-go116.yaml +++ /dev/null @@ -1,91 +0,0 @@ -# This test approximates `skaffold debug` for a go app. -apiVersion: v1 -kind: Pod -metadata: - name: go116pod - labels: - app: hello - protocol: dlv - runtime: go116 -spec: - containers: - - name: go116app - image: go116app - args: - - /dbg/go/bin/dlv - - exec - - --log - - --headless - - --continue - - --accept-multiclient - # listen on 0.0.0.0 as it is exposed as a service - - --listen=0.0.0.0:56286 - - --api-version=2 - - ./app - ports: - - containerPort: 8080 - - containerPort: 56286 - name: dlv - readinessProbe: - httpGet: - path: / - port: 8080 - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - initContainers: - - image: skaffold-debug-go - name: install-go-support - resources: {} - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - volumes: - - emptyDir: {} - name: go-debugging-support - ---- -apiVersion: v1 -kind: Service -metadata: - name: hello-dlv-go116 -spec: - ports: - - name: http - port: 8080 - protocol: TCP - - name: dlv - port: 56286 - protocol: TCP - selector: - app: hello - protocol: dlv - runtime: go116 - ---- -apiVersion: batch/v1 -kind: Job -metadata: - name: connect-to-go116 - labels: - project: container-debug-support - type: integration-test -spec: - ttlSecondsAfterFinished: 10 - backoffLimit: 1 - template: - spec: - restartPolicy: Never - initContainers: - - name: wait-for-go116pod - image: kubectl - command: [sh, -c, "while ! curl -s hello-dlv-go116:8080 2>/dev/null; do echo waiting for app; sleep 1; done"] - containers: - - name: dlv-to-go116 - image: skaffold-debug-go - command: [sh, -c, ' - (echo bt; echo exit -c) > init.txt; - set -x; - /duct-tape/go/bin/dlv connect --init init.txt hello-dlv-go116:56286'] - - diff --git a/go/test/k8s-test-go117.yaml b/go/test/k8s-test-go117.yaml deleted file mode 100644 index b45bc81b..00000000 --- a/go/test/k8s-test-go117.yaml +++ /dev/null @@ -1,91 +0,0 @@ -# This test approximates `skaffold debug` for a go app. -apiVersion: v1 -kind: Pod -metadata: - name: go117pod - labels: - app: hello - protocol: dlv - runtime: go117 -spec: - containers: - - name: go117app - image: go117app - args: - - /dbg/go/bin/dlv - - exec - - --log - - --headless - - --continue - - --accept-multiclient - # listen on 0.0.0.0 as it is exposed as a service - - --listen=0.0.0.0:56286 - - --api-version=2 - - ./app - ports: - - containerPort: 8080 - - containerPort: 56286 - name: dlv - readinessProbe: - httpGet: - path: / - port: 8080 - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - initContainers: - - image: skaffold-debug-go - name: install-go-support - resources: {} - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - volumes: - - emptyDir: {} - name: go-debugging-support - ---- -apiVersion: v1 -kind: Service -metadata: - name: hello-dlv-go117 -spec: - ports: - - name: http - port: 8080 - protocol: TCP - - name: dlv - port: 56286 - protocol: TCP - selector: - app: hello - protocol: dlv - runtime: go117 - ---- -apiVersion: batch/v1 -kind: Job -metadata: - name: connect-to-go117 - labels: - project: container-debug-support - type: integration-test -spec: - ttlSecondsAfterFinished: 10 - backoffLimit: 1 - template: - spec: - restartPolicy: Never - initContainers: - - name: wait-for-go117pod - image: kubectl - command: [sh, -c, "while ! curl -s hello-dlv-go117:8080 2>/dev/null; do echo waiting for app; sleep 1; done"] - containers: - - name: dlv-to-go117 - image: skaffold-debug-go - command: [sh, -c, ' - (echo bt; echo exit -c) > init.txt; - set -x; - /duct-tape/go/bin/dlv connect --init init.txt hello-dlv-go117:56286'] - - diff --git a/go/test/k8s-test-go118.yaml b/go/test/k8s-test-go118.yaml deleted file mode 100644 index fd51bdf0..00000000 --- a/go/test/k8s-test-go118.yaml +++ /dev/null @@ -1,91 +0,0 @@ -# This test approximates `skaffold debug` for a go app. -apiVersion: v1 -kind: Pod -metadata: - name: go118pod - labels: - app: hello - protocol: dlv - runtime: go118 -spec: - containers: - - name: go118app - image: go118app - args: - - /dbg/go/bin/dlv - - exec - - --log - - --headless - - --continue - - --accept-multiclient - # listen on 0.0.0.0 as it is exposed as a service - - --listen=0.0.0.0:56286 - - --api-version=2 - - ./app - ports: - - containerPort: 8080 - - containerPort: 56286 - name: dlv - readinessProbe: - httpGet: - path: / - port: 8080 - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - initContainers: - - image: skaffold-debug-go - name: install-go-support - resources: {} - volumeMounts: - - mountPath: /dbg - name: go-debugging-support - volumes: - - emptyDir: {} - name: go-debugging-support - ---- -apiVersion: v1 -kind: Service -metadata: - name: hello-dlv-go118 -spec: - ports: - - name: http - port: 8080 - protocol: TCP - - name: dlv - port: 56286 - protocol: TCP - selector: - app: hello - protocol: dlv - runtime: go118 - ---- -apiVersion: batch/v1 -kind: Job -metadata: - name: connect-to-go118 - labels: - project: container-debug-support - type: integration-test -spec: - ttlSecondsAfterFinished: 10 - backoffLimit: 1 - template: - spec: - restartPolicy: Never - initContainers: - - name: wait-for-go118pod - image: kubectl - command: [sh, -c, "while ! curl -s hello-dlv-go118:8080 2>/dev/null; do echo waiting for app; sleep 1; done"] - containers: - - name: dlv-to-go118 - image: skaffold-debug-go - command: [sh, -c, ' - (echo bt; echo exit -c) > init.txt; - set -x; - /duct-tape/go/bin/dlv connect --init init.txt hello-dlv-go118:56286'] - -