Remove more old stuff.
This commit is contained in:
parent
42465d90f4
commit
c386292425
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
FROM docker.io/debian:bullseye-slim
|
||||
|
||||
RUN apt update -y && \
|
||||
apt install -y \
|
||||
curl \
|
||||
jq
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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"]
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
flux bootstrap git \
|
||||
--url=ssh://git.jpace121.net:2222/cd/flux-infra \
|
||||
--branch=master \
|
||||
--author-name=flux \
|
||||
--path=cluster
|
||||
|
|
@ -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
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"projectId" : 9 ,
|
||||
"title" : "Hi From Curl" ,
|
||||
"description" : "This was posted from curl." ,
|
||||
"confidential" : false ,
|
||||
"milestoneIds" : [ ] ,
|
||||
"fields" : {
|
||||
"Type" : "Build Failure"
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
@ -1 +0,0 @@
|
|||
skopeo list-tags docker://192.168.1.149:8443/simple-ros
|
||||
|
|
@ -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('/<path:path>', 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 "<p>Hello</p>"
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue