-
Notifications
You must be signed in to change notification settings - Fork 1
/
history.txt
99 lines (98 loc) · 4.39 KB
/
history.txt
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
1 tar -C /usr/local -xzf /home/student/Downloads/go1.17.6.linux-amd64.tar.gz
2 vim /root/.bash_profile
3 source /root/.bash_profile
4 mkdir -p $GOPATH/src/github.com/operator-framework
5 cd $GOPATH/src/github.com/operator-framework
6 git clone https://github.com/operator-framework/operator-sdk
7 cd operator-sdk/
8 git checkout tags/v0.19.4 -b v0.19.4
9 make tidy
10 dnf install make -y
11 rm /home/student/Downloads/go1.17.6.linux-amd64.tar.gz
12 make tidy
13 make install
14 CD
15 cd
16 operator-sdk new web --kind=Web --api-version=web.operator.io/v1 --type=ansible
17 cd web/
18 gedit roles/web/tasks/main.yml
19 operator-sdk build quay.io/anandpavithran/web --image-builder podman
20 ls
21 ls deploy/
22 vim deploy/operator.yaml
23 lab operators-review start
24 lab operators-review finish
25 oc login https://api.ocp4.example.com:6443 -u admin -p redhat
26 oc get clusterrole clusteradmin -o yaml > deploy/role.yaml
27 oc get clusterrole cluster-admin -o yaml > deploy/role.yaml
28 vim deploy/role.yaml
29 oc get project default
30 oc get project default -o yaml
31 oc get project default -o yaml > deploy/project.yaml
32 vim deploy/project.yaml
33 operator-sdk generate csv --csv-version 1.0.0 --interactive=true
34 ls deploy/
35 cp deploy/role.yaml deploy/olm-catalog/web/manifests/
36 cp deploy/project.yaml deploy/olm-catalog/web/manifests/
37 operator-sdk bundle create --generate-only
38 ls
39 podman build -f bundle.Dockerfile -t quay.io/anandpavithran/web-bundle:1.0.0 .
40 podman images
41 podman login quay.io -u anandpavithran -p r1e2d3h4a5t6
42 podman push quay.io/anandpavithran/web-bundle:1.0.0
43 opm alpha bundle validate --tag quay.io/anandpavithran/web-bundle:1.0.0 --image-builder podman
44 podman images
45 opm alpha bundle validate --tag quay.io/anandpavithran/web-bundle:1.0.0 --image-builder podman --skip-tls
46 opm index add --bundles quay.io/anandpavithran/web-bundle:1.0.0 --tag quay.io/anandpavithran/operator-registry:0.1-RC --build-tool podman
47 podman push quay.io/anandpavithran/operator-registry:0.1-RC
48 ls
49 gedit /root/catalogsource.yaml
50 oc get catalogsource -n openshift-marketplace
51 oc create -f /root/catalogsource.yaml
52 gedit /root/catalogsource.yaml
53 oc create -f /root/catalogsource.yaml
54 oc get catalogsource -n openshift-marketplace
55 oc whoami --show-console
56 oc proejcts
57 oc projects
58 oc project weboperator
59 oc get sa
60 oc get all
61 history
62 history > /root/history.txt
operator-sdk generate packagemanifests --version 1.0.0 --interactive
118 ls deploy/
119 cd deploy/olm-catalog/web/1.0.0/
120 ls
121 cp /root/olm-catalog/web/manifests/role.yaml .
122 cp /root/olm-catalog/web/manifests/role_binding.yaml .
123 ls
124 cd ..
125 cd 1.0.0/
126 cp /root/olm-catalog/web/manifests/service_account.yaml .
127 cd ..
128 ls
129 operator-sdk run packagemanifests --operator-version 1.0.0 --operator-namespace weboperator --olm-namespace openshift-operator-lifecycle-manager
130 ls -l deploy/olm-catalog/web/1.0.0/
131 oc project
132 oc login https://api.ocp4.example.com:6443 -u admin -p redhat
133 operator-sdk run packagemanifests --operator-version 1.0.0 --operator-namespace weboperator --olm-namespace openshift-operator-lifecycle-manager
134 oc new-project weboperator
135 operator-sdk run packagemanifests --operator-version 1.0.0 --operator-namespace weboperator --olm-namespace openshift-operator-lifecycle-manager
136 oc get catalogsource,pod -n openshift-marketplace
137 oc get sub
138 oc project default
139 oc get sub
140 oc get packagemanifest
141 oc get packagemanifest | grep web
142 oc get packagemanifest -n weboperator| grep web
143 oc get web
144 oc project weboperator
145 oc get web
146 oc get packagemanifest -n weboperator| grep web
147 oc get sub
148 operator-sdk pkgman-to-bundle
149 operator-sdk
150 operator-sdk cleanup packagemanifests --operator-version 1.0.0 --operator-namespace weboperator --olm-namespace openshift-operator-lifecycle-manager
151 history > /root/a.txt
~