Skip to content

Commit

Permalink
Merge pull request #113 from dciangot/fixlint0.0.3
Browse files Browse the repository at this point in the history
Working update:
- opentelemetry
- vendoring update
- home folder separated by job
  • Loading branch information
dciangot authored Nov 13, 2023
2 parents a1d8806 + bf18dab commit d0253b2
Show file tree
Hide file tree
Showing 310 changed files with 66,469 additions and 148 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.interlink
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY .. .
RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -o bin/interlink cmd/interlink/main.go

# Deploy the application binary into a lean image
FROM gcr.io/distroless/base-debian11 AS build-release-stage
FROM gcr.io/distroless/base-debian11:latest AS build-release-stage

WORKDIR /

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.refresh-token
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.10

RUN pip3 install requests
RUN pip3 install --no-cache-dir requests==2.31.0

COPY ../docker/scripts/refresh.py /opt/refresh.py

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.vk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY .. .
RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -o bin/vk

# Deploy the application binary into a lean image
FROM ubuntu:latest AS build-release-stage
FROM ubuntu:22.04 AS build-release-stage

WORKDIR /

Expand Down
103 changes: 103 additions & 0 deletions examples/api-calls/create_req.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
[{
"pod": {
"metadata": {
"name": "test-pod-cfg-cowsay-dciangot",
"namespace": "vk",
"uid": "2ee53299-7980-4016-8fef-a045282aecd1",
"resourceVersion": "120436",
"creationTimestamp": "2023-11-08T11:42:42Z",
"annotations": {}
},
"spec": {
"volumes": [{
"name": "kube-api-access-pvhbn",
"projected": {
"sources": [{
"serviceAccountToken": {
"expirationSeconds": 3607,
"path": "token"
}
}, {
"configMap": {
"name": "kube-root-ca.crt",
"items": [{
"key": "ca.crt",
"path": "ca.crt"
}]
}
}, {
"downwardAPI": {
"items": [{
"path": "namespace",
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.namespace"
}
}]
}
}],
"defaultMode": 420
}
}],
"containers": [{
"name": "cowsayo",
"image": "docker://ghcr.io/grycap/cowsay",
"command": ["/bin/sh"],
"args": ["-c", " ls "],
"resources": {},
"volumeMounts": [{
"name": "kube-api-access-pvhbn",
"readOnly": true,
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
}],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always"
}],
"restartPolicy": "Never",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"nodeSelector": {
"kubernetes.io/hostname": "test-vk"
},
"serviceAccountName": "default",
"serviceAccount": "default",
"nodeName": "test-vk",
"securityContext": {},
"schedulerName": "default-scheduler",
"tolerations": [{
"key": "virtual-node.interlink/no-schedule",
"operator": "Exists"
}, {
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}, {
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}],
"priority": 0,
"enableServiceLinks": true,
"preemptionPolicy": "PreemptLowerPriority"
},
"status": {
"phase": "Pending",
"conditions": [{
"type": "PodScheduled",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2023-11-08T11:42:42Z"
}],
"qosClass": "BestEffort"
}
},
"container": [{
"name": "",
"configMaps": null,
"secrets": null,
"emptyDirs": null
}]
}]
126 changes: 126 additions & 0 deletions examples/api-calls/delete_req.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
[{
"metadata": {
"name": "test-pod-cfg-cowsay-dciangot",
"namespace": "vk",
"uid": "11718a45-258a-44e8-8feb-695057429fb5",
"resourceVersion": "121903",
"creationTimestamp": "2023-11-08T12:12:40Z",
"deletionTimestamp": "2023-11-08T12:13:25Z",
"deletionGracePeriodSeconds": 30,
"annotations": {}
},
"spec": {
"volumes": [{
"name": "kube-api-access-rwqbr",
"projected": {
"sources": [{
"serviceAccountToken": {
"expirationSeconds": 3607,
"path": "token"
}
}, {
"configMap": {
"name": "kube-root-ca.crt",
"items": [{
"key": "ca.crt",
"path": "ca.crt"
}]
}
}, {
"downwardAPI": {
"items": [{
"path": "namespace",
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.namespace"
}
}]
}
}],
"defaultMode": 420
}
}],
"containers": [{
"name": "cowsayo",
"image": "docker://ghcr.io/grycap/cowsay",
"command": ["/bin/sh"],
"args": ["-c", " ls "],
"resources": {},
"volumeMounts": [{
"name": "kube-api-access-rwqbr",
"readOnly": true,
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
}],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always"
}],
"restartPolicy": "Never",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"nodeSelector": {
"kubernetes.io/hostname": "test-vk"
},
"serviceAccountName": "default",
"serviceAccount": "default",
"nodeName": "test-vk",
"securityContext": {},
"schedulerName": "default-scheduler",
"tolerations": [{
"key": "virtual-node.interlink/no-schedule",
"operator": "Exists"
}, {
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}, {
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}],
"priority": 0,
"enableServiceLinks": true,
"preemptionPolicy": "PreemptLowerPriority"
},
"status": {
"phase": "Succeeded",
"conditions": [{
"type": "Initialized",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": null
}, {
"type": "Ready",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": null
}, {
"type": "PodScheduled",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": null
}],
"reason": "VKProviderPodDeleted",
"hostIP": "127.0.0.1",
"podIP": "127.0.0.1",
"podIPs": [{
"ip": "127.0.0.1"
}],
"startTime": "2023-11-08T12:12:40Z",
"containerStatuses": [{
"name": "cowsayo",
"state": {
"running": {
"startedAt": "2023-11-08T12:12:45Z"
}
},
"lastState": {},
"ready": true,
"restartCount": 1,
"image": "docker://ghcr.io/grycap/cowsay",
"imageID": ""
}]
}
}]
15 changes: 15 additions & 0 deletions examples/api-calls/logs_req.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"Namespace": "vk",
"PodUID": "11718a45-258a-44e8-8feb-695057429fb5",
"PodName": "test-pod-cfg-cowsay-dciangot",
"ContainerName": "cowsayo",
"Opts": {
"Tail": 0,
"Bytes": 0,
"Timestamps": false,
"Follow": false,
"Previous": false,
"SinceSeconds": 0,
"SinceTime": "0001-01-01T00:00:00Z"
}
}
120 changes: 120 additions & 0 deletions examples/api-calls/status_req.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
[{
"metadata": {
"name": "test-pod-cfg-cowsay-dciangot",
"namespace": "vk",
"uid": "6c03dd86-2168-4807-949d-090b9489517f",
"resourceVersion": "121477",
"creationTimestamp": "2023-11-08T12:04:16Z",
"annotations": {}
},
"spec": {
"volumes": [{
"name": "kube-api-access-f99hf",
"projected": {
"sources": [{
"serviceAccountToken": {
"expirationSeconds": 3607,
"path": "token"
}
}, {
"configMap": {
"name": "kube-root-ca.crt",
"items": [{
"key": "ca.crt",
"path": "ca.crt"
}]
}
}, {
"downwardAPI": {
"items": [{
"path": "namespace",
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.namespace"
}
}]
}
}],
"defaultMode": 420
}
}],
"containers": [{
"name": "cowsayo",
"image": "docker://ghcr.io/grycap/cowsay",
"command": ["/bin/sh"],
"args": ["-c", " ls "],
"resources": {},
"volumeMounts": [{
"name": "kube-api-access-f99hf",
"readOnly": true,
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
}],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always"
}],
"restartPolicy": "Never",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"nodeSelector": {
"kubernetes.io/hostname": "test-vk"
},
"serviceAccountName": "default",
"serviceAccount": "default",
"nodeName": "test-vk",
"securityContext": {},
"schedulerName": "default-scheduler",
"tolerations": [{
"key": "virtual-node.interlink/no-schedule",
"operator": "Exists"
}, {
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}, {
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}],
"priority": 0,
"enableServiceLinks": true,
"preemptionPolicy": "PreemptLowerPriority"
},
"status": {
"phase": "Running",
"conditions": [{
"type": "Initialized",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": null
}, {
"type": "Ready",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": null
}, {
"type": "PodScheduled",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": null
}],
"hostIP": "127.0.0.1",
"podIP": "127.0.0.1",
"startTime": "2023-11-08T12:04:16Z",
"containerStatuses": [{
"name": "cowsayo",
"state": {
"running": {
"startedAt": "2023-11-08T12:04:20Z"
}
},
"lastState": {},
"ready": true,
"restartCount": 1,
"image": "docker://ghcr.io/grycap/cowsay",
"imageID": ""
}]
}
}]
Loading

0 comments on commit d0253b2

Please sign in to comment.