diff --git a/deployments/pvc-copy.yaml b/deployments/pvc-copy.yaml deleted file mode 100644 index d0b01f8..0000000 --- a/deployments/pvc-copy.yaml +++ /dev/null @@ -1,44 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: pvc-copy-deployment - labels: - app: pvc-copy -spec: - replicas: 1 - selector: - matchLabels: - app: pvc-copy - template: - metadata: - labels: - app: pvc-copy - spec: - containers: - - name: pvc-copy - image: 192.168.1.149:8443/jwp-build:latest - volumeMounts: - - mountPath: /var/original-pvc - name: original-pvc - - mountPath: /var/new-pvc - name: new-pvc - volumes: - - name: original-pvc - persistentVolumeClaim: - claimName: kanboard-pvc - - name: new-pvc - persistentVolumeClaim: - claimName: kanboard-pvc-nfs ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: kanboard-pvc-nfs -spec: - accessModes: - - ReadWriteOnce - storageClassName: nfs-client - resources: - requests: - storage: 2Gi \ No newline at end of file diff --git a/deployments/test-branch-pipeline.yaml b/deployments/test-branch-pipeline.yaml deleted file mode 100644 index 9e14fa4..0000000 --- a/deployments/test-branch-pipeline.yaml +++ /dev/null @@ -1,41 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: test-branch-pipeline-deployment - namespace: j7s-ci - labels: - app: test-branch-pipeline -spec: - replicas: 1 - selector: - matchLabels: - app: test-branch-pipeline - template: - metadata: - labels: - app: test-branch-pipeline - spec: - volumes: - - name: ssh-volume - secret: - secretName: git-credentials - containers: - - name: branch-pipeline - image: 192.168.1.149:8443/j7s_branch_trigger:0.2 - command: ["/bin/bash", "-c"] - volumeMounts: - - mountPath: /ssh-volume - name: ssh-volume - env: - - name: J7S_REPO - value: "ssh://git.jpace121.net:2222/tests/job-test" - - name: J7S_URL - value: http://el-test-pipeline-listener.j7s-ci.svc.cluster.local:8080 - args: - - | - cp -r /ssh-volume ~/.ssh - chmod 700 ~/.ssh - chmod -R 400 ~/.ssh/* - - j7s_branch_trigger \ No newline at end of file diff --git a/cluster-v2-design.md b/docs/cluster-v2-design.md similarity index 100% rename from cluster-v2-design.md rename to docs/cluster-v2-design.md diff --git a/notes.md b/docs/original-notes.md similarity index 100% rename from notes.md rename to docs/original-notes.md diff --git a/images/Dockerfile_curl b/images/Dockerfile_curl deleted file mode 100644 index 3c830ef..0000000 --- a/images/Dockerfile_curl +++ /dev/null @@ -1,6 +0,0 @@ -FROM docker.io/debian:bullseye-slim - -RUN apt update -y && \ - apt install -y \ - curl \ - jq \ No newline at end of file diff --git a/jobs/cache-check.yaml b/jobs/cache-check.yaml deleted file mode 100644 index 71d899c..0000000 --- a/jobs/cache-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: cache-check -spec: - template: - spec: - containers: - - name: cache-check - image: docker.io/debian:bullseye-slim - env: - - name: http_proxy - value: http://squid-service:3128 - command: ["bash"] - args: - - "-c" - - >- - apt update -y && - apt upgrade -y - restartPolicy: Never - backoffLimit: 1 \ No newline at end of file diff --git a/jobs/nfs-test.yaml b/jobs/nfs-test.yaml deleted file mode 100644 index 4decc64..0000000 --- a/jobs/nfs-test.yaml +++ /dev/null @@ -1,33 +0,0 @@ -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: test-claim -spec: - storageClassName: nfs-client - accessModes: - - ReadWriteMany - resources: - requests: - storage: 1Mi ---- -kind: Pod -apiVersion: v1 -metadata: - name: test-pod -spec: - containers: - - name: test-pod - image: busybox:stable - command: - - "/bin/sh" - args: - - "-c" - - "touch /mnt/SUCCESS && exit 0 || exit 1" - volumeMounts: - - name: nfs-pvc - mountPath: "/mnt" - restartPolicy: "Never" - volumes: - - name: nfs-pvc - persistentVolumeClaim: - claimName: test-claim diff --git a/jobs/test-trigger-check.yaml b/jobs/test-trigger-check.yaml deleted file mode 100644 index 64fa690..0000000 --- a/jobs/test-trigger-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -# Keeping this as an example, but the test pipeline was changed -# at one point to show interoperability with PRs. ---- -apiVersion: batch/v1 -kind: Job -metadata: - name: test-trigger-check - namespace: j7s-ci -spec: - template: - spec: - containers: - - name: test-trigger-check - image: 192.168.1.149:8443/curl:latest - command: ["bash"] - args: - - "-c" - - >- - curl -X POST http://el-test-pipeline-listener.j7s-ci.svc.cluster.local:8080 -H 'Content-Type: application/json' -d '{}' - restartPolicy: Never - backoffLimit: 0 \ No newline at end of file diff --git a/scripts/Dockerfile_flask b/scripts/Dockerfile_flask deleted file mode 100644 index 37190b3..0000000 --- a/scripts/Dockerfile_flask +++ /dev/null @@ -1,11 +0,0 @@ -FROM docker.io/debian:bullseye-slim - -RUN apt update -y && \ - apt install -y python3-flask && \ - mkdir /app - -COPY test.py /app/test.py - -WORKDIR /app -ENV FLASK_APP=test -CMD ["flask", "run", "--host", "0.0.0.0"] \ No newline at end of file diff --git a/scripts/bootstrap-flux.bash b/scripts/bootstrap-flux.bash deleted file mode 100644 index b029df9..0000000 --- a/scripts/bootstrap-flux.bash +++ /dev/null @@ -1,5 +0,0 @@ -flux bootstrap git \ - --url=ssh://git.jpace121.net:2222/cd/flux-infra \ - --branch=master \ - --author-name=flux \ - --path=cluster diff --git a/scripts/debug-pod.yaml b/scripts/debug-pod.yaml deleted file mode 100644 index 54fb138..0000000 --- a/scripts/debug-pod.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: jimmy-debug-pod - namespace: j7s-ci -spec: - containers: - - image: docker.io/debian:bullseye-slim - name: jimmy-debug-pod - command: ["tail"] - args: ["-f", "/dev/null"] - volumeMounts: - - mountPath: /pvc - name: pvc-mount - volumes: - - name: pvc-mount - persistentVolumeClaim: - claimName: pvc-3244e44354 \ No newline at end of file diff --git a/scripts/issue-body.json b/scripts/issue-body.json deleted file mode 100644 index 54ab290..0000000 --- a/scripts/issue-body.json +++ /dev/null @@ -1,10 +0,0 @@ -{ -"projectId" : 9 , -"title" : "Hi From Curl" , -"description" : "This was posted from curl." , -"confidential" : false , -"milestoneIds" : [ ] , -"fields" : { -"Type" : "Build Failure" -} -} diff --git a/scripts/registry/list-images.sh b/scripts/registry/list-images.sh deleted file mode 100644 index aec3ec0..0000000 --- a/scripts/registry/list-images.sh +++ /dev/null @@ -1,2 +0,0 @@ -# See all images in cluster registry. -curl -k -X GET -u $USERNAME:$PASSWORD https://192.168.1.128:8443/v2/_catalog diff --git a/scripts/registry/list-tags.sh b/scripts/registry/list-tags.sh deleted file mode 100644 index 1a04f05..0000000 --- a/scripts/registry/list-tags.sh +++ /dev/null @@ -1 +0,0 @@ -skopeo list-tags docker://192.168.1.149:8443/simple-ros diff --git a/scripts/test.py b/scripts/test.py deleted file mode 100644 index 3c8df86..0000000 --- a/scripts/test.py +++ /dev/null @@ -1,22 +0,0 @@ -from flask import Flask -from flask import request -import logging - -app = Flask(__name__) - -logger = logging.getLogger('j7s-app') -logger.setLevel(logging.INFO) -handler = logging.StreamHandler() -logger.addHandler(handler) - - -@app.route("/", defaults={"path": ""}, methods = ['POST', 'GET']) -@app.route('/', methods=['POST', 'GET']) -def root(path): - logger.info("Path") - logger.info(path) - logger.info("Headers:") - logger.info(request.headers) - logger.info("Body:") - logger.info(request.json) - return "

Hello

" diff --git a/scripts/test_onedev_issue.bash b/scripts/test_onedev_issue.bash deleted file mode 100644 index 5c70aaa..0000000 --- a/scripts/test_onedev_issue.bash +++ /dev/null @@ -1,4 +0,0 @@ -curl -u tekton:$TEKTON_API_KEY \ - -d@issue-body.json \ - -H "Content-Type: application/json" \ - https://git.jpace121.net/~api/issues diff --git a/serviceaccounts/tekton-bot.yaml b/serviceaccounts/tekton-bot.yaml deleted file mode 100644 index 8014128..0000000 --- a/serviceaccounts/tekton-bot.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: tekton-bot - namespace: j7s-ci -secrets: - - name: git-credentials ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: tekton-bot-eventlistener-binding - namespace: j7s-ci -subjects: -- kind: ServiceAccount - name: tekton-bot -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: tekton-triggers-eventlistener-roles ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: tekton-bot-eventlistener-clusterbinding -subjects: -- kind: ServiceAccount - name: tekton-bot - namespace: j7s-ci -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: tekton-triggers-eventlistener-clusterroles \ No newline at end of file diff --git a/triggers/test-trigger.yaml b/triggers/test-trigger.yaml deleted file mode 100644 index cce8e82..0000000 --- a/triggers/test-trigger.yaml +++ /dev/null @@ -1,59 +0,0 @@ ---- -apiVersion: triggers.tekton.dev/v1beta1 -kind: EventListener -metadata: - name: test-pipeline-listener - namespace: j7s-ci -spec: - serviceAccountName: tekton-bot - triggers: - - name: test-pipeline-trigger - bindings: - - ref: test-pipeline-binding - template: - ref: test-pipeline-template - resources: - kubernetesResource: - serviceType: ClusterIP ---- -apiVersion: triggers.tekton.dev/v1beta1 -kind: TriggerBinding -metadata: - name: test-pipeline-binding - namespace: j7s-ci -spec: - params: - - name: hash - value: $(body.hash) ---- -apiVersion: triggers.tekton.dev/v1beta1 -kind: TriggerTemplate -metadata: - name: test-pipeline-template - namespace: j7s-ci -spec: - params: - - name: hash - resourcetemplates: - - apiVersion: tekton.dev/v1beta1 - kind: PipelineRun - metadata: - generateName: test-pipeline- - spec: - pipelineRef: - name: test-report-pipeline - params: - - name: hash - value: "$(tt.params.hash)" - workspaces: - - name: shared-data - volumeClaimTemplate: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi - - name: git-credentials - secret: - secretName: git-credentials \ No newline at end of file