Skip to content

Instantly share code, notes, and snippets.

View AndrienkoAleksandr's full-sized avatar

Oleksandr Andriienko AndrienkoAleksandr

View GitHub Profile
1010 mkdir test
1011 cd test
1012 git init
1013 git remote add origin https://github.com/eclipse/che-operator.git
1014 git config core.sparsecheckout true
1015 echo "finisht/*" >> .git/info/sparse-checkout
1016 echo "deploy/*" >> .git/info/sparse-checkout
1017 cat .git/info/sparse-checkout
1018 git pull --depth=1 origin master
1019 ls
ime="2020-09-08T08:37:28Z" level=info msg="state.Key.Namespace=marketplace state.Key.Name=upstream-community-operators state.State=TRANSIENT_FAILURE"
time="2020-09-08T08:38:20Z" level=info msg="state.Key.Namespace=olm state.Key.Name=eclipse-che-preview-kubernetes state.State=CONNECTING"
time="2020-09-08T08:38:21Z" level=info msg="state.Key.Namespace=olm state.Key.Name=eclipse-che-preview-kubernetes state.State=TRANSIENT_FAILURE"
time="2020-09-08T08:38:25Z" level=info msg="state.Key.Namespace=marketplace state.Key.Name=eclipse-che-preview-kubernetes state.State=CONNECTING"
time="2020-09-08T08:38:26Z" level=info msg="state.Key.Namespace=marketplace state.Key.Name=eclipse-che-preview-kubernetes state.State=TRANSIENT_FAILURE"
time="2020-09-08T08:39:22Z" level=info msg="state.Key.Namespace=marketplace state.Key.Name=upstream-community-operators state.State=CONNECTING"
time="2020-09-08T08:39:23Z" level=info msg="state.Key.Namespace=marketplace state.Key.Name=upstream-community-operators state.State=TRANSIENT_FAILUR
crc start --log-level debug
DEBU CodeReady Containers version: 1.15.0+e317bed
DEBU OpenShift version: 4.5.7 (embedded in binary)
DEBU Total memory of system is 33086705664 bytes
DEBU No new version available. The latest version is 1.15.0
INFO Checking if oc binary is cached
DEBU Running '/home/user/.crc/bin/oc/oc version --client'
DEBU oc binary already cached
INFO Checking if podman remote binary is cached
DEBU Currently podman remote is not supported
--- /home/user/GoWorkSpace/src/github.com/eclipse/che-operator-eclipse/olm/eclipse-che-preview-kubernetes/deploy/olm-catalog/eclipse-che-preview-kubernetes/7.16.2/eclipse-che-preview-kubernetes.v7.16.2.clusterserviceversion.yaml 2020-08-06 16:07:37.443253061 +0300
+++ /home/user/GoWorkSpace/src/github.com/eclipse/che-operator-eclipse/olm/eclipse-che-preview-kubernetes/deploy/olm-catalog/eclipse-che-preview-kubernetes/7.17.0/eclipse-che-preview-kubernetes.v7.17.0.clusterserviceversion.yaml 2020-08-06 16:12:51.531540328 +0300
@@ -51,66 +51,66 @@
capabilities: Seamless Upgrades
categories: Developer Tools
certified: "false"
- containerImage: quay.io/eclipse/che-operator@sha256:226e154d359d0b6fb54306a463a79fc4874fecb3f6b316cf25d24e2bddb0a62a
- createdAt: "2020-08-06T12:48:18Z"
+ containerImage: quay.io/eclipse/che-operator:7.17.0
+ createdAt: "2020-08-06T13:12:51Z"
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: |-
[
{
"apiVersion": "org.eclipse.che/v1",
"kind": "CheCluster",
"metadata": {
diff --git a/build/scripts/sync-che-operator-to-crw-operator.sh b/build/scripts/sync-che-operator-to-crw-operator.sh
index aac07c5..3031891 100755
--- a/build/scripts/sync-che-operator-to-crw-operator.sh
+++ b/build/scripts/sync-che-operator-to-crw-operator.sh
@@ -115,24 +115,24 @@ pushd "${SOURCEDIR}" >/dev/null
["CHE_FLAVOR"]="codeready"
["CONSOLE_LINK_NAME"]="workspaces"
- ["IMAGE_default_che_server"]="${CRW_SERVER_IMAGE}"
- ["IMAGE_default_plugin_registry"]="${CRW_PLUGINREGISTRY_IMAGE}"
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: "[\n {\n \"apiVersion\": \"org.eclipse.che/v1\",\n \"kind\"\
: \"CheCluster\",\n \"metadata\": {\n \"name\": \"eclipse-che\"\n \
\ },\n \"spec\": {\n \"k8s\": {\n \"ingressDomain\": \"\"\
,\n \"tlsSecretName\": \"\"\n },\n \"server\": {\n \
\ \"cheImageTag\": \"\",\n \"devfileRegistryImage\": \"\",\n\
\ \"pluginRegistryImage\": \"\",\n \"tlsSupport\": true,\n\
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: |-
[
{
"apiVersion": "org.eclipse.che/v1",
"kind": "CheCluster",
"metadata": {
metadata:
name: wksp-uu0r
projects:
- name: php-web-simple
source:
location: 'https://github.com/che-samples/web-php-simple'
type: git
attributes:
persistVolumes: 'false'
components:
kubectl get pods -n che
kubectl port-forward che-blahb1321 8000 -n che
export CHE_POD=$(kubectl get pods -n che -o json | jq -r -j '.items[].metadata|select(.name | startswith("che")).name') && kubectl port-forward ${CHE_POD} 8000 -n che