File: available.pass.sh

package info (click to toggle)
scap-security-guide 0.1.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 114,600 kB
  • sloc: xml: 245,305; sh: 84,381; python: 33,093; makefile: 27
file content (35 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash


yum install -y jq

kube_apipath="/kubernetes-api-resources"

mkdir -p "$kube_apipath/apis/pipelines.openshift.io/v1alpha1"

apipath="/apis/pipelines.openshift.io/v1alpha1/gitopsservices?limit=5"

cat << EOF > $kube_apipath$apipath
{
    "apiVersion": "v1",
    "items": [
        {
            "apiVersion": "pipelines.openshift.io/v1alpha1",
            "kind": "GitopsService",
            "metadata": {
                "creationTimestamp": "2022-04-08T00:23:52Z",
                "generation": 1,
                "name": "cluster",
                "resourceVersion": "16440571",
                "uid": "b89af5df-e903-4221-b4ef-45494560a2ee"
            },
            "spec": {}
        }
    ],
    "kind": "List",
    "metadata": {
        "resourceVersion": "",
        "selfLink": ""
    }
}
EOF