ci: Don't build kubernetes olm bundle (#1217)
* Don't build kubernetes olm bundle Signed-off-by: Anatolii Bazko <abazko@redhat.com>pull/1232/head
parent
19ea8ebba4
commit
8407e1b0ea
|
|
@ -19,9 +19,6 @@ if [ -z "${ROOT_PROJECT_DIR}" ]; then
|
|||
ROOT_PROJECT_DIR=$(dirname "$(dirname "${BASE_DIR}")")
|
||||
fi
|
||||
|
||||
CSV_KUBERNETES_NEXT_NEW="bundle/next/eclipse-che-preview-kubernetes/manifests/che-operator.clusterserviceversion.yaml"
|
||||
CSV_KUBERNETES_NEXT_CURRENT=https://raw.githubusercontent.com/eclipse-che/che-operator/main/bundle/next/eclipse-che-preview-kubernetes/manifests/che-operator.clusterserviceversion.yaml
|
||||
|
||||
CSV_OPENSHIFT_NEXT_NEW="bundle/next/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml"
|
||||
CSV_OPENSHIFT_NEXT_CURRENT=https://raw.githubusercontent.com/eclipse-che/che-operator/main/bundle/next/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml
|
||||
|
||||
|
|
@ -42,9 +39,7 @@ compareBundleVersions() {
|
|||
do
|
||||
echo "[INFO] Changed file: $file"
|
||||
|
||||
if [[ "${file}" == "${CSV_KUBERNETES_NEXT_NEW}" ]]; then
|
||||
compareVersions ${ROOT_PROJECT_DIR}/$CSV_KUBERNETES_NEXT_NEW $CSV_KUBERNETES_NEXT_CURRENT
|
||||
elif [[ "${file}" == "${CSV_OPENSHIFT_NEXT_NEW}" ]]; then
|
||||
if [[ "${file}" == "${CSV_OPENSHIFT_NEXT_NEW}" ]]; then
|
||||
compareVersions ${ROOT_PROJECT_DIR}/$CSV_OPENSHIFT_NEXT_NEW $CSV_OPENSHIFT_NEXT_CURRENT
|
||||
elif [[ "${file}" == "${CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW}" ]]; then
|
||||
compareVersions ${ROOT_PROJECT_DIR}/$CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW $CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_CURRENT
|
||||
|
|
@ -71,8 +66,6 @@ compareVersions() {
|
|||
|
||||
checkBundleVersions() {
|
||||
versionWithoutNext="$${nextVersion%.next*}"
|
||||
CSV_KUBERNETES_NEXT_NEW_VERSION=$(yq -r ".spec.version" ${CSV_KUBERNETES_NEXT_NEW})
|
||||
CSV_KUBERNETES_NEXT_NEW_VERSION=${CSV_KUBERNETES_NEXT_NEW_VERSION%.next*}
|
||||
|
||||
CSV_OPENSHIFT_NEXT_NEW_VERSION=$(yq -r ".spec.version" ${CSV_OPENSHIFT_NEXT_NEW})
|
||||
CSV_OPENSHIFT_NEXT_NEW_VERSION=${CSV_OPENSHIFT_NEXT_NEW_VERSION%.next*}
|
||||
|
|
@ -80,18 +73,14 @@ checkBundleVersions() {
|
|||
CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW_VERSION=$(yq -r ".spec.version" ${CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW})
|
||||
CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW_VERSION=${CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW_VERSION%.next*}
|
||||
|
||||
if [[ ${CSV_KUBERNETES_NEXT_NEW_VERSION} != ${CSV_OPENSHIFT_NEXT_NEW_VERSION} ]] \
|
||||
|| [[ ${CSV_KUBERNETES_NEXT_NEW_VERSION} != ${CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW_VERSION} ]] \
|
||||
|| [[ ${CSV_OPENSHIFT_NEXT_NEW_VERSION} != ${CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW_VERSION} ]]; then
|
||||
|
||||
if [[ ${CSV_OPENSHIFT_NEXT_NEW_VERSION} != ${CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW_VERSION} ]]; then
|
||||
echo "[ERROR] CSVs have different version"
|
||||
echo "[ERROR] Kubernetes next channel CSV version: ${CSV_KUBERNETES_NEXT_NEW_VERSION}"
|
||||
echo "[ERROR] OpenShift next channel CSV version: ${CSV_OPENSHIFT_NEXT_NEW_VERSION}"
|
||||
echo "[ERROR] OpenShift next-all-namespaces channel CSV version: ${CSV_OPENSHIFT_NEXT_ALL_NAMESPACES_NEW_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[INFO] All CSVs have the same version: ${CSV_KUBERNETES_NEXT_NEW_VERSION}"
|
||||
echo "[INFO] All CSVs have the same version: ${CSV_OPENSHIFT_NEXT_NEW_VERSION}"
|
||||
}
|
||||
|
||||
convertVersionToNumber() {
|
||||
|
|
|
|||
|
|
@ -79,11 +79,10 @@ checkCRDs() {
|
|||
|
||||
checkNextOlmBundle() {
|
||||
# files to check
|
||||
local CSV_KUBERNETES="bundle/next/eclipse-che-preview-kubernetes/manifests"
|
||||
local CSV_OPENSHIFT="bundle/next/eclipse-che-preview-openshift/manifests"
|
||||
|
||||
changedFiles=($(cd ${ROOT_PROJECT_DIR}; git diff --name-only))
|
||||
if [[ " ${changedFiles[*]} " =~ $CSV_KUBERNETES ]] || [[ " ${changedFiles[*]} " =~ $CSV_OPENSHIFT ]]; then
|
||||
if [[ " ${changedFiles[*]} " =~ $CSV_OPENSHIFT ]]; then
|
||||
echo "[ERROR] Nighlty bundle is not up to date: ${BASH_REMATCH}"
|
||||
echo "[ERROR] Run 'make update-resources -s' to regenerate next bundle files."
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# Get absolute path for root repo directory from github actions context: https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions
|
||||
export OPERATOR_REPO="${GITHUB_WORKSPACE}"
|
||||
source "${OPERATOR_REPO}"/.github/bin/common.sh
|
||||
|
||||
# Stop execution on any error
|
||||
trap "catchFinish" EXIT SIGINT
|
||||
|
||||
runTest() {
|
||||
"${OPERATOR_REPO}"/olm/testUpdate.sh -p kubernetes -c stable -i quay.io/eclipse/eclipse-che-kubernetes-opm-catalog:test -n ${NAMESPACE}
|
||||
waitEclipseCheDeployed ${LAST_PACKAGE_VERSION}
|
||||
startNewWorkspace
|
||||
waitWorkspaceStart
|
||||
}
|
||||
|
||||
initDefaults
|
||||
initStableTemplates "kubernetes" "stable"
|
||||
runTest
|
||||
|
|
@ -21,22 +21,12 @@ source "${OPERATOR_REPO}"/.github/bin/common.sh
|
|||
# Stop execution on any error
|
||||
trap "catchFinish" EXIT SIGINT
|
||||
|
||||
preparePatchYaml() {
|
||||
cat >${OPERATOR_REPO}/tmp/patch.yaml<<EOF
|
||||
spec:
|
||||
auth:
|
||||
updateAdminPassword: false
|
||||
openShiftoAuth: false
|
||||
EOF
|
||||
}
|
||||
|
||||
runTest() {
|
||||
chectl server:deploy \
|
||||
--batch \
|
||||
--platform minishift \
|
||||
--installer operator \
|
||||
--version ${PREVIOUS_PACKAGE_VERSION} \
|
||||
--che-operator-cr-patch-yaml ${OPERATOR_REPO}/tmp/patch.yaml
|
||||
--version ${PREVIOUS_PACKAGE_VERSION}
|
||||
|
||||
createWorkspace
|
||||
|
||||
|
|
@ -48,7 +38,5 @@ runTest() {
|
|||
}
|
||||
|
||||
initDefaults
|
||||
installYq
|
||||
initStableTemplates "openshift" "stable"
|
||||
preparePatchYaml
|
||||
initStableTemplates "kubernetes" "stable"
|
||||
runTest
|
||||
|
|
|
|||
|
|
@ -43,11 +43,6 @@ jobs:
|
|||
--platform 'openshift' \
|
||||
--catalog-image quay.io/eclipse/eclipse-che-openshift-opm-catalog:next
|
||||
|
||||
${GITHUB_WORKSPACE}/olm/buildCatalog.sh \
|
||||
--channel 'next' \
|
||||
--platform 'kubernetes' \
|
||||
--catalog-image quay.io/eclipse/eclipse-che-kubernetes-opm-catalog:next
|
||||
|
||||
${GITHUB_WORKSPACE}/olm/buildCatalog.sh \
|
||||
--channel 'next-all-namespaces' \
|
||||
--platform 'openshift' \
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
name: Minikube
|
||||
on: pull_request
|
||||
jobs:
|
||||
minikube-e2e:
|
||||
name: Testing latest changes (olm installer)
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install jq
|
||||
run: sudo pip install yq
|
||||
- name: Provision Minikube cluster
|
||||
run: |
|
||||
curl -LO https://storage.googleapis.com/minikube/releases/v1.21.0/minikube-linux-amd64
|
||||
sudo install minikube-linux-amd64 /usr/local/bin/minikube
|
||||
minikube start --memory=6000mb
|
||||
- name: Enable minikube addons
|
||||
run: |
|
||||
minikube addons enable ingress
|
||||
|
||||
# Enable registry and port forward to push images to registry
|
||||
/bin/bash olm/minikube-registry-addon.sh &
|
||||
- name: Install chectl
|
||||
run: bash <(curl -sL https://www.eclipse.org/che/chectl/) --channel=next
|
||||
- name: Run tests
|
||||
run: /bin/bash .github/bin/minikube/test-olm.sh
|
||||
# Run this step even the previous step fail
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: minikube-olm-artifacts
|
||||
path: /tmp/artifacts-che
|
||||
|
|
@ -34,16 +34,10 @@ jobs:
|
|||
curl -LO https://storage.googleapis.com/minikube/releases/v1.21.0/minikube-linux-amd64
|
||||
sudo install minikube-linux-amd64 /usr/local/bin/minikube
|
||||
minikube start --memory=6000mb
|
||||
- name: Enable minikube addons
|
||||
run: |
|
||||
minikube addons enable ingress
|
||||
|
||||
# Enable registry and portfward to push images to registry
|
||||
/bin/bash olm/minikube-registry-addon.sh &
|
||||
- name: Install chectl
|
||||
run: bash <(curl -sL https://www.eclipse.org/che/chectl/) --channel=stable
|
||||
- name: Run tests
|
||||
run: /bin/bash .github/bin/minikube/test-stable-olm-update.sh
|
||||
run: /bin/bash .github/bin/minikube/test-stable-update.sh
|
||||
env:
|
||||
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}"
|
||||
# Run this step even the previous step fail
|
||||
228
Makefile
228
Makefile
|
|
@ -466,30 +466,25 @@ update-roles:
|
|||
|
||||
.PHONY: bundle
|
||||
bundle: generate manifests kustomize ## Generate bundle manifests and metadata, then validate generated files.
|
||||
if [ -z "$(platform)" ]; then
|
||||
echo "[ERROR] You must specify 'platform' macros. For example: `make bundle platform=kubernetes`"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$(channel)" ]; then
|
||||
echo "[ERROR] You must specify 'channel' macros. For example: `make bundle platform=kubernetes channel=next`"
|
||||
echo "[ERROR] 'channel' is not specified."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$(NO_INCREMENT)" ]; then
|
||||
$(MAKE) increment-next-version platform="$${platform}"
|
||||
$(MAKE) increment-next-version
|
||||
fi
|
||||
|
||||
echo "[INFO] Updating OperatorHub bundle for platform '$${platform}'"
|
||||
echo "[INFO] Updating OperatorHub bundle"
|
||||
|
||||
BUNDLE_PATH=$$($(MAKE) getBundlePath platform="$${platform}" channel="$${channel}" -s)
|
||||
BUNDLE_PATH=$$($(MAKE) getBundlePath channel="$${channel}" -s)
|
||||
NEW_CSV=$${BUNDLE_PATH}/manifests/che-operator.clusterserviceversion.yaml
|
||||
newNextBundleVersion=$$(yq -r ".spec.version" "$${NEW_CSV}")
|
||||
echo "[INFO] Creation new next bundle version: $${newNextBundleVersion}"
|
||||
|
||||
createdAtOld=$$(yq -r ".metadata.annotations.createdAt" "$${NEW_CSV}")
|
||||
|
||||
BUNDLE_PACKAGE="eclipse-che-preview-$(platform)"
|
||||
BUNDLE_PACKAGE=$$($(MAKE) getPackageName)
|
||||
BUNDLE_DIR="bundle/"$${channel}"/$${BUNDLE_PACKAGE}"
|
||||
GENERATED_CSV_NAME=$${BUNDLE_PACKAGE}.clusterserviceversion.yaml
|
||||
DESIRED_CSV_NAME=che-operator.clusterserviceversion.yaml
|
||||
|
|
@ -498,7 +493,7 @@ bundle: generate manifests kustomize ## Generate bundle manifests and metadata,
|
|||
|
||||
$(OPERATOR_SDK_BINARY) generate kustomize manifests -q
|
||||
cd config/manager && $(KUSTOMIZE) edit set image quay.io/eclipse/che-operator:next=$(IMG) && cd ../..
|
||||
$(KUSTOMIZE) build config/platforms/$(platform) | \
|
||||
$(KUSTOMIZE) build config/platforms/openshift | \
|
||||
$(OPERATOR_SDK_BINARY) generate bundle \
|
||||
-q --overwrite \
|
||||
--version $${newNextBundleVersion} \
|
||||
|
|
@ -528,125 +523,56 @@ bundle: generate manifests kustomize ## Generate bundle manifests and metadata,
|
|||
mv "$${NEW_CSV}.new" "$${NEW_CSV}"
|
||||
fi
|
||||
|
||||
platformCRD="$${BUNDLE_PATH}/manifests/org_v1_che_crd.yaml"
|
||||
if [ "$${platform}" = "openshift" ]; then
|
||||
yq -riY '.spec.preserveUnknownFields = false' $${platformCRD}
|
||||
fi
|
||||
# todo try to set up header everywhere in the bundle
|
||||
$(MAKE) add-license "$${platformCRD}"
|
||||
CRD="$${BUNDLE_PATH}/manifests/org_v1_che_crd.yaml"
|
||||
yq -riY '.spec.preserveUnknownFields = false' $${CRD}
|
||||
|
||||
if [ -n "$(TAG)" ]; then
|
||||
echo "[INFO] Set tags in next OLM files"
|
||||
sed -ri "s/(.*:\s?)$(RELEASE)([^-])?$$/\1$(TAG)\2/" "$${NEW_CSV}"
|
||||
fi
|
||||
|
||||
# Remove roles for kubernetes bundle
|
||||
YAML_CONTENT=$$(cat "$${NEW_CSV}")
|
||||
if [ $${platform} = "kubernetes" ]; then
|
||||
clusterPermLength=$$(echo "$${YAML_CONTENT}" | yq -r ".spec.install.spec.clusterPermissions[0].rules | length")
|
||||
i=0
|
||||
while [ "$${i}" -lt "$${clusterPermLength}" ]; do
|
||||
apiGroupLength=$$(echo "$${YAML_CONTENT}" | yq -r '.spec.install.spec.clusterPermissions[0].rules['$${i}'].apiGroups | length')
|
||||
if [ "$${apiGroupLength}" -gt 0 ]; then
|
||||
j=0
|
||||
while [ "$${j}" -lt "$${apiGroupLength}" ]; do
|
||||
apiGroup=$$(echo "$${YAML_CONTENT}" | yq -r '.spec.install.spec.clusterPermissions[0].rules['$${i}'].apiGroups['$${j}']')
|
||||
case $${apiGroup} in *openshift.io)
|
||||
# Permissions needed for DevWorkspace
|
||||
if [ "$${apiGroup}" != "route.openshift.io" ] && [ "$${apiGroup}" != oauth.openshift.io ]; then
|
||||
YAML_CONTENT=$$(echo "$${YAML_CONTENT}" | yq -rY 'del(.spec.install.spec.clusterPermissions[0].rules['$${i}'])' )
|
||||
j=$$((j-1))
|
||||
i=$$((i-1))
|
||||
fi
|
||||
break
|
||||
;;
|
||||
esac;
|
||||
j=$$((i+1))
|
||||
done
|
||||
fi
|
||||
i=$$((i+1))
|
||||
done
|
||||
|
||||
permLength=$$(echo "$${YAML_CONTENT}" | yq -r ".spec.install.spec.permissions[0].rules | length")
|
||||
i=0
|
||||
while [ "$${i}" -lt "$${permLength}" ]; do
|
||||
apiGroupLength=$$(echo "$${YAML_CONTENT}" | yq -r '.spec.install.spec.permissions[0].rules['$${i}'].apiGroups | length')
|
||||
if [ "$${apiGroupLength}" -gt 0 ]; then
|
||||
j=0
|
||||
while [ "$${j}" -lt "$${apiGroupLength}" ]; do
|
||||
apiGroup=$$(echo "$${YAML_CONTENT}" | yq -r '.spec.install.spec.permissions[0].rules['$${i}'].apiGroups['$${j}']')
|
||||
case $${apiGroup} in *openshift.io)
|
||||
YAML_CONTENT=$$(echo "$${YAML_CONTENT}" | yq -rY 'del(.spec.install.spec.permissions[0].rules['$${i}'])' )
|
||||
j=$$((j-1))
|
||||
i=$$((i-1))
|
||||
break
|
||||
;;
|
||||
esac;
|
||||
j=$$((i+1))
|
||||
done
|
||||
fi
|
||||
i=$$((i+1))
|
||||
done
|
||||
fi
|
||||
echo "$${YAML_CONTENT}" > "$${NEW_CSV}"
|
||||
|
||||
# Remove roles for openshift bundle
|
||||
YAML_CONTENT=$$(cat "$${NEW_CSV}")
|
||||
if [ $${platform} = "openshift" ]; then
|
||||
clusterPermLength=$$(echo "$${YAML_CONTENT}" | yq -r ".spec.install.spec.clusterPermissions[0].rules | length")
|
||||
i=0
|
||||
while [ "$${i}" -lt "$${clusterPermLength}" ]; do
|
||||
apiGroupLength=$$(echo "$${YAML_CONTENT}" | yq -r '.spec.install.spec.clusterPermissions[0].rules['$${i}'].apiGroups | length')
|
||||
if [ "$${apiGroupLength}" -gt 0 ]; then
|
||||
j=0
|
||||
while [ "$${j}" -lt "$${apiGroupLength}" ]; do
|
||||
apiGroup=$$(echo "$${YAML_CONTENT}" | yq -r '.spec.install.spec.clusterPermissions[0].rules['$${i}'].apiGroups['$${j}']')
|
||||
case $${apiGroup} in cert-manager.io)
|
||||
YAML_CONTENT=$$(echo "$${YAML_CONTENT}" | yq -rY 'del(.spec.install.spec.clusterPermissions[0].rules['$${i}'])' )
|
||||
j=$$((j-1))
|
||||
i=$$((i-1))
|
||||
break
|
||||
;;
|
||||
esac;
|
||||
j=$$((i+1))
|
||||
done
|
||||
fi
|
||||
i=$$((i+1))
|
||||
done
|
||||
fi
|
||||
clusterPermLength=$$(echo "$${YAML_CONTENT}" | yq -r ".spec.install.spec.clusterPermissions[0].rules | length")
|
||||
i=0
|
||||
while [ "$${i}" -lt "$${clusterPermLength}" ]; do
|
||||
apiGroupLength=$$(echo "$${YAML_CONTENT}" | yq -r '.spec.install.spec.clusterPermissions[0].rules['$${i}'].apiGroups | length')
|
||||
if [ "$${apiGroupLength}" -gt 0 ]; then
|
||||
j=0
|
||||
while [ "$${j}" -lt "$${apiGroupLength}" ]; do
|
||||
apiGroup=$$(echo "$${YAML_CONTENT}" | yq -r '.spec.install.spec.clusterPermissions[0].rules['$${i}'].apiGroups['$${j}']')
|
||||
case $${apiGroup} in cert-manager.io)
|
||||
YAML_CONTENT=$$(echo "$${YAML_CONTENT}" | yq -rY 'del(.spec.install.spec.clusterPermissions[0].rules['$${i}'])' )
|
||||
j=$$((j-1))
|
||||
i=$$((i-1))
|
||||
break
|
||||
;;
|
||||
esac;
|
||||
j=$$((i+1))
|
||||
done
|
||||
fi
|
||||
i=$$((i+1))
|
||||
done
|
||||
echo "$${YAML_CONTENT}" > "$${NEW_CSV}"
|
||||
|
||||
if [ $${platform} = "openshift" ]; then
|
||||
# Removes che-tls-secret-creator
|
||||
index=0
|
||||
while [ $${index} -le 30 ]
|
||||
do
|
||||
if [ $$(cat $${NEW_CSV} | yq -r '.spec.install.spec.deployments[0].spec.template.spec.containers[0].env['$${index}'].name') = "RELATED_IMAGE_che_tls_secrets_creation_job" ]; then
|
||||
yq -rYSi 'del(.spec.install.spec.deployments[0].spec.template.spec.containers[0].env['$${index}'])' $${NEW_CSV}
|
||||
break
|
||||
fi
|
||||
index=$$((index+1))
|
||||
done
|
||||
fi
|
||||
# Removes che-tls-secret-creator
|
||||
index=0
|
||||
while [ $${index} -le 30 ]
|
||||
do
|
||||
if [ $$(cat $${NEW_CSV} | yq -r '.spec.install.spec.deployments[0].spec.template.spec.containers[0].env['$${index}'].name') = "RELATED_IMAGE_che_tls_secrets_creation_job" ]; then
|
||||
yq -rYSi 'del(.spec.install.spec.deployments[0].spec.template.spec.containers[0].env['$${index}'])' $${NEW_CSV}
|
||||
break
|
||||
fi
|
||||
index=$$((index+1))
|
||||
done
|
||||
|
||||
# Fix CSV
|
||||
echo "[INFO] Fix $${platform} CSV"
|
||||
if [ "$${platform}" = "openshift" ]; then
|
||||
fixedSample=$$(yq -r ".metadata.annotations[\"alm-examples\"] | \
|
||||
fromjson | \
|
||||
del( .[] | select(.kind == \"CheCluster\") | .spec.k8s)" $${NEW_CSV} | sed -r 's/"/\\"/g')
|
||||
echo "[INFO] Fix CSV"
|
||||
fixedSample=$$(yq -r ".metadata.annotations[\"alm-examples\"] | \
|
||||
fromjson | \
|
||||
del( .[] | select(.kind == \"CheCluster\") | .spec.k8s)" $${NEW_CSV} | sed -r 's/"/\\"/g')
|
||||
|
||||
yq -riY ".metadata.annotations[\"alm-examples\"] = \"$${fixedSample}\"" $${NEW_CSV}
|
||||
fi
|
||||
if [ "$${platform}" = "kubernetes" ]; then
|
||||
fixedSample=$$(yq -r ".metadata.annotations[\"alm-examples\"] | \
|
||||
fromjson | \
|
||||
del( .[] | select(.kind == \"CheCluster\") | .spec.auth.openShiftoAuth) | \
|
||||
( .[] | select(.kind == \"CheCluster\") | .spec.k8s.ingressDomain) |= \"\" " $${NEW_CSV} | sed -r 's/"/\\"/g')
|
||||
|
||||
yq -riY ".metadata.annotations[\"alm-examples\"] = \"$${fixedSample}\"" $${NEW_CSV}
|
||||
yq -rYi "del(.metadata.annotations.\"operators.openshift.io/infrastructure-features\")" "$${NEW_CSV}"
|
||||
fi
|
||||
yq -riY ".metadata.annotations[\"alm-examples\"] = \"$${fixedSample}\"" $${NEW_CSV}
|
||||
|
||||
# set `app.kubernetes.io/managed-by` label
|
||||
yq -riSY '(.spec.install.spec.deployments[0].spec.template.metadata.labels."app.kubernetes.io/managed-by") = "olm"' "$${NEW_CSV}"
|
||||
|
|
@ -655,10 +581,8 @@ bundle: generate manifests kustomize ## Generate bundle manifests and metadata,
|
|||
yq -riSY '(.spec.install.spec.deployments[0].spec.template.spec."hostIPC") = false' "$${NEW_CSV}"
|
||||
yq -riSY '(.spec.install.spec.deployments[0].spec.template.spec."hostNetwork") = false' "$${NEW_CSV}"
|
||||
yq -riSY '(.spec.install.spec.deployments[0].spec.template.spec."hostPID") = false' "$${NEW_CSV}"
|
||||
if [ "$${platform}" = "openshift" ]; then
|
||||
yq -riSY '(.spec.install.spec.deployments[0].spec.template.spec.containers[0].securityContext."allowPrivilegeEscalation") = false' "$${NEW_CSV}"
|
||||
yq -riSY '(.spec.install.spec.deployments[0].spec.template.spec.containers[0].securityContext."runAsNonRoot") = true' "$${NEW_CSV}"
|
||||
fi
|
||||
yq -riSY '(.spec.install.spec.deployments[0].spec.template.spec.containers[0].securityContext."allowPrivilegeEscalation") = false' "$${NEW_CSV}"
|
||||
yq -riSY '(.spec.install.spec.deployments[0].spec.template.spec.containers[0].securityContext."runAsNonRoot") = true' "$${NEW_CSV}"
|
||||
|
||||
# set InstallMode for next-all-namespaces
|
||||
if [ "$${channel}" = "next-all-namespaces" ]; then
|
||||
|
|
@ -695,48 +619,34 @@ bundle: generate manifests kustomize ## Generate bundle manifests and metadata,
|
|||
$(MAKE) add-license $${BASE_CSV}
|
||||
|
||||
getPackageName:
|
||||
if [ -z "$(platform)" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
echo "eclipse-che-preview-$(platform)"
|
||||
echo "eclipse-che-preview-openshift"
|
||||
|
||||
getBundlePath:
|
||||
if [ -z "$(platform)" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$(channel)" ]; then
|
||||
echo "[ERROR] Please specify second argument: 'channel'"
|
||||
echo "[ERROR] 'channel' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
PACKAGE_NAME=$$($(MAKE) getPackageName platform="$(platform)" -s)
|
||||
PACKAGE_NAME=$$($(MAKE) getPackageName)
|
||||
echo "$(PROJECT_DIR)/bundle/$(channel)/$${PACKAGE_NAME}"
|
||||
|
||||
increment-next-version:
|
||||
if [ -z "$(platform)" ]; then
|
||||
echo "[ERROR] please specify first argument 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$(channel)" ]; then
|
||||
echo "[INFO] You must specify 'channel' macros. For example: `make bundle platform=kubernetes channel=next`"
|
||||
echo "[ERROR] 'channel' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
BUNDLE_PATH=$$($(MAKE) getBundlePath platform="$(platform)" channel="$(channel)" -s)
|
||||
BUNDLE_PATH=$$($(MAKE) getBundlePath channel="$(channel)" -s)
|
||||
OPM_BUNDLE_MANIFESTS_DIR="$${BUNDLE_PATH}/manifests"
|
||||
CSV="$${OPM_BUNDLE_MANIFESTS_DIR}/che-operator.clusterserviceversion.yaml"
|
||||
|
||||
currentNextVersion=$$(yq -r ".spec.version" "$${CSV}")
|
||||
echo "[INFO] Current next $(platform) version: $${currentNextVersion}"
|
||||
echo "[INFO] Current next version: $${currentNextVersion}"
|
||||
|
||||
incrementPart=$$($(MAKE) get-next-version-increment nextVersion="$${currentNextVersion}" -s)
|
||||
|
||||
PACKAGE_NAME="eclipse-che-preview-$(platform)"
|
||||
PACKAGE_NAME=$$($(MAKE) getPackageName)
|
||||
|
||||
CLUSTER_SERVICE_VERSION=$$($(MAKE) get-current-stable-version platform="$(platform)" -s)
|
||||
CLUSTER_SERVICE_VERSION=$$($(MAKE) get-current-stable-version)
|
||||
STABLE_PACKAGE_VERSION=$$(echo "$${CLUSTER_SERVICE_VERSION}" | sed -e "s/$${PACKAGE_NAME}.v//")
|
||||
echo "[INFO] Current stable package version: $${STABLE_PACKAGE_VERSION}"
|
||||
|
||||
|
|
@ -751,17 +661,12 @@ increment-next-version:
|
|||
incrementPart=$$((incrementPart+1))
|
||||
newVersion="$${STABLE_MAJOR_VERSION}.$${STABLE_MINOR_VERSION}.0-$${incrementPart}.$(channel)"
|
||||
|
||||
echo "[INFO] Set up next $(platform) version: $${newVersion}"
|
||||
yq -rY "(.spec.version) = \"$${newVersion}\" | (.metadata.name) = \"eclipse-che-preview-$(platform).v$${newVersion}\"" "$${CSV}" > "$${CSV}.old"
|
||||
echo "[INFO] Set up next version: $${newVersion}"
|
||||
yq -rY "(.spec.version) = \"$${newVersion}\" | (.metadata.name) = \"$${PACKAGE_NAME}.v$${newVersion}\"" "$${CSV}" > "$${CSV}.old"
|
||||
mv "$${CSV}.old" "$${CSV}"
|
||||
|
||||
get-current-stable-version:
|
||||
if [ -z "$(platform)" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
STABLE_BUNDLE_PATH=$$($(MAKE) getBundlePath platform="$(platform)" channel="stable" -s)
|
||||
STABLE_BUNDLE_PATH=$$($(MAKE) getBundlePath channel="stable" -s)
|
||||
LAST_STABLE_CSV="$${STABLE_BUNDLE_PATH}/manifests/che-operator.clusterserviceversion.yaml"
|
||||
|
||||
lastStableVersion=$$(yq -r ".spec.version" "$${LAST_STABLE_CSV}")
|
||||
|
|
@ -780,16 +685,9 @@ get-next-version-increment:
|
|||
|
||||
update-resources: SHELL := /bin/bash
|
||||
update-resources: check-requirements update-resource-images update-roles update-helmcharts
|
||||
for platform in 'openshift' 'kubernetes'
|
||||
for channel in 'next-all-namespaces' 'next'
|
||||
do
|
||||
for channel in 'next-all-namespaces' 'next'
|
||||
do
|
||||
# Skip next-all-namespaces in kubernetes platform, is not supported
|
||||
if [ $${channel} == "next-all-namespaces" ] && [ $${platform} == "kubernetes" ]; then
|
||||
continue
|
||||
fi
|
||||
$(MAKE) bundle platform=$${platform} channel=$${channel}
|
||||
done
|
||||
$(MAKE) bundle channel=$${channel}
|
||||
done
|
||||
|
||||
update-helmcharts: SHELL := /bin/bash
|
||||
|
|
@ -838,7 +736,7 @@ update-helmcharts: add-license-download check-requirements update-resource-image
|
|||
CRDS=$${CRDS}$${example}$$'\n'
|
||||
done
|
||||
|
||||
yq -rYi --arg examples "$${CRDS}" ".annotations.\"artifacthub.io/crdsExamples\" = \$$examples" $${chartYaml}
|
||||
yq -rYi --arg examples "$${CRDS}" ".annotations.\"artifacthub.io/crdsExamples\" = \$$examples" $${chartYaml}
|
||||
rm -rf $${HELMCHARTS_TEMPLATES}/org.eclipse.che_v1_checluster.yaml
|
||||
else
|
||||
# Set references to values
|
||||
|
|
@ -929,16 +827,12 @@ update-resource-images:
|
|||
|
||||
.PHONY: bundle-build
|
||||
bundle-build: ## Build the bundle image.
|
||||
if [ -z "$(platform)" ]; then
|
||||
echo "[INFO] You must specify 'platform' macros. For example: `make bundle platform=kubernetes`"
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$(channel)" ]; then
|
||||
echo "[INFO] You must specify 'channel' macros. For example: `make bundle platform=kubernetes channel=next`"
|
||||
echo "[ERROR] 'channel' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BUNDLE_PACKAGE="eclipse-che-preview-$(platform)"
|
||||
BUNDLE_PACKAGE=$$($(MAKE) getPackageName)
|
||||
BUNDLE_DIR="bundle/$(channel)/$${BUNDLE_PACKAGE}"
|
||||
cd $${BUNDLE_DIR}
|
||||
docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .
|
||||
|
|
|
|||
26
RELEASE.md
26
RELEASE.md
|
|
@ -45,31 +45,11 @@ echo http://$(oc get route -n eclipse-che-preview-test | grep ^che | awk -F ' '
|
|||
|
||||
Login using HTPassword then allow selected permissions. Validate that the release version is installed and workspace can be created:
|
||||
|
||||
## 3. Testing release on minikube
|
||||
|
||||
This part now runs automatically as part of the PR check for release PRs. See `minikube-stable-operator-update.yml` action.
|
||||
Alternatively, use these manual steps to verify operator update on Minikube.
|
||||
|
||||
Run script to test updates:
|
||||
|
||||
```bash
|
||||
cd olm
|
||||
./testUpdate.sh -p kubernetes -c stable -i quay.io/eclipse/eclipse-che-kubernetes-opm-catalog:test -n eclipse-che
|
||||
```
|
||||
|
||||
Open Eclipse Che dashboard:
|
||||
|
||||
```bash
|
||||
xdg-open http://$(kubectl get ingress -n eclipse-che-preview-test | grep ^che | awk -F ' ' '{ print $2 }')
|
||||
```
|
||||
|
||||
Validate that the release version is installed and workspace can be created:
|
||||
|
||||
## 4. Merge pull requests
|
||||
## 3. Merge pull requests
|
||||
|
||||
Merge pull request into .x and main branches.
|
||||
|
||||
## 5. Testing release on minishift (when chectl is released)
|
||||
## 4. Testing release on minishift (when chectl is released)
|
||||
|
||||
Login to local minishift cluster:
|
||||
|
||||
|
|
@ -91,7 +71,7 @@ chectl server:update --platform=minishift --installer=operator
|
|||
xdg-open http://$(kubectl get ingress -n che | grep ^che | awk -F ' ' '{ print $2 }')
|
||||
```
|
||||
|
||||
## 6. Prepare community operator PR
|
||||
## 5. Prepare community operator PR
|
||||
|
||||
See `release-community-operator-PRs.yml` workflow, which will be triggered automatically, once release PRs are merged.
|
||||
Alternatively, it can be run manually:
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ metadata:
|
|||
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
|
||||
repository: https://github.com/eclipse-che/che-operator
|
||||
support: Eclipse Foundation
|
||||
name: eclipse-che-preview-openshift.v7.40.0-383.next-all-namespaces
|
||||
name: eclipse-che-preview-openshift.v7.41.0-385.next-all-namespaces
|
||||
namespace: placeholder
|
||||
spec:
|
||||
apiservicedefinitions: {}
|
||||
|
|
@ -1002,6 +1002,14 @@ spec:
|
|||
- create
|
||||
- get
|
||||
- update
|
||||
- apiGroups:
|
||||
- metrics.k8s.io
|
||||
resources:
|
||||
- pods
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- monitoring.coreos.com
|
||||
resources:
|
||||
|
|
@ -1458,4 +1466,4 @@ spec:
|
|||
maturity: stable
|
||||
provider:
|
||||
name: Eclipse Foundation
|
||||
version: 7.40.0-383.next-all-namespaces
|
||||
version: 7.41.0-385.next-all-namespaces
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
FROM scratch
|
||||
|
||||
# Core bundle labels.
|
||||
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
|
||||
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
|
||||
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
|
||||
LABEL operators.operatorframework.io.bundle.package.v1=eclipse-che-preview-kubernetes
|
||||
LABEL operators.operatorframework.io.bundle.channels.v1=next
|
||||
LABEL operators.operatorframework.io.bundle.channel.default.v1=next
|
||||
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.7.1+git
|
||||
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
|
||||
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
|
||||
|
||||
# Labels for testing.
|
||||
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
|
||||
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
|
||||
|
||||
# Copy files to locations specified by labels.
|
||||
COPY manifests /manifests/
|
||||
COPY metadata /metadata/
|
||||
COPY tests/scorecard /tests/scorecard/
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,22 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
app.kubernetes.io/component: che-operator
|
||||
app.kubernetes.io/instance: che
|
||||
app.kubernetes.io/name: che
|
||||
app.kubernetes.io/part-of: che.eclipse.org
|
||||
name: che-operator
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: v1
|
||||
data:
|
||||
controller_manager_config.yaml: |
|
||||
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
|
||||
kind: ControllerManagerConfig
|
||||
health:
|
||||
healthProbeBindAddress: :6789
|
||||
metrics:
|
||||
bindAddress: 127.0.0.1:60000
|
||||
webhook:
|
||||
port: 9443
|
||||
leaderElection:
|
||||
leaderElect: true
|
||||
resourceName: e79b08a4.org.eclipse.che
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: manager-config
|
||||
|
|
@ -1,138 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.1
|
||||
creationTimestamp: null
|
||||
name: chebackupserverconfigurations.org.eclipse.che
|
||||
spec:
|
||||
group: org.eclipse.che
|
||||
names:
|
||||
kind: CheBackupServerConfiguration
|
||||
listKind: CheBackupServerConfigurationList
|
||||
plural: chebackupserverconfigurations
|
||||
singular: chebackupserverconfiguration
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: The `CheBackupServerConfiguration` custom resource allows defining and managing Eclipse Che Backup Server Configurations
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CheBackupServerConfigurationSpec defines the desired state of CheBackupServerConfiguration Only one type of backup server is allowed to be configured per CR.
|
||||
properties:
|
||||
awss3:
|
||||
description: Amazon S3 or compatible alternatives.
|
||||
properties:
|
||||
awsAccessKeySecretRef:
|
||||
description: Reference to secret that contains awsAccessKeyId and awsSecretAccessKey keys.
|
||||
type: string
|
||||
hostname:
|
||||
description: Server hostname, defaults to 's3.amazonaws.com'. Might be customized in case of alternative server.
|
||||
type: string
|
||||
port:
|
||||
description: Backup server port. Usually default value is used. Might be customized in case of alternative server.
|
||||
type: integer
|
||||
protocol:
|
||||
description: Protocol to use when connection to the server. Might be customized in case of alternative server.
|
||||
type: string
|
||||
repositoryPasswordSecretRef:
|
||||
description: Holds reference to a secret with restic repository password under 'repo-password' field to encrypt / decrypt its content.
|
||||
type: string
|
||||
repositoryPath:
|
||||
description: Bucket name and repository, e.g. bucket/repo
|
||||
type: string
|
||||
required:
|
||||
- awsAccessKeySecretRef
|
||||
- repositoryPasswordSecretRef
|
||||
- repositoryPath
|
||||
type: object
|
||||
rest:
|
||||
description: Rest backup server configuration.
|
||||
properties:
|
||||
credentialsSecretRef:
|
||||
description: Secret that contains username and password fields to login into restic server. Note, each repository is encrypted with own password. See ResticRepoPasswordSecretRef field.
|
||||
type: string
|
||||
hostname:
|
||||
description: Backup server host
|
||||
type: string
|
||||
port:
|
||||
description: Backup server port
|
||||
type: integer
|
||||
protocol:
|
||||
description: Protocol to use when connection to the server Defaults to https.
|
||||
type: string
|
||||
repositoryPasswordSecretRef:
|
||||
description: Holds reference to a secret with restic repository password under 'repo-password' field to encrypt / decrypt its content.
|
||||
type: string
|
||||
repositoryPath:
|
||||
description: Restic repository path
|
||||
type: string
|
||||
required:
|
||||
- hostname
|
||||
- repositoryPasswordSecretRef
|
||||
type: object
|
||||
sftp:
|
||||
description: Sftp backup server configuration.
|
||||
properties:
|
||||
hostname:
|
||||
description: Backup server host
|
||||
type: string
|
||||
port:
|
||||
description: Backup server port
|
||||
type: integer
|
||||
repositoryPasswordSecretRef:
|
||||
description: Holds reference to a secret with restic repository password under 'repo-password' field to encrypt / decrypt its content.
|
||||
type: string
|
||||
repositoryPath:
|
||||
description: Restic repository path, relative or absolute, e.g. /srv/repo
|
||||
type: string
|
||||
sshKeySecretRef:
|
||||
description: Private ssh key under 'ssh-privatekey' field for passwordless login
|
||||
type: string
|
||||
username:
|
||||
description: User login on the remote server
|
||||
type: string
|
||||
required:
|
||||
- hostname
|
||||
- repositoryPasswordSecretRef
|
||||
- repositoryPath
|
||||
- sshKeySecretRef
|
||||
- username
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: CheBackupServerConfigurationStatus defines the observed state of CheBackupServerConfiguration
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.1
|
||||
creationTimestamp: null
|
||||
name: checlusterbackups.org.eclipse.che
|
||||
spec:
|
||||
group: org.eclipse.che
|
||||
names:
|
||||
kind: CheClusterBackup
|
||||
listKind: CheClusterBackupList
|
||||
plural: checlusterbackups
|
||||
singular: checlusterbackup
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: The `CheClusterBackup` custom resource allows defining and managing Eclipse Che backup
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CheClusterBackupSpec defines the desired state of CheClusterBackup
|
||||
properties:
|
||||
backupServerConfigRef:
|
||||
description: Name of custom resource with a backup server configuration to use for this backup. Note, UseInternalBackupServer field can configure internal backup server automatically.
|
||||
type: string
|
||||
useInternalBackupServer:
|
||||
description: Automatically setup pod with REST backup server and use the server in this configuration. Note, this flag takes precedence and will overwrite existing backup server configuration.
|
||||
type: boolean
|
||||
type: object
|
||||
status:
|
||||
description: CheClusterBackupStatus defines the observed state of CheClusterBackup
|
||||
properties:
|
||||
cheVersion:
|
||||
description: Version that was backed up
|
||||
type: string
|
||||
message:
|
||||
description: Message explaining the state of the backup or an error message
|
||||
type: string
|
||||
snapshotId:
|
||||
description: Last backup snapshot ID
|
||||
type: string
|
||||
stage:
|
||||
description: Describes backup progress
|
||||
type: string
|
||||
state:
|
||||
description: 'Backup progress state: InProgress, Failed, Succeeded'
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.1
|
||||
creationTimestamp: null
|
||||
name: checlusterrestores.org.eclipse.che
|
||||
spec:
|
||||
group: org.eclipse.che
|
||||
names:
|
||||
kind: CheClusterRestore
|
||||
listKind: CheClusterRestoreList
|
||||
plural: checlusterrestores
|
||||
singular: checlusterrestore
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: The `CheClusterRestore` custom resource allows defining and managing Eclipse Che restore
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CheClusterRestoreSpec defines the desired state of CheClusterRestore
|
||||
properties:
|
||||
backupServerConfigRef:
|
||||
description: Name of custom resource with a backup server configuration to use for this restore. Can be omitted if only one server configuration object exists within the namespace.
|
||||
type: string
|
||||
snapshotId:
|
||||
description: If omitted, latest snapshot will be used.
|
||||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: CheClusterRestoreStatus defines the observed state of CheClusterRestore
|
||||
properties:
|
||||
message:
|
||||
description: Restore result or error message
|
||||
type: string
|
||||
stage:
|
||||
description: Describes phase of restore progress
|
||||
type: string
|
||||
state:
|
||||
description: 'Restore progress state: InProgress, Failed, Succeeded'
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
|
|
@ -1,705 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.1
|
||||
creationTimestamp: null
|
||||
name: checlusters.org.eclipse.che
|
||||
spec:
|
||||
group: org.eclipse.che
|
||||
names:
|
||||
kind: CheCluster
|
||||
listKind: CheClusterList
|
||||
plural: checlusters
|
||||
singular: checluster
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: The `CheCluster` custom resource allows defining and managing a Che server installation
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Desired configuration of the Che installation. Based on these settings, the Operator automatically creates and maintains several ConfigMaps that will contain the appropriate environment variables the various components of the Che installation. These generated ConfigMaps must NOT be updated manually.
|
||||
properties:
|
||||
auth:
|
||||
description: Configuration settings related to the Authentication used by the Che installation.
|
||||
properties:
|
||||
debug:
|
||||
description: Debug internal identity provider.
|
||||
type: boolean
|
||||
externalIdentityProvider:
|
||||
description: 'Instructs the Operator on whether or not to deploy a dedicated Identity Provider (Keycloak or RH SSO instance). Instructs the Operator on whether to deploy a dedicated Identity Provider (Keycloak or RH-SSO instance). By default, a dedicated Identity Provider server is deployed as part of the Che installation. When `externalIdentityProvider` is `true`, no dedicated identity provider will be deployed by the Operator and you will need to provide details about the external identity provider you are about to use. See also all the other fields starting with: `identityProvider`.'
|
||||
type: boolean
|
||||
gatewayAuthenticationSidecarImage:
|
||||
description: Gateway sidecar responsible for authentication when NativeUserMode is enabled. See link:https://github.com/oauth2-proxy/oauth2-proxy[oauth2-proxy] or link:https://github.com/openshift/oauth-proxy[openshift/oauth-proxy].
|
||||
type: string
|
||||
gatewayAuthorizationSidecarImage:
|
||||
description: Gateway sidecar responsible for authorization when NativeUserMode is enabled. See link:https://github.com/brancz/kube-rbac-proxy[kube-rbac-proxy] or link:https://github.com/openshift/kube-rbac-proxy[openshift/kube-rbac-proxy]
|
||||
type: string
|
||||
gatewayHeaderRewriteSidecarImage:
|
||||
description: Deprecated. The value of this flag is ignored. Sidecar functionality is now implemented in Traefik plugin.
|
||||
type: string
|
||||
identityProviderAdminUserName:
|
||||
description: Overrides the name of the Identity Provider administrator user. Defaults to `admin`.
|
||||
type: string
|
||||
identityProviderClientId:
|
||||
description: Name of a Identity provider, Keycloak or RH-SSO, `client-id` that is used for Che. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to the value of the `flavour` field suffixed with `-public`.
|
||||
type: string
|
||||
identityProviderContainerResources:
|
||||
description: Identity provider container custom settings.
|
||||
properties:
|
||||
limits:
|
||||
description: Limits describes the maximum amount of compute resources allowed.
|
||||
properties:
|
||||
cpu:
|
||||
description: CPU, in cores. (500m = .5 cores)
|
||||
type: string
|
||||
memory:
|
||||
description: Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
|
||||
type: string
|
||||
type: object
|
||||
request:
|
||||
description: Requests describes the minimum amount of compute resources required.
|
||||
properties:
|
||||
cpu:
|
||||
description: CPU, in cores. (500m = .5 cores)
|
||||
type: string
|
||||
memory:
|
||||
description: Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
identityProviderImage:
|
||||
description: Overrides the container image used in the Identity Provider, Keycloak or RH-SSO, deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
identityProviderImagePullPolicy:
|
||||
description: Overrides the image pull policy used in the Identity Provider, Keycloak or RH-SSO, deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
identityProviderIngress:
|
||||
description: Ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
identityProviderPassword:
|
||||
description: Overrides the password of Keycloak administrator user. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to an auto-generated password.
|
||||
type: string
|
||||
identityProviderPostgresPassword:
|
||||
description: Password for a Identity Provider, Keycloak or RH-SSO, to connect to the database. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to an auto-generated password.
|
||||
type: string
|
||||
identityProviderPostgresSecret:
|
||||
description: 'The secret that contains `password` for the Identity Provider, Keycloak or RH-SSO, to connect to the database. When the secret is defined, the `identityProviderPostgresPassword` is ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `identityProviderPostgresPassword` is defined, then it will be used to connect to the database. 2. `identityProviderPostgresPassword` is not defined, then a new secret with the name `che-identity-postgres-secret` will be created with an auto-generated value for `password`. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.'
|
||||
type: string
|
||||
identityProviderRealm:
|
||||
description: Name of a Identity provider, Keycloak or RH-SSO, realm that is used for Che. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to the value of the `flavour` field.
|
||||
type: string
|
||||
identityProviderRoute:
|
||||
description: Route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
identityProviderSecret:
|
||||
description: 'The secret that contains `user` and `password` for Identity Provider. When the secret is defined, the `identityProviderAdminUserName` and `identityProviderPassword` are ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `identityProviderAdminUserName` and `identityProviderPassword` are defined, then they will be used. 2. `identityProviderAdminUserName` or `identityProviderPassword` are not defined, then a new secret with the name `che-identity-secret` will be created with default value `admin` for `user` and with an auto-generated value for `password`. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.'
|
||||
type: string
|
||||
identityProviderURL:
|
||||
description: Public URL of the Identity Provider server (Keycloak / RH-SSO server). Set this ONLY when a use of an external Identity Provider is needed. See the `externalIdentityProvider` field. By default, this will be automatically calculated and set by the Operator.
|
||||
type: string
|
||||
initialOpenShiftOAuthUser:
|
||||
description: For operating with the OpenShift OAuth authentication, create a new user account since the kubeadmin can not be used. If the value is true, then a new OpenShift OAuth user will be created for the HTPasswd identity provider. If the value is false and the user has already been created, then it will be removed. If value is an empty, then do nothing. The user's credentials are stored in the `openshift-oauth-user-credentials` secret in 'openshift-config' namespace by Operator. Note that this solution is Openshift 4 platform-specific.
|
||||
type: boolean
|
||||
nativeUserMode:
|
||||
description: Enables native user mode. Currently works only on OpenShift and DevWorkspace engine. Native User mode uses OpenShift OAuth directly as identity provider, without Keycloak.
|
||||
type: boolean
|
||||
oAuthClientName:
|
||||
description: Name of the OpenShift `OAuthClient` resource used to setup identity federation on the OpenShift side. Auto-generated when left blank. See also the `OpenShiftoAuth` field.
|
||||
type: string
|
||||
oAuthSecret:
|
||||
description: Name of the secret set in the OpenShift `OAuthClient` resource used to setup identity federation on the OpenShift side. Auto-generated when left blank. See also the `OAuthClientName` field.
|
||||
type: string
|
||||
openShiftoAuth:
|
||||
description: 'Enables the integration of the identity provider (Keycloak / RHSSO) with OpenShift OAuth. Empty value on OpenShift by default. This will allow users to directly login with their OpenShift user through the OpenShift login, and have their workspaces created under personal OpenShift namespaces. WARNING: the `kubeadmin` user is NOT supported, and logging through it will NOT allow accessing the Che Dashboard.'
|
||||
type: boolean
|
||||
updateAdminPassword:
|
||||
description: Forces the default `admin` Che user to update password on first login. Defaults to `false`.
|
||||
type: boolean
|
||||
type: object
|
||||
database:
|
||||
description: Configuration settings related to the database used by the Che installation.
|
||||
properties:
|
||||
chePostgresContainerResources:
|
||||
description: PostgreSQL container custom settings
|
||||
properties:
|
||||
limits:
|
||||
description: Limits describes the maximum amount of compute resources allowed.
|
||||
properties:
|
||||
cpu:
|
||||
description: CPU, in cores. (500m = .5 cores)
|
||||
type: string
|
||||
memory:
|
||||
description: Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
|
||||
type: string
|
||||
type: object
|
||||
request:
|
||||
description: Requests describes the minimum amount of compute resources required.
|
||||
properties:
|
||||
cpu:
|
||||
description: CPU, in cores. (500m = .5 cores)
|
||||
type: string
|
||||
memory:
|
||||
description: Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
chePostgresDb:
|
||||
description: PostgreSQL database name that the Che server uses to connect to the DB. Defaults to `dbche`.
|
||||
type: string
|
||||
chePostgresHostName:
|
||||
description: PostgreSQL Database host name that the Che server uses to connect to. Defaults is `postgres`. Override this value ONLY when using an external database. See field `externalDb`. In the default case it will be automatically set by the Operator.
|
||||
type: string
|
||||
chePostgresPassword:
|
||||
description: PostgreSQL password that the Che server uses to connect to the DB. When omitted or left blank, it will be set to an automatically generated value.
|
||||
type: string
|
||||
chePostgresPort:
|
||||
description: PostgreSQL Database port that the Che server uses to connect to. Defaults to 5432. Override this value ONLY when using an external database. See field `externalDb`. In the default case it will be automatically set by the Operator.
|
||||
type: string
|
||||
chePostgresSecret:
|
||||
description: 'The secret that contains PostgreSQL`user` and `password` that the Che server uses to connect to the DB. When the secret is defined, the `chePostgresUser` and `chePostgresPassword` are ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `chePostgresUser` and `chePostgresPassword` are defined, then they will be used to connect to the DB. 2. `chePostgresUser` or `chePostgresPassword` are not defined, then a new secret with the name `che-postgres-secret` will be created with default value of `pgche` for `user` and with an auto-generated value for `password`. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.'
|
||||
type: string
|
||||
chePostgresUser:
|
||||
description: PostgreSQL user that the Che server uses to connect to the DB. Defaults to `pgche`.
|
||||
type: string
|
||||
externalDb:
|
||||
description: 'Instructs the Operator on whether to deploy a dedicated database. By default, a dedicated PostgreSQL database is deployed as part of the Che installation. When `externalDb` is `true`, no dedicated database will be deployed by the Operator and you will need to provide connection details to the external DB you are about to use. See also all the fields starting with: `chePostgres`.'
|
||||
type: boolean
|
||||
postgresImage:
|
||||
description: Overrides the container image used in the PostgreSQL database deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
postgresImagePullPolicy:
|
||||
description: Overrides the image pull policy used in the PostgreSQL database deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
postgresVersion:
|
||||
description: 'Indicates a PostgreSQL version image to use. Allowed values are: `9.6` and `13.3`. Migrate your PostgreSQL database to switch from one version to another.'
|
||||
type: string
|
||||
pvcClaimSize:
|
||||
description: Size of the persistent volume claim for database. Defaults to `1Gi`. To update pvc storageclass that provisions it must support resize when Eclipse Che has been already deployed.
|
||||
type: string
|
||||
type: object
|
||||
devWorkspace:
|
||||
description: DevWorkspace operator configuration
|
||||
properties:
|
||||
controllerImage:
|
||||
description: Overrides the container image used in the DevWorkspace controller deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
enable:
|
||||
description: Deploys the DevWorkspace Operator in the cluster. Does nothing when a matching version of the Operator is already installed. Fails when a non-matching version of the Operator is already installed.
|
||||
type: boolean
|
||||
required:
|
||||
- enable
|
||||
type: object
|
||||
imagePuller:
|
||||
description: Kubernetes Image Puller configuration
|
||||
properties:
|
||||
enable:
|
||||
description: Install and configure the Community Supported Kubernetes Image Puller Operator. When set to `true` and no spec is provided, it will create a default KubernetesImagePuller object to be managed by the Operator. When set to `false`, the KubernetesImagePuller object will be deleted, and the Operator will be uninstalled, regardless of whether a spec is provided. If the `spec.images` field is empty, a set of recommended workspace-related images will be automatically detected and pre-pulled after installation. Note that while this Operator and its behavior is community-supported, its payload may be commercially-supported for pulling commercially-supported images.
|
||||
type: boolean
|
||||
spec:
|
||||
description: A KubernetesImagePullerSpec to configure the image puller in the CheCluster
|
||||
properties:
|
||||
affinity:
|
||||
type: string
|
||||
cachingCPULimit:
|
||||
type: string
|
||||
cachingCPURequest:
|
||||
type: string
|
||||
cachingIntervalHours:
|
||||
type: string
|
||||
cachingMemoryLimit:
|
||||
type: string
|
||||
cachingMemoryRequest:
|
||||
type: string
|
||||
configMapName:
|
||||
type: string
|
||||
daemonsetName:
|
||||
type: string
|
||||
deploymentName:
|
||||
type: string
|
||||
imagePullSecrets:
|
||||
type: string
|
||||
imagePullerImage:
|
||||
type: string
|
||||
images:
|
||||
type: string
|
||||
nodeSelector:
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- enable
|
||||
type: object
|
||||
k8s:
|
||||
description: Configuration settings specific to Che installations made on upstream Kubernetes.
|
||||
properties:
|
||||
ingressClass:
|
||||
description: 'Ingress class that will define the which controller will manage ingresses. Defaults to `nginx`. NB: This drives the `kubernetes.io/ingress.class` annotation on Che-related ingresses.'
|
||||
type: string
|
||||
ingressDomain:
|
||||
description: 'Global ingress domain for a Kubernetes cluster. This MUST be explicitly specified: there are no defaults.'
|
||||
type: string
|
||||
ingressStrategy:
|
||||
description: 'Strategy for ingress creation. Options are: `multi-host` (host is explicitly provided in ingress), `single-host` (host is provided, path-based rules) and `default-host` (no host is provided, path-based rules). Defaults to `multi-host` Deprecated in favor of `serverExposureStrategy` in the `server` section, which defines this regardless of the cluster type. When both are defined, the `serverExposureStrategy` option takes precedence.'
|
||||
type: string
|
||||
securityContextFsGroup:
|
||||
description: The FSGroup in which the Che Pod and workspace Pods containers runs in. Default value is `1724`.
|
||||
type: string
|
||||
securityContextRunAsUser:
|
||||
description: ID of the user the Che Pod and workspace Pods containers run as. Default value is `1724`.
|
||||
type: string
|
||||
singleHostExposureType:
|
||||
description: When the serverExposureStrategy is set to `single-host`, the way the server, registries and workspaces are exposed is further configured by this property. The possible values are `native`, which means that the server and workspaces are exposed using ingresses on K8s or `gateway` where the server and workspaces are exposed using a custom gateway based on link:https://doc.traefik.io/traefik/[Traefik]. All the endpoints whether backed by the ingress or gateway `route` always point to the subpaths on the same domain. Defaults to `native`.
|
||||
type: string
|
||||
tlsSecretName:
|
||||
description: Name of a secret that will be used to setup ingress TLS termination when TLS is enabled. When the field is empty string, the default cluster certificate will be used. See also the `tlsSupport` field.
|
||||
type: string
|
||||
type: object
|
||||
metrics:
|
||||
description: Configuration settings related to the metrics collection used by the Che installation.
|
||||
properties:
|
||||
enable:
|
||||
description: Enables `metrics` the Che server endpoint. Default to `true`.
|
||||
type: boolean
|
||||
type: object
|
||||
server:
|
||||
description: General configuration settings related to the Che server, the plugin and devfile registries
|
||||
properties:
|
||||
airGapContainerRegistryHostname:
|
||||
description: Optional host name, or URL, to an alternate container registry to pull images from. This value overrides the container registry host name defined in all the default container images involved in a Che deployment. This is particularly useful to install Che in a restricted environment.
|
||||
type: string
|
||||
airGapContainerRegistryOrganization:
|
||||
description: Optional repository name of an alternate container registry to pull images from. This value overrides the container registry organization defined in all the default container images involved in a Che deployment. This is particularly useful to install Eclipse Che in a restricted environment.
|
||||
type: string
|
||||
allowUserDefinedWorkspaceNamespaces:
|
||||
description: Deprecated. The value of this flag is ignored. Defines that a user is allowed to specify a Kubernetes namespace, or an OpenShift project, which differs from the default. It's NOT RECOMMENDED to set to `true` without OpenShift OAuth configured. The OpenShift infrastructure also uses this property.
|
||||
type: boolean
|
||||
cheClusterRoles:
|
||||
description: A comma-separated list of ClusterRoles that will be assigned to Che ServiceAccount. Each role must have `app.kubernetes.io/part-of=che.eclipse.org` label. Be aware that the Che Operator has to already have all permissions in these ClusterRoles to grant them.
|
||||
type: string
|
||||
cheDebug:
|
||||
description: Enables the debug mode for Che server. Defaults to `false`.
|
||||
type: string
|
||||
cheFlavor:
|
||||
description: Specifies a variation of the installation. The options are `che` for upstream Che installations, or `codeready` for link:https://developers.redhat.com/products/codeready-workspaces/overview[CodeReady Workspaces] installation. Override the default value only on necessary occasions.
|
||||
type: string
|
||||
cheHost:
|
||||
description: Public host name of the installed Che server. When value is omitted, the value it will be automatically set by the Operator. See the `cheHostTLSSecret` field.
|
||||
type: string
|
||||
cheHostTLSSecret:
|
||||
description: Name of a secret containing certificates to secure ingress or route for the custom host name of the installed Che server. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label. See the `cheHost` field.
|
||||
type: string
|
||||
cheImage:
|
||||
description: Overrides the container image used in Che deployment. This does NOT include the container image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
cheImagePullPolicy:
|
||||
description: Overrides the image pull policy used in Che deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
cheImageTag:
|
||||
description: Overrides the tag of the container image used in Che deployment. Omit it or leave it empty to use the default image tag provided by the Operator.
|
||||
type: string
|
||||
cheLogLevel:
|
||||
description: 'Log level for the Che server: `INFO` or `DEBUG`. Defaults to `INFO`.'
|
||||
type: string
|
||||
cheServerIngress:
|
||||
description: The Che server ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
cheServerRoute:
|
||||
description: The Che server route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
cheWorkspaceClusterRole:
|
||||
description: Custom cluster role bound to the user for the Che workspaces. The role must have `app.kubernetes.io/part-of=che.eclipse.org` label. The default roles are used when omitted or left blank.
|
||||
type: string
|
||||
customCheProperties:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Map of additional environment variables that will be applied in the generated `che` ConfigMap to be used by the Che server, in addition to the values already generated from other fields of the `CheCluster` custom resource (CR). When `customCheProperties` contains a property that would be normally generated in `che` ConfigMap from other CR fields, the value defined in the `customCheProperties` is used instead.
|
||||
type: object
|
||||
dashboardCpuLimit:
|
||||
description: Overrides the CPU limit used in the dashboard deployment. In cores. (500m = .5 cores). Default to 500m.
|
||||
type: string
|
||||
dashboardCpuRequest:
|
||||
description: Overrides the CPU request used in the dashboard deployment. In cores. (500m = .5 cores). Default to 100m.
|
||||
type: string
|
||||
dashboardImage:
|
||||
description: Overrides the container image used in the dashboard deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
dashboardImagePullPolicy:
|
||||
description: Overrides the image pull policy used in the dashboard deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
dashboardIngress:
|
||||
description: Dashboard ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
dashboardMemoryLimit:
|
||||
description: Overrides the memory limit used in the dashboard deployment. Defaults to 256Mi.
|
||||
type: string
|
||||
dashboardMemoryRequest:
|
||||
description: Overrides the memory request used in the dashboard deployment. Defaults to 16Mi.
|
||||
type: string
|
||||
dashboardRoute:
|
||||
description: Dashboard route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
devfileRegistryCpuLimit:
|
||||
description: Overrides the CPU limit used in the devfile registry deployment. In cores. (500m = .5 cores). Default to 500m.
|
||||
type: string
|
||||
devfileRegistryCpuRequest:
|
||||
description: Overrides the CPU request used in the devfile registry deployment. In cores. (500m = .5 cores). Default to 100m.
|
||||
type: string
|
||||
devfileRegistryImage:
|
||||
description: Overrides the container image used in the devfile registry deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
devfileRegistryIngress:
|
||||
description: The devfile registry ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
devfileRegistryMemoryLimit:
|
||||
description: Overrides the memory limit used in the devfile registry deployment. Defaults to 256Mi.
|
||||
type: string
|
||||
devfileRegistryMemoryRequest:
|
||||
description: Overrides the memory request used in the devfile registry deployment. Defaults to 16Mi.
|
||||
type: string
|
||||
devfileRegistryPullPolicy:
|
||||
description: Overrides the image pull policy used in the devfile registry deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
devfileRegistryRoute:
|
||||
description: The devfile registry route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
devfileRegistryUrl:
|
||||
description: Deprecated in favor of `externalDevfileRegistries` fields.
|
||||
type: string
|
||||
disableInternalClusterSVCNames:
|
||||
description: Disable internal cluster SVC names usage to communicate between components to speed up the traffic and avoid proxy issues.
|
||||
type: boolean
|
||||
externalDevfileRegistries:
|
||||
description: External devfile registries, that serves sample, ready-to-use devfiles. Configure this in addition to a dedicated devfile registry (when `externalDevfileRegistry` is `false`) or instead of it (when `externalDevfileRegistry` is `true`)
|
||||
items:
|
||||
description: Settings for a configuration of the external devfile registries.
|
||||
properties:
|
||||
url:
|
||||
description: Public URL of the devfile registry.
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
externalDevfileRegistry:
|
||||
description: Instructs the Operator on whether to deploy a dedicated devfile registry server. By default, a dedicated devfile registry server is started. When `externalDevfileRegistry` is `true`, no such dedicated server will be started by the Operator and configure at least one devfile registry with `externalDevfileRegistries` field.
|
||||
type: boolean
|
||||
externalPluginRegistry:
|
||||
description: Instructs the Operator on whether to deploy a dedicated plugin registry server. By default, a dedicated plugin registry server is started. When `externalPluginRegistry` is `true`, no such dedicated server will be started by the Operator and you will have to manually set the `pluginRegistryUrl` field.
|
||||
type: boolean
|
||||
gitSelfSignedCert:
|
||||
description: When enabled, the certificate from `che-git-self-signed-cert` ConfigMap will be propagated to the Che components and provide particular configuration for Git. Note, the `che-git-self-signed-cert` ConfigMap must have `app.kubernetes.io/part-of=che.eclipse.org` label.
|
||||
type: boolean
|
||||
nonProxyHosts:
|
||||
description: 'List of hosts that will be reached directly, bypassing the proxy. Specify wild card domain use the following form `.<DOMAIN>` and `|` as delimiter, for example: `localhost|.my.host.com|123.42.12.32` Only use when configuring a proxy is required. Operator respects OpenShift cluster wide proxy configuration and no additional configuration is required, but defining `nonProxyHosts` in a custom resource leads to merging non proxy hosts lists from the cluster proxy configuration and ones defined in the custom resources. See the doc https://docs.openshift.com/container-platform/4.4/networking/enable-cluster-wide-proxy.html. See also the `proxyURL` fields.'
|
||||
type: string
|
||||
pluginRegistryCpuLimit:
|
||||
description: Overrides the CPU limit used in the plugin registry deployment. In cores. (500m = .5 cores). Default to 500m.
|
||||
type: string
|
||||
pluginRegistryCpuRequest:
|
||||
description: Overrides the CPU request used in the plugin registry deployment. In cores. (500m = .5 cores). Default to 100m.
|
||||
type: string
|
||||
pluginRegistryImage:
|
||||
description: Overrides the container image used in the plugin registry deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
pluginRegistryIngress:
|
||||
description: Plugin registry ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
pluginRegistryMemoryLimit:
|
||||
description: Overrides the memory limit used in the plugin registry deployment. Defaults to 256Mi.
|
||||
type: string
|
||||
pluginRegistryMemoryRequest:
|
||||
description: Overrides the memory request used in the plugin registry deployment. Defaults to 16Mi.
|
||||
type: string
|
||||
pluginRegistryPullPolicy:
|
||||
description: Overrides the image pull policy used in the plugin registry deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
pluginRegistryRoute:
|
||||
description: Plugin registry route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
pluginRegistryUrl:
|
||||
description: Public URL of the plugin registry that serves sample ready-to-use devfiles. Set this ONLY when a use of an external devfile registry is needed. See the `externalPluginRegistry` field. By default, this will be automatically calculated by the Operator.
|
||||
type: string
|
||||
proxyPassword:
|
||||
description: Password of the proxy server. Only use when proxy configuration is required. See the `proxyURL`, `proxyUser` and `proxySecret` fields.
|
||||
type: string
|
||||
proxyPort:
|
||||
description: Port of the proxy server. Only use when configuring a proxy is required. See also the `proxyURL` and `nonProxyHosts` fields.
|
||||
type: string
|
||||
proxySecret:
|
||||
description: The secret that contains `user` and `password` for a proxy server. When the secret is defined, the `proxyUser` and `proxyPassword` are ignored. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.
|
||||
type: string
|
||||
proxyURL:
|
||||
description: URL (protocol+host name) of the proxy server. This drives the appropriate changes in the `JAVA_OPTS` and `https(s)_proxy` variables in the Che server and workspaces containers. Only use when configuring a proxy is required. Operator respects OpenShift cluster wide proxy configuration and no additional configuration is required, but defining `proxyUrl` in a custom resource leads to overrides the cluster proxy configuration with fields `proxyUrl`, `proxyPort`, `proxyUser` and `proxyPassword` from the custom resource. See the doc https://docs.openshift.com/container-platform/4.4/networking/enable-cluster-wide-proxy.html. See also the `proxyPort` and `nonProxyHosts` fields.
|
||||
type: string
|
||||
proxyUser:
|
||||
description: User name of the proxy server. Only use when configuring a proxy is required. See also the `proxyURL`, `proxyPassword` and `proxySecret` fields.
|
||||
type: string
|
||||
selfSignedCert:
|
||||
description: Deprecated. The value of this flag is ignored. The Che Operator will automatically detect whether the router certificate is self-signed and propagate it to other components, such as the Che server.
|
||||
type: boolean
|
||||
serverCpuLimit:
|
||||
description: Overrides the CPU limit used in the Che server deployment In cores. (500m = .5 cores). Default to 1.
|
||||
type: string
|
||||
serverCpuRequest:
|
||||
description: Overrides the CPU request used in the Che server deployment In cores. (500m = .5 cores). Default to 100m.
|
||||
type: string
|
||||
serverExposureStrategy:
|
||||
description: Sets the server and workspaces exposure type. Possible values are `multi-host`, `single-host`, `default-host`. Defaults to `multi-host`, which creates a separate ingress, or OpenShift routes, for every required endpoint. `single-host` makes Che exposed on a single host name with workspaces exposed on subpaths. Read the docs to learn about the limitations of this approach. Also consult the `singleHostExposureType` property to further configure how the Operator and the Che server make that happen on Kubernetes. `default-host` exposes the Che server on the host of the cluster. Read the docs to learn about the limitations of this approach.
|
||||
type: string
|
||||
serverMemoryLimit:
|
||||
description: Overrides the memory limit used in the Che server deployment. Defaults to 1Gi.
|
||||
type: string
|
||||
serverMemoryRequest:
|
||||
description: Overrides the memory request used in the Che server deployment. Defaults to 512Mi.
|
||||
type: string
|
||||
serverTrustStoreConfigMapName:
|
||||
description: Name of the ConfigMap with public certificates to add to Java trust store of the Che server. This is often required when adding the OpenShift OAuth provider, which has HTTPS endpoint signed with self-signed cert. The Che server must be aware of its CA cert to be able to request it. This is disabled by default. The Config Map must have `app.kubernetes.io/part-of=che.eclipse.org` label.
|
||||
type: string
|
||||
singleHostGatewayConfigMapLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: The labels that need to be present in the ConfigMaps representing the gateway configuration.
|
||||
type: object
|
||||
singleHostGatewayConfigSidecarImage:
|
||||
description: The image used for the gateway sidecar that provides configuration to the gateway. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
singleHostGatewayImage:
|
||||
description: The image used for the gateway in the single host mode. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
tlsSupport:
|
||||
description: Deprecated. Instructs the Operator to deploy Che in TLS mode. This is enabled by default. Disabling TLS sometimes cause malfunction of some Che components.
|
||||
type: boolean
|
||||
useInternalClusterSVCNames:
|
||||
description: Deprecated in favor of `disableInternalClusterSVCNames`.
|
||||
type: boolean
|
||||
workspaceNamespaceDefault:
|
||||
description: Defines Kubernetes default namespace in which user's workspaces are created for a case when a user does not override it. It's possible to use `<username>`, `<userid>` and `<workspaceid>` placeholders, such as che-workspace-<username>. In that case, a new namespace will be created for each user or workspace.
|
||||
type: string
|
||||
type: object
|
||||
storage:
|
||||
description: Configuration settings related to the persistent storage used by the Che installation.
|
||||
properties:
|
||||
postgresPVCStorageClassName:
|
||||
description: Storage class for the Persistent Volume Claim dedicated to the PostgreSQL database. When omitted or left blank, a default storage class is used.
|
||||
type: string
|
||||
preCreateSubPaths:
|
||||
description: Instructs the Che server to start a special Pod to pre-create a sub-path in the Persistent Volumes. Defaults to `false`, however it will need to enable it according to the configuration of your Kubernetes cluster.
|
||||
type: boolean
|
||||
pvcClaimSize:
|
||||
description: Size of the persistent volume claim for workspaces. Defaults to `10Gi`.
|
||||
type: string
|
||||
pvcJobsImage:
|
||||
description: Overrides the container image used to create sub-paths in the Persistent Volumes. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator. See also the `preCreateSubPaths` field.
|
||||
type: string
|
||||
pvcStrategy:
|
||||
description: Persistent volume claim strategy for the Che server. This Can be:`common` (all workspaces PVCs in one volume), `per-workspace` (one PVC per workspace for all declared volumes) and `unique` (one PVC per declared volume). Defaults to `common`.
|
||||
type: string
|
||||
workspacePVCStorageClassName:
|
||||
description: Storage class for the Persistent Volume Claims dedicated to the Che workspaces. When omitted or left blank, a default storage class is used.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: CheClusterStatus defines the observed state of Che installation
|
||||
properties:
|
||||
cheClusterRunning:
|
||||
description: Status of a Che installation. Can be `Available`, `Unavailable`, or `Available, Rolling Update in Progress`.
|
||||
type: string
|
||||
cheURL:
|
||||
description: Public URL to the Che server.
|
||||
type: string
|
||||
cheVersion:
|
||||
description: Current installed Che version.
|
||||
type: string
|
||||
dbProvisioned:
|
||||
description: Indicates that a PostgreSQL instance has been correctly provisioned or not.
|
||||
type: boolean
|
||||
devfileRegistryURL:
|
||||
description: Public URL to the devfile registry.
|
||||
type: string
|
||||
devworkspaceStatus:
|
||||
description: The status of the Devworkspace subsystem
|
||||
properties:
|
||||
gatewayHost:
|
||||
description: GatewayHost is the resolved host of the ingress/route. This is equal to the Host in the spec on Kubernetes but contains the actual host name of the route if Host is unspecified on OpenShift.
|
||||
type: string
|
||||
gatewayPhase:
|
||||
description: GatewayPhase specifies the phase in which the gateway deployment currently is. If the gateway is disabled, the phase is "Inactive".
|
||||
type: string
|
||||
message:
|
||||
description: Message contains further human-readable info for why the Che cluster is in the phase it currently is.
|
||||
type: string
|
||||
phase:
|
||||
description: Phase is the phase in which the Che cluster as a whole finds itself in.
|
||||
type: string
|
||||
reason:
|
||||
description: A brief CamelCase message indicating details about why the Che cluster is in this state.
|
||||
type: string
|
||||
workspaceBaseDomain:
|
||||
description: The resolved workspace base domain. This is either the copy of the explicitly defined property of the same name in the spec or, if it is undefined in the spec and we're running on OpenShift, the automatically resolved basedomain for routes.
|
||||
type: string
|
||||
type: object
|
||||
gitHubOAuthProvisioned:
|
||||
description: Indicates whether an Identity Provider instance, Keycloak or RH-SSO, has been configured to integrate with the GitHub OAuth.
|
||||
type: boolean
|
||||
helpLink:
|
||||
description: A URL that points to some URL where to find help related to the current Operator status.
|
||||
type: string
|
||||
keycloakProvisioned:
|
||||
description: Indicates whether an Identity Provider instance, Keycloak or RH-SSO, has been provisioned with realm, client and user.
|
||||
type: boolean
|
||||
keycloakURL:
|
||||
description: Public URL to the Identity Provider server, Keycloak or RH-SSO,.
|
||||
type: string
|
||||
message:
|
||||
description: A human readable message indicating details about why the Pod is in this condition.
|
||||
type: string
|
||||
openShiftOAuthUserCredentialsSecret:
|
||||
description: OpenShift OAuth secret in `openshift-config` namespace that contains user credentials for HTPasswd identity provider.
|
||||
type: string
|
||||
openShiftoAuthProvisioned:
|
||||
description: Indicates whether an Identity Provider instance, Keycloak or RH-SSO, has been configured to integrate with the OpenShift OAuth.
|
||||
type: boolean
|
||||
pluginRegistryURL:
|
||||
description: Public URL to the plugin registry.
|
||||
type: string
|
||||
reason:
|
||||
description: A brief CamelCase message indicating details about why the Pod is in this state.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
annotations:
|
||||
# Core bundle annotations.
|
||||
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
|
||||
operators.operatorframework.io.bundle.manifests.v1: manifests/
|
||||
operators.operatorframework.io.bundle.metadata.v1: metadata/
|
||||
operators.operatorframework.io.bundle.package.v1: eclipse-che-preview-kubernetes
|
||||
operators.operatorframework.io.bundle.channels.v1: next
|
||||
operators.operatorframework.io.bundle.channel.default.v1: next
|
||||
operators.operatorframework.io.metrics.builder: operator-sdk-v1.6.1+git
|
||||
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
|
||||
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3
|
||||
|
||||
# Annotations for testing.
|
||||
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
|
||||
operators.operatorframework.io.test.config.v1: tests/scorecard/
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: scorecard.operatorframework.io/v1alpha3
|
||||
kind: Configuration
|
||||
metadata:
|
||||
name: config
|
||||
stages:
|
||||
- parallel: true
|
||||
tests:
|
||||
- entrypoint:
|
||||
- scorecard-test
|
||||
- basic-check-spec
|
||||
image: quay.io/operator-framework/scorecard-test:v1.7.1
|
||||
labels:
|
||||
suite: basic
|
||||
test: basic-check-spec-test
|
||||
- entrypoint:
|
||||
- scorecard-test
|
||||
- olm-bundle-validation
|
||||
image: quay.io/operator-framework/scorecard-test:v1.7.1
|
||||
labels:
|
||||
suite: olm
|
||||
test: olm-bundle-validation-test
|
||||
- entrypoint:
|
||||
- scorecard-test
|
||||
- olm-crds-have-validation
|
||||
image: quay.io/operator-framework/scorecard-test:v1.7.1
|
||||
labels:
|
||||
suite: olm
|
||||
test: olm-crds-have-validation-test
|
||||
- entrypoint:
|
||||
- scorecard-test
|
||||
- olm-spec-descriptors
|
||||
image: quay.io/operator-framework/scorecard-test:v1.7.1
|
||||
labels:
|
||||
suite: olm
|
||||
test: olm-spec-descriptors-test
|
||||
|
|
@ -126,7 +126,7 @@ metadata:
|
|||
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
|
||||
repository: https://github.com/eclipse-che/che-operator
|
||||
support: Eclipse Foundation
|
||||
name: eclipse-che-preview-openshift.v7.40.0-383.next
|
||||
name: eclipse-che-preview-openshift.v7.41.0-385.next
|
||||
namespace: placeholder
|
||||
spec:
|
||||
apiservicedefinitions: {}
|
||||
|
|
@ -1002,6 +1002,14 @@ spec:
|
|||
- create
|
||||
- get
|
||||
- update
|
||||
- apiGroups:
|
||||
- metrics.k8s.io
|
||||
resources:
|
||||
- pods
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- monitoring.coreos.com
|
||||
resources:
|
||||
|
|
@ -1458,4 +1466,4 @@ spec:
|
|||
maturity: stable
|
||||
provider:
|
||||
name: Eclipse Foundation
|
||||
version: 7.40.0-383.next
|
||||
version: 7.41.0-385.next
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
FROM scratch
|
||||
|
||||
# Core bundle labels.
|
||||
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
|
||||
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
|
||||
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
|
||||
LABEL operators.operatorframework.io.bundle.package.v1=eclipse-che-preview-kubernetes
|
||||
LABEL operators.operatorframework.io.bundle.channels.v1=stable
|
||||
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable
|
||||
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.7.1+git
|
||||
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
|
||||
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
|
||||
|
||||
# Labels for testing.
|
||||
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
|
||||
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
|
||||
|
||||
# Copy files to locations specified by labels.
|
||||
COPY manifests /manifests/
|
||||
COPY metadata /metadata/
|
||||
COPY tests/scorecard /tests/scorecard/
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,322 +0,0 @@
|
|||
--- /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/generated/kubernetes/che-operator.clusterserviceversion.yaml 2021-12-03 13:11:53.737225153 +0000
|
||||
+++ /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/manifests/che-operator.clusterserviceversion.yaml 2021-12-03 13:14:32.620024660 +0000
|
||||
@@ -1,13 +1,15 @@
|
||||
#
|
||||
-# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
-# This program and the accompanying materials are made
|
||||
-# available under the terms of the Eclipse Public License 2.0
|
||||
-# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
+# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
+# This program and the accompanying materials are made
|
||||
+# available under the terms of the Eclipse Public License 2.0
|
||||
+# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
-# SPDX-License-Identifier: EPL-2.0
|
||||
+# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
-# Contributors:
|
||||
-# Red Hat, Inc. - initial API and implementation
|
||||
+# Contributors:
|
||||
+# Red Hat, Inc. - initial API and implementation
|
||||
+#
|
||||
+
|
||||
apiVersion: operators.coreos.com/v1alpha1
|
||||
kind: ClusterServiceVersion
|
||||
metadata:
|
||||
@@ -119,8 +121,8 @@
|
||||
capabilities: Seamless Upgrades
|
||||
categories: Developer Tools
|
||||
certified: "false"
|
||||
- containerImage: quay.io/eclipse/che-operator@sha256:cb67d1adb2976f1e53d9d2fbde659871db9223544a65da14f5dd8252e0e3382b
|
||||
- createdAt: "2021-11-24T12:12:56Z"
|
||||
+ containerImage: quay.io/eclipse/che-operator@sha256:68fd7b2d651c90c3e101fe836c99135ffe922a3b1927335dcde78de72e349e6d
|
||||
+ createdAt: "2021-12-03T13:11:54Z"
|
||||
description: A Kube-native development solution that delivers portable and collaborative
|
||||
developer workspaces.
|
||||
operatorframework.io/suggested-namespace: eclipse-che
|
||||
@@ -128,7 +130,7 @@
|
||||
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
|
||||
repository: https://github.com/eclipse-che/che-operator
|
||||
support: Eclipse Foundation
|
||||
- name: eclipse-che-preview-kubernetes.v7.39.2
|
||||
+ name: eclipse-che-preview-kubernetes.v7.40.0
|
||||
namespace: placeholder
|
||||
spec:
|
||||
apiservicedefinitions: {}
|
||||
@@ -834,6 +836,17 @@
|
||||
- create
|
||||
- apiGroups:
|
||||
- ""
|
||||
+ resourceNames:
|
||||
+ - workspace-preferences-configmap
|
||||
+ resources:
|
||||
+ - configmaps
|
||||
+ verbs:
|
||||
+ - create
|
||||
+ - delete
|
||||
+ - get
|
||||
+ - patch
|
||||
+ - apiGroups:
|
||||
+ - ""
|
||||
resources:
|
||||
- configmaps
|
||||
- persistentvolumeclaims
|
||||
@@ -867,6 +880,7 @@
|
||||
- create
|
||||
- delete
|
||||
- get
|
||||
+ - patch
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
@@ -1053,6 +1067,7 @@
|
||||
app.kubernetes.io/instance: che
|
||||
app.kubernetes.io/managed-by: olm
|
||||
app.kubernetes.io/name: che
|
||||
+ app.kubernetes.io/part-of: che.eclipse.org
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
@@ -1071,17 +1086,17 @@
|
||||
- name: OPERATOR_NAME
|
||||
value: che-operator
|
||||
- name: CHE_VERSION
|
||||
- value: 7.39.2
|
||||
+ value: 7.40.0
|
||||
- name: RELATED_IMAGE_che_server
|
||||
- value: quay.io/eclipse/che-server@sha256:ab06235f5077233e230f980fda79a893459fe957d4c464b8b60e43c99e1efefe
|
||||
+ value: quay.io/eclipse/che-server@sha256:cb199aaf25db067a7ee4362771b0133ce923472fee6e71acfa653f6392679e73
|
||||
- name: RELATED_IMAGE_dashboard
|
||||
- value: quay.io/eclipse/che-dashboard@sha256:55fa2d09b6f02424f5092894f4dd879abaa6fb32691f8843fbfeede46baf3bc1
|
||||
+ value: quay.io/eclipse/che-dashboard@sha256:04fa782a211721aa332116135e108aa928c6cd0b640261546336a297d0eca915
|
||||
- name: RELATED_IMAGE_plugin_registry
|
||||
- value: quay.io/eclipse/che-plugin-registry@sha256:b4bd7f89965e9da17132090f69a1dd8e80ace1b6ba12d699ad254048e1e4deb5
|
||||
+ value: quay.io/eclipse/che-plugin-registry@sha256:ded7b41cbfff13a00bbac2dc93c305e4bef9e457d32a47c1e023d3857311f58d
|
||||
- name: RELATED_IMAGE_devfile_registry
|
||||
- value: quay.io/eclipse/che-devfile-registry@sha256:01a666f27f545bb787f565ba96f42b3535a11f52f1411a07372a6dee0ac4534a
|
||||
+ value: quay.io/eclipse/che-devfile-registry@sha256:92f1aec9db749e752bb1c53f91bc1fca804f0e5b54d4470c4c356410c5bb3c06
|
||||
- name: RELATED_IMAGE_che_tls_secrets_creation_job
|
||||
- value: quay.io/eclipse/che-tls-secret-creator@sha256:6f0433641e60851454e2dbbc559daf0b8e5f398e8947ca05286b4d1f9916e3e5
|
||||
+ value: quay.io/eclipse/che-tls-secret-creator@sha256:54df0ccf598d230e278d512c3b44bdf24edb280f71da32643db46e0120bfaee0
|
||||
- name: RELATED_IMAGE_pvc_jobs
|
||||
value: registry.access.redhat.com/ubi8-minimal@sha256:16da4d4c5cb289433305050a06834b7328769f8a5257ad5b4a5006465a0379ff
|
||||
- name: RELATED_IMAGE_postgres
|
||||
@@ -1089,7 +1104,7 @@
|
||||
- name: RELATED_IMAGE_postgres_13_3
|
||||
value: quay.io/eclipse/che--centos--postgresql-13-centos7@sha256:71b24684d64da46f960682cc4216222a7e4ed8b1a31dd5a865b3e71afdea20d2
|
||||
- name: RELATED_IMAGE_keycloak
|
||||
- value: quay.io/eclipse/che-keycloak@sha256:665a7a88ceb0c46d2dd8b1f049636492406c866eeec204bdfd9925f06c825742
|
||||
+ value: quay.io/eclipse/che-keycloak@sha256:9e2c6e38a2c2baf574f7cc50391c1e63a249d4399be68048b50e013775842f21
|
||||
- name: RELATED_IMAGE_che_workspace_plugin_broker_metadata
|
||||
value: quay.io/eclipse/che-plugin-metadata-broker@sha256:df1ea2eadb28dbc97761adf4ea984af5ca941025a67b39c6abe373816a84bba9
|
||||
- name: RELATED_IMAGE_che_workspace_plugin_broker_artifacts
|
||||
@@ -1103,7 +1118,7 @@
|
||||
- name: RELATED_IMAGE_devworkspace_controller
|
||||
value: quay.io/devfile/devworkspace-controller@sha256:eacb8a72b9171e888ba54be44fa37b95a19165fda97a3fa44695ecdd3b855f56
|
||||
- name: RELATED_IMAGE_internal_rest_backup_server
|
||||
- value: quay.io/eclipse/che-backup-server-rest@sha256:24983ce54474bbe87239f23773faeb59a5471a6a4b20e731518ad5738bfea6d7
|
||||
+ value: quay.io/eclipse/che-backup-server-rest@sha256:023639e023ef5d1370e4381037b6c162733ffa11ef21d902a497034f8e9ab91a
|
||||
- name: RELATED_IMAGE_gateway_authentication_sidecar
|
||||
value: quay.io/openshift/origin-oauth-proxy@sha256:4814e2dc961acf570a6318294ae0f253426a3d387c9b128a2522f416d0cf6e2f
|
||||
- name: RELATED_IMAGE_gateway_authorization_sidecar
|
||||
@@ -1164,8 +1179,8 @@
|
||||
value: quay.io/eclipse/che-plugin-sidecar@sha256:56e7960857886a05fc459ed6e73a0a386f145a2474c228c2b7ccb97a1d18b4df
|
||||
- name: RELATED_IMAGE_che_plugin_sidecar_plugin_registry_image_IBZWQYJSGU3DUZDCHA3GGOJSGQYTQYRZMY2DAYRSGY2TIYRYMZRTINZTGA3TGNJWHFSTAZDDHBQTAMLEG5QWIYZTGFRTSOJSGVSTKNBWHFSDEYRRGE2A____
|
||||
value: quay.io/eclipse/che-plugin-sidecar@sha256:db86c92418b9f40b2654b8fc473073569e0dc8a01d7adc31c9925e5469d2b114
|
||||
- - name: RELATED_IMAGE_mta_vscode_extension_plugin_registry_image_IBZWQYJSGU3DUOBQGY3TMNJRG4YDQMBSGQYTSODGGUYDKMZSMEYGGNBSGNRDSMJQME4TENDDGFSGIMLFMU2WMMBTGJQTIZDCMIYDKMJYMI4TEMBVHA2A____
|
||||
- value: quay.io/windupeng/mta-vscode-extension@sha256:8067651708024198f50532a0c423b910a924c1dd1ee5f032a4dbb0518b920584
|
||||
+ - name: RELATED_IMAGE_mta_vscode_extension_plugin_registry_image_IBZWQYJSGU3DUNRRME4DSNZZG4ZDSOBQGQ2TQOJVGRSDKYLFGVQTKMBQGUZWCYJYMQYDKMDCGA3DKZLGMZTDMY3CMU3TIODEMFRTEYLCGIZGMNBWMJTA____
|
||||
+ value: quay.io/windupeng/mta-vscode-extension@sha256:61a897972980458954d5ae5a50053aa8d050b065efff6cbe748dac2ab22f46bf
|
||||
- name: RELATED_IMAGE_che_plugin_sidecar_plugin_registry_image_IBZWQYJSGU3DUNJQGJQWEY3GGY2TSOLGMRQWIYLCMVTDEOBZMRRWCZDDGVRTGMTDME3DEMTGMEYDEYRXGNQTOMTCGEYTGY3BGFSTKZJVMIYTOOJTG42Q____
|
||||
value: quay.io/eclipse/che-plugin-sidecar@sha256:502abcf6599fdadabef289dcadc5c32ca622fa02b73a72b113ca1e5e5b179375
|
||||
- name: RELATED_IMAGE_che_plugin_sidecar_plugin_registry_image_IBZWQYJSGU3DUZRTHE4GKM3GMZSDKMRQGBRTKNTCMY2TMYJWMY3WMOLFHBSGENDBMEZWMNRTHFQTMMJSGU4DKMDGGE3DSNBRGQ2TEOBSGYYGIY3FHBQQ____
|
||||
@@ -1186,12 +1201,12 @@
|
||||
value: quay.io/eclipse/che-plugin-sidecar@sha256:2ba8fffe6f2d64f82896367a34fdb657672984548c7904f906178e8e08294277
|
||||
- name: RELATED_IMAGE_che_plugin_sidecar_plugin_registry_image_IBZWQYJSGU3DUYTCGQYDIZTGMFQTCMRVGY2WEZLCGEZGENDDMQ4DCNRQMNTGCM3GMYZWKZRTMJSTIMRQGQZTAYJWGU3DEZRRMZSTIOBWGM4WGYTGGFTA____
|
||||
value: quay.io/eclipse/che-plugin-sidecar@sha256:bb404ffaa12565beb12b4cd8160cfa3ff3ef3be420430a6562f1fe48639cbf1f
|
||||
- - name: RELATED_IMAGE_che_theia_plugin_registry_image_IBZWQYJSGU3DUM3BGFSWGNTBMFTDAZTCGMYWGNJZMJRTANRYG43TEYRZMY2DEMBWMZTGGZBXG5SDQMJYHFQTGZBRME2TQY3FGAYTSZLFGFQWCYZVMRSQ____
|
||||
- value: quay.io/eclipse/che-theia@sha256:3a1ec6aaf0fb31c59bc068772b9f4206ffcd77d8189a3d1a58ce019ee1aac5de
|
||||
- - name: RELATED_IMAGE_che_machine_exec_plugin_registry_image_IBZWQYJSGU3DUNTGMZSGMNLGMU2DQZBXMEZTANTBGAYGINRRGM2TSNJSMFTDSN3EMM3WMZJWMNTDQZRYMQYGEZBXME4GCNBQMRTGGMJVMNRTONZSG4YQ____
|
||||
- value: quay.io/eclipse/che-machine-exec@sha256:6ffdf5fe48d7a306a00d6135952af97dc7fe6cf8f8d0bd7a8a40dfc15cc77271
|
||||
- - name: RELATED_IMAGE_che_theia_endpoint_runtime_binary_plugin_registry_image_IBZWQYJSGU3DUNRWMVTDEM3EGVTGMMZXGE4WGNZSGMYDOYRRGNTDOZBRGVTDAZBQGFSGEZJZMRRWIZRYMRRGKNLDHE4TKODEGYYWCZTDGNQWEMRSMFSQ____
|
||||
- value: quay.io/eclipse/che-theia-endpoint-runtime-binary@sha256:66ef23d5ff3719c72307b13f7d15f0d01dbe9dcdf8dbe5c9958d61afc3ab22ae
|
||||
+ - name: RELATED_IMAGE_che_theia_plugin_registry_image_IBZWQYJSGU3DUNZTGU4DQZRYMQ3GENJQG44DOMRWMU4TAYRUHBSTANTGGEYDKOJUG42TQYZZGM2TGMRTGM4WIYZRMVRTIOBRHEZGKN3GMFQTEZTDG4YQ____
|
||||
+ value: quay.io/eclipse/che-theia@sha256:73588f8d6b5078726e90b48e06f10594758c93532339dc1ec48192e7faa2fc71
|
||||
+ - name: RELATED_IMAGE_che_machine_exec_plugin_registry_image_IBZWQYJSGU3DUMTFGI2DIZDEGVRDGZLEGBRGCZRQGA2TOMDBGIYWCOJQGRRDIMBWGZQTGNLCGE3DCODBGBQTAZTCGBQWCMBSMUZTINLDGRTGCZLFMVRA____
|
||||
+ value: quay.io/eclipse/che-machine-exec@sha256:2e244dd5b3ed0baf00570a21a904b4066a35b1618a0a0fb0aa02e345c4faeeeb
|
||||
+ - name: RELATED_IMAGE_che_theia_endpoint_runtime_binary_plugin_registry_image_IBZWQYJSGU3DUZBUGMZDOYRUGBRWEM3BMFSTKZBVHFTDMMJYMMYGMZJVHEYDGNRYGNSWCNDGMU2WCNBRGJTDIZBUGIYWMNZYG5RTON3FMFTDSNBTGE2Q____
|
||||
+ value: quay.io/eclipse/che-theia-endpoint-runtime-binary@sha256:d4327b40cb3aae5d59f618c0fe5903683ea4fe5a412f4d421f787c77eaf94315
|
||||
- name: RELATED_IMAGE_che_editor_jupyter_plugin_registry_image_IBZWQYJSGU3DUOBTGQZTSYLFHFSWIY3BMEZWCOJXGUZTMNZUGIZTCNLBG44TCMTGHEZWKNBZHFTDIOJYGQ3WIYJQHE2GGNBYGAYDGMLFMFSTIYTBGQ3Q____
|
||||
value: index.docker.io/ksmster/che-editor-jupyter@sha256:83439ae9edcaa3a97536742315a7912f93e499f49847da094c480031eae4ba47
|
||||
- name: RELATED_IMAGE_dirigible_openshift_plugin_registry_image_IBZWQYJSGU3DUMZTGY2TMMZVMQYWKMBUGAZTMOJXMRSWCMBWG42GEYTCMRRTONBZMM2GEZJSMRRDEOJYGE4GCOJTMI4GKMLFGUZWGM3DGUYTINBRGEZQ____
|
||||
@@ -1204,6 +1219,10 @@
|
||||
value: index.docker.io/wsskeleton/eclipse-broadway@sha256:57c82cd806a56f69aa8663f68405d0778b628a29a64fb16881b11ce9f484dda7
|
||||
- name: RELATED_IMAGE_code_server_plugin_registry_image_IBZWQYJSGU3DUZLGGA3TEOBRGAYDIOJQHFRGEMTDGIZDQNBSGJSGMMTFHE4WCNLCME2WKNBVGBTGGZJXGU2DMYRYMZQTCOBWHA2TEZRSGNRGMNRXGUYQ____
|
||||
value: index.docker.io/codercom/code-server@sha256:ef07281004909bb2c228422df2e99a5ba5e450fce7546b8fa186852f23bf6751
|
||||
+ - name: RELATED_IMAGE_universal_developer_image_plugin_registry_image_IBZWQYJSGU3DUNJTMNSWGNJYMRSDCOJQMRSDCZJQGYYTAMBUG44GCZJYG44WIN3DGI4GCYTEHBTGGOBYGNSDKZTEMY2WEZJTMVRDMZJZGQZWMZJVMU3Q____
|
||||
+ value: quay.io/devfile/universal-developer-image@sha256:53cec58dd190dd1e06100478ae879d7c28abd8fc883d5fdf5be3eb6e943fe5e7
|
||||
+ - name: RELATED_IMAGE_che_code_plugin_registry_image_NFXHG2LEMVZHG___
|
||||
+ value: quay.io/che-incubator/che-code@sha256:518dd7a3890cd49910ea56a9a3912946940d274c7fca8a84e479df67b82857f1
|
||||
- name: RELATED_IMAGE_che_buildah_base_plugin_registry_image_IBZWQYJSGU3DUNBRG4ZDAM3EHA3DEOLFMRSDSMTGGE4DOYLGMQZWKYTCGNSDQZDDGI4DGMZYMQZTIOBQHFSWENZVMZTGGMTFGA4GCNBQGBTDQZBVGZRA____
|
||||
value: quay.io/eclipse/che-buildah-base@sha256:417203d8629edd92f187afd3ebb3d8dc28338d34809eb75ffc2e08a400f8d56b
|
||||
- name: RELATED_IMAGE_che_sidecar_workspace_data_sync_plugin_registry_image_IBZWQYJSGU3DUOBYMQYDCMRVHAZTOZBVME2TOY3CGI2GEYRTMVSDQMLFGZQTQZRUGEYTSYJVGA2DGYRXHEZDMYTEGJRGIMBRG4YTAOBVGRRTINDGGEYA____
|
||||
@@ -1222,8 +1241,8 @@
|
||||
value: quay.io/eclipse/che-dotnet-2.2@sha256:4463170271629f235ddcd53fddfe8ce19ac70d918fd008613b6983b4e5782139
|
||||
- name: RELATED_IMAGE_che_dotnet_3_1_devfile_registry_image_MNSTANJSGZTA____
|
||||
value: quay.io/eclipse/che-dotnet-3.1@sha256:58ac9fd8aeff6a1d0ceb8d6b4eb64d439cb55b0a8b42fbbd2ebb8e876cff140c
|
||||
- - name: RELATED_IMAGE_che_golang_1_17_devfile_registry_image_GE2DGZRSG42A____
|
||||
- value: quay.io/eclipse/che-golang-1.17@sha256:4386b101e197768ce569dddb53e96e647e9cc5184eb28ede61e8f782f5516004
|
||||
+ - name: RELATED_IMAGE_che_golang_1_17_devfile_registry_image_MVRDSNDCHBRQ____
|
||||
+ value: quay.io/eclipse/che-golang-1.17@sha256:f4a25d893351679f800f3d10cf8999a6685c74967d02488f34378fa8cf4811d6
|
||||
- name: RELATED_IMAGE_che_java11_gradle_devfile_registry_image_MNSTANJSGZTA____
|
||||
value: quay.io/eclipse/che-java11-gradle@sha256:2a3079baf4556b3a81d54def3d293ecd54109130155b36a968ccdfe0e4ebb4cf
|
||||
- name: RELATED_IMAGE_che_java11_maven_devfile_registry_image_MNSTANJSGZTA____
|
||||
@@ -1250,7 +1269,7 @@
|
||||
value: registry.access.redhat.com/ubi8-minimal@sha256:2f6b88c037c0503da7704bccd3fc73cb76324101af39ad28f16460e7bce98324
|
||||
- name: RELATED_IMAGE_ubi_minimal_devfile_registry_image_
|
||||
value: registry.access.redhat.com/ubi8/ubi-minimal@sha256:16da4d4c5cb289433305050a06834b7328769f8a5257ad5b4a5006465a0379ff
|
||||
- image: quay.io/eclipse/che-operator@sha256:cb67d1adb2976f1e53d9d2fbde659871db9223544a65da14f5dd8252e0e3382b
|
||||
+ image: quay.io/eclipse/che-operator@sha256:68fd7b2d651c90c3e101fe836c99135ffe922a3b1927335dcde78de72e349e6d
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 10
|
||||
@@ -1507,12 +1526,12 @@
|
||||
maturity: stable
|
||||
provider:
|
||||
name: Eclipse Foundation
|
||||
- replaces: eclipse-che-preview-kubernetes.v7.39.1
|
||||
- version: 7.39.2
|
||||
+ replaces: eclipse-che-preview-kubernetes.v7.39.2
|
||||
+ version: 7.40.0
|
||||
relatedImages:
|
||||
- - name: che-operator-7.39.2
|
||||
- image: quay.io/eclipse/che-operator@sha256:cb67d1adb2976f1e53d9d2fbde659871db9223544a65da14f5dd8252e0e3382b
|
||||
- # tag: quay.io/eclipse/che-operator:7.39.2
|
||||
+ - name: che-operator-7.40.0
|
||||
+ image: quay.io/eclipse/che-operator@sha256:68fd7b2d651c90c3e101fe836c99135ffe922a3b1927335dcde78de72e349e6d
|
||||
+ # tag: quay.io/eclipse/che-operator:7.40.0
|
||||
- name: configbump-0.1.4
|
||||
image: quay.io/che-incubator/configbump@sha256:175ff2ba1bd74429de192c0a9facf39da5699c6da9f151bd461b3dc8624dd532
|
||||
# tag: quay.io/che-incubator/configbump:0.1.4
|
||||
@@ -1531,36 +1550,36 @@
|
||||
- name: che--traefik-v2.5.0-eb30f9f09a65cee1fab5ef9c64cb4ec91b800dc3fdd738d62a9d4334f0114683
|
||||
image: quay.io/eclipse/che--traefik@sha256:eb30f9f09a65cee1fab5ef9c64cb4ec91b800dc3fdd738d62a9d4334f0114683
|
||||
# tag: quay.io/eclipse/che--traefik:v2.5.0-eb30f9f09a65cee1fab5ef9c64cb4ec91b800dc3fdd738d62a9d4334f0114683
|
||||
- - name: che-backup-server-rest-eeacd92
|
||||
- image: quay.io/eclipse/che-backup-server-rest@sha256:24983ce54474bbe87239f23773faeb59a5471a6a4b20e731518ad5738bfea6d7
|
||||
- # tag: quay.io/eclipse/che-backup-server-rest:eeacd92
|
||||
- - name: che-dashboard-7.39.2
|
||||
- image: quay.io/eclipse/che-dashboard@sha256:55fa2d09b6f02424f5092894f4dd879abaa6fb32691f8843fbfeede46baf3bc1
|
||||
- # tag: quay.io/eclipse/che-dashboard:7.39.2
|
||||
- - name: che-devfile-registry-7.39.2
|
||||
- image: quay.io/eclipse/che-devfile-registry@sha256:01a666f27f545bb787f565ba96f42b3535a11f52f1411a07372a6dee0ac4534a
|
||||
- # tag: quay.io/eclipse/che-devfile-registry:7.39.2
|
||||
+ - name: che-backup-server-rest-b6cc165
|
||||
+ image: quay.io/eclipse/che-backup-server-rest@sha256:023639e023ef5d1370e4381037b6c162733ffa11ef21d902a497034f8e9ab91a
|
||||
+ # tag: quay.io/eclipse/che-backup-server-rest:b6cc165
|
||||
+ - name: che-dashboard-7.40.0
|
||||
+ image: quay.io/eclipse/che-dashboard@sha256:04fa782a211721aa332116135e108aa928c6cd0b640261546336a297d0eca915
|
||||
+ # tag: quay.io/eclipse/che-dashboard:7.40.0
|
||||
+ - name: che-devfile-registry-7.40.0
|
||||
+ image: quay.io/eclipse/che-devfile-registry@sha256:92f1aec9db749e752bb1c53f91bc1fca804f0e5b54d4470c4c356410c5bb3c06
|
||||
+ # tag: quay.io/eclipse/che-devfile-registry:7.40.0
|
||||
- name: che-jwtproxy-0.10.0
|
||||
image: quay.io/eclipse/che-jwtproxy@sha256:881d1c91e7f5840314f25104ef5c0acee59ed484a5f9ef39daf3008725ea1033
|
||||
# tag: quay.io/eclipse/che-jwtproxy:0.10.0
|
||||
- - name: che-keycloak-7.39.2
|
||||
- image: quay.io/eclipse/che-keycloak@sha256:665a7a88ceb0c46d2dd8b1f049636492406c866eeec204bdfd9925f06c825742
|
||||
- # tag: quay.io/eclipse/che-keycloak:7.39.2
|
||||
+ - name: che-keycloak-7.40.0
|
||||
+ image: quay.io/eclipse/che-keycloak@sha256:9e2c6e38a2c2baf574f7cc50391c1e63a249d4399be68048b50e013775842f21
|
||||
+ # tag: quay.io/eclipse/che-keycloak:7.40.0
|
||||
- name: che-plugin-artifacts-broker-v3.4.0
|
||||
image: quay.io/eclipse/che-plugin-artifacts-broker@sha256:4891a6e19be9eae59372f4b31144653f9bd1284e0301ecfe896a099ca6a12b58
|
||||
# tag: quay.io/eclipse/che-plugin-artifacts-broker:v3.4.0
|
||||
- name: che-plugin-metadata-broker-v3.4.0
|
||||
image: quay.io/eclipse/che-plugin-metadata-broker@sha256:df1ea2eadb28dbc97761adf4ea984af5ca941025a67b39c6abe373816a84bba9
|
||||
# tag: quay.io/eclipse/che-plugin-metadata-broker:v3.4.0
|
||||
- - name: che-plugin-registry-7.39.2
|
||||
- image: quay.io/eclipse/che-plugin-registry@sha256:b4bd7f89965e9da17132090f69a1dd8e80ace1b6ba12d699ad254048e1e4deb5
|
||||
- # tag: quay.io/eclipse/che-plugin-registry:7.39.2
|
||||
- - name: che-server-7.39.2
|
||||
- image: quay.io/eclipse/che-server@sha256:ab06235f5077233e230f980fda79a893459fe957d4c464b8b60e43c99e1efefe
|
||||
- # tag: quay.io/eclipse/che-server:7.39.2
|
||||
- - name: che-tls-secret-creator-alpine-d1ed4ad
|
||||
- image: quay.io/eclipse/che-tls-secret-creator@sha256:6f0433641e60851454e2dbbc559daf0b8e5f398e8947ca05286b4d1f9916e3e5
|
||||
- # tag: quay.io/eclipse/che-tls-secret-creator:alpine-d1ed4ad
|
||||
+ - name: che-plugin-registry-7.40.0
|
||||
+ image: quay.io/eclipse/che-plugin-registry@sha256:ded7b41cbfff13a00bbac2dc93c305e4bef9e457d32a47c1e023d3857311f58d
|
||||
+ # tag: quay.io/eclipse/che-plugin-registry:7.40.0
|
||||
+ - name: che-server-7.40.0
|
||||
+ image: quay.io/eclipse/che-server@sha256:cb199aaf25db067a7ee4362771b0133ce923472fee6e71acfa653f6392679e73
|
||||
+ # tag: quay.io/eclipse/che-server:7.40.0
|
||||
+ - name: che-tls-secret-creator-alpine-01a4c34
|
||||
+ image: quay.io/eclipse/che-tls-secret-creator@sha256:54df0ccf598d230e278d512c3b44bdf24edb280f71da32643db46e0120bfaee0
|
||||
+ # tag: quay.io/eclipse/che-tls-secret-creator:alpine-01a4c34
|
||||
- name: origin-kube-rbac-proxy-4.7
|
||||
image: quay.io/openshift/origin-kube-rbac-proxy@sha256:fcce680899a37d6bdc621a58b6da0587d01cbb49a2d7b713e0d606dffc9f685a
|
||||
# tag: quay.io/openshift/origin-kube-rbac-proxy:4.7
|
||||
@@ -1615,9 +1634,9 @@
|
||||
- name: che-plugin-sidecar-@sha256:db86c92418b9f40b2654b8fc473073569e0dc8a01d7adc31c9925e5469d2b114
|
||||
image: quay.io/eclipse/che-plugin-sidecar@sha256:db86c92418b9f40b2654b8fc473073569e0dc8a01d7adc31c9925e5469d2b114
|
||||
# tag: quay.io/eclipse/che-plugin-sidecar@sha256:db86c92418b9f40b2654b8fc473073569e0dc8a01d7adc31c9925e5469d2b114
|
||||
- - name: mta-vscode-extension-@sha256:8067651708024198f50532a0c423b910a924c1dd1ee5f032a4dbb0518b920584
|
||||
- image: quay.io/windupeng/mta-vscode-extension@sha256:8067651708024198f50532a0c423b910a924c1dd1ee5f032a4dbb0518b920584
|
||||
- # tag: quay.io/windupeng/mta-vscode-extension@sha256:8067651708024198f50532a0c423b910a924c1dd1ee5f032a4dbb0518b920584
|
||||
+ - name: mta-vscode-extension-@sha256:61a897972980458954d5ae5a50053aa8d050b065efff6cbe748dac2ab22f46bf
|
||||
+ image: quay.io/windupeng/mta-vscode-extension@sha256:61a897972980458954d5ae5a50053aa8d050b065efff6cbe748dac2ab22f46bf
|
||||
+ # tag: quay.io/windupeng/mta-vscode-extension@sha256:61a897972980458954d5ae5a50053aa8d050b065efff6cbe748dac2ab22f46bf
|
||||
- name: che-plugin-sidecar-@sha256:502abcf6599fdadabef289dcadc5c32ca622fa02b73a72b113ca1e5e5b179375
|
||||
image: quay.io/eclipse/che-plugin-sidecar@sha256:502abcf6599fdadabef289dcadc5c32ca622fa02b73a72b113ca1e5e5b179375
|
||||
# tag: quay.io/eclipse/che-plugin-sidecar@sha256:502abcf6599fdadabef289dcadc5c32ca622fa02b73a72b113ca1e5e5b179375
|
||||
@@ -1648,15 +1667,15 @@
|
||||
- name: che-plugin-sidecar-@sha256:bb404ffaa12565beb12b4cd8160cfa3ff3ef3be420430a6562f1fe48639cbf1f
|
||||
image: quay.io/eclipse/che-plugin-sidecar@sha256:bb404ffaa12565beb12b4cd8160cfa3ff3ef3be420430a6562f1fe48639cbf1f
|
||||
# tag: quay.io/eclipse/che-plugin-sidecar@sha256:bb404ffaa12565beb12b4cd8160cfa3ff3ef3be420430a6562f1fe48639cbf1f
|
||||
- - name: che-theia-@sha256:3a1ec6aaf0fb31c59bc068772b9f4206ffcd77d8189a3d1a58ce019ee1aac5de
|
||||
- image: quay.io/eclipse/che-theia@sha256:3a1ec6aaf0fb31c59bc068772b9f4206ffcd77d8189a3d1a58ce019ee1aac5de
|
||||
- # tag: quay.io/eclipse/che-theia@sha256:3a1ec6aaf0fb31c59bc068772b9f4206ffcd77d8189a3d1a58ce019ee1aac5de
|
||||
- - name: che-machine-exec-@sha256:6ffdf5fe48d7a306a00d6135952af97dc7fe6cf8f8d0bd7a8a40dfc15cc77271
|
||||
- image: quay.io/eclipse/che-machine-exec@sha256:6ffdf5fe48d7a306a00d6135952af97dc7fe6cf8f8d0bd7a8a40dfc15cc77271
|
||||
- # tag: quay.io/eclipse/che-machine-exec@sha256:6ffdf5fe48d7a306a00d6135952af97dc7fe6cf8f8d0bd7a8a40dfc15cc77271
|
||||
- - name: che-theia-endpoint-runtime-binary-@sha256:66ef23d5ff3719c72307b13f7d15f0d01dbe9dcdf8dbe5c9958d61afc3ab22ae
|
||||
- image: quay.io/eclipse/che-theia-endpoint-runtime-binary@sha256:66ef23d5ff3719c72307b13f7d15f0d01dbe9dcdf8dbe5c9958d61afc3ab22ae
|
||||
- # tag: quay.io/eclipse/che-theia-endpoint-runtime-binary@sha256:66ef23d5ff3719c72307b13f7d15f0d01dbe9dcdf8dbe5c9958d61afc3ab22ae
|
||||
+ - name: che-theia-@sha256:73588f8d6b5078726e90b48e06f10594758c93532339dc1ec48192e7faa2fc71
|
||||
+ image: quay.io/eclipse/che-theia@sha256:73588f8d6b5078726e90b48e06f10594758c93532339dc1ec48192e7faa2fc71
|
||||
+ # tag: quay.io/eclipse/che-theia@sha256:73588f8d6b5078726e90b48e06f10594758c93532339dc1ec48192e7faa2fc71
|
||||
+ - name: che-machine-exec-@sha256:2e244dd5b3ed0baf00570a21a904b4066a35b1618a0a0fb0aa02e345c4faeeeb
|
||||
+ image: quay.io/eclipse/che-machine-exec@sha256:2e244dd5b3ed0baf00570a21a904b4066a35b1618a0a0fb0aa02e345c4faeeeb
|
||||
+ # tag: quay.io/eclipse/che-machine-exec@sha256:2e244dd5b3ed0baf00570a21a904b4066a35b1618a0a0fb0aa02e345c4faeeeb
|
||||
+ - name: che-theia-endpoint-runtime-binary-@sha256:d4327b40cb3aae5d59f618c0fe5903683ea4fe5a412f4d421f787c77eaf94315
|
||||
+ image: quay.io/eclipse/che-theia-endpoint-runtime-binary@sha256:d4327b40cb3aae5d59f618c0fe5903683ea4fe5a412f4d421f787c77eaf94315
|
||||
+ # tag: quay.io/eclipse/che-theia-endpoint-runtime-binary@sha256:d4327b40cb3aae5d59f618c0fe5903683ea4fe5a412f4d421f787c77eaf94315
|
||||
- name: che-editor-jupyter-@sha256:83439ae9edcaa3a97536742315a7912f93e499f49847da094c480031eae4ba47
|
||||
image: index.docker.io/ksmster/che-editor-jupyter@sha256:83439ae9edcaa3a97536742315a7912f93e499f49847da094c480031eae4ba47
|
||||
# tag: index.docker.io/ksmster/che-editor-jupyter@sha256:83439ae9edcaa3a97536742315a7912f93e499f49847da094c480031eae4ba47
|
||||
@@ -1675,6 +1694,12 @@
|
||||
- name: code-server-@sha256:ef07281004909bb2c228422df2e99a5ba5e450fce7546b8fa186852f23bf6751
|
||||
image: index.docker.io/codercom/code-server@sha256:ef07281004909bb2c228422df2e99a5ba5e450fce7546b8fa186852f23bf6751
|
||||
# tag: index.docker.io/codercom/code-server@sha256:ef07281004909bb2c228422df2e99a5ba5e450fce7546b8fa186852f23bf6751
|
||||
+ - name: universal-developer-image-@sha256:53cec58dd190dd1e06100478ae879d7c28abd8fc883d5fdf5be3eb6e943fe5e7
|
||||
+ image: quay.io/devfile/universal-developer-image@sha256:53cec58dd190dd1e06100478ae879d7c28abd8fc883d5fdf5be3eb6e943fe5e7
|
||||
+ # tag: quay.io/devfile/universal-developer-image@sha256:53cec58dd190dd1e06100478ae879d7c28abd8fc883d5fdf5be3eb6e943fe5e7
|
||||
+ - name: che-code-insiders
|
||||
+ image: quay.io/che-incubator/che-code@sha256:518dd7a3890cd49910ea56a9a3912946940d274c7fca8a84e479df67b82857f1
|
||||
+ # tag: quay.io/che-incubator/che-code:insiders
|
||||
- name: che-buildah-base-@sha256:417203d8629edd92f187afd3ebb3d8dc28338d34809eb75ffc2e08a400f8d56b
|
||||
image: quay.io/eclipse/che-buildah-base@sha256:417203d8629edd92f187afd3ebb3d8dc28338d34809eb75ffc2e08a400f8d56b
|
||||
# tag: quay.io/eclipse/che-buildah-base@sha256:417203d8629edd92f187afd3ebb3d8dc28338d34809eb75ffc2e08a400f8d56b
|
||||
@@ -1702,9 +1727,9 @@
|
||||
- name: che-dotnet-3.1-ce0526f
|
||||
image: quay.io/eclipse/che-dotnet-3.1@sha256:58ac9fd8aeff6a1d0ceb8d6b4eb64d439cb55b0a8b42fbbd2ebb8e876cff140c
|
||||
# tag: quay.io/eclipse/che-dotnet-3.1:ce0526f
|
||||
- - name: che-golang-1.17-143f274
|
||||
- image: quay.io/eclipse/che-golang-1.17@sha256:4386b101e197768ce569dddb53e96e647e9cc5184eb28ede61e8f782f5516004
|
||||
- # tag: quay.io/eclipse/che-golang-1.17:143f274
|
||||
+ - name: che-golang-1.17-eb94b8c
|
||||
+ image: quay.io/eclipse/che-golang-1.17@sha256:f4a25d893351679f800f3d10cf8999a6685c74967d02488f34378fa8cf4811d6
|
||||
+ # tag: quay.io/eclipse/che-golang-1.17:eb94b8c
|
||||
- name: che-java11-gradle-ce0526f
|
||||
image: quay.io/eclipse/che-java11-gradle@sha256:2a3079baf4556b3a81d54def3d293ecd54109130155b36a968ccdfe0e4ebb4cf
|
||||
# tag: quay.io/eclipse/che-java11-gradle:ce0526f
|
||||
|
|
@ -1,138 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.1
|
||||
creationTimestamp: null
|
||||
name: chebackupserverconfigurations.org.eclipse.che
|
||||
spec:
|
||||
group: org.eclipse.che
|
||||
names:
|
||||
kind: CheBackupServerConfiguration
|
||||
listKind: CheBackupServerConfigurationList
|
||||
plural: chebackupserverconfigurations
|
||||
singular: chebackupserverconfiguration
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: The `CheBackupServerConfiguration` custom resource allows defining and managing Eclipse Che Backup Server Configurations
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CheBackupServerConfigurationSpec defines the desired state of CheBackupServerConfiguration Only one type of backup server is allowed to be configured per CR.
|
||||
properties:
|
||||
awss3:
|
||||
description: Amazon S3 or compatible alternatives.
|
||||
properties:
|
||||
awsAccessKeySecretRef:
|
||||
description: Reference to secret that contains awsAccessKeyId and awsSecretAccessKey keys.
|
||||
type: string
|
||||
hostname:
|
||||
description: Server hostname, defaults to 's3.amazonaws.com'. Might be customized in case of alternative server.
|
||||
type: string
|
||||
port:
|
||||
description: Backup server port. Usually default value is used. Might be customized in case of alternative server.
|
||||
type: integer
|
||||
protocol:
|
||||
description: Protocol to use when connection to the server. Might be customized in case of alternative server.
|
||||
type: string
|
||||
repositoryPasswordSecretRef:
|
||||
description: Holds reference to a secret with restic repository password under 'repo-password' field to encrypt / decrypt its content.
|
||||
type: string
|
||||
repositoryPath:
|
||||
description: Bucket name and repository, e.g. bucket/repo
|
||||
type: string
|
||||
required:
|
||||
- awsAccessKeySecretRef
|
||||
- repositoryPasswordSecretRef
|
||||
- repositoryPath
|
||||
type: object
|
||||
rest:
|
||||
description: Rest backup server configuration.
|
||||
properties:
|
||||
credentialsSecretRef:
|
||||
description: Secret that contains username and password fields to login into restic server. Note, each repository is encrypted with own password. See ResticRepoPasswordSecretRef field.
|
||||
type: string
|
||||
hostname:
|
||||
description: Backup server host
|
||||
type: string
|
||||
port:
|
||||
description: Backup server port
|
||||
type: integer
|
||||
protocol:
|
||||
description: Protocol to use when connection to the server Defaults to https.
|
||||
type: string
|
||||
repositoryPasswordSecretRef:
|
||||
description: Holds reference to a secret with restic repository password under 'repo-password' field to encrypt / decrypt its content.
|
||||
type: string
|
||||
repositoryPath:
|
||||
description: Restic repository path
|
||||
type: string
|
||||
required:
|
||||
- hostname
|
||||
- repositoryPasswordSecretRef
|
||||
type: object
|
||||
sftp:
|
||||
description: Sftp backup server configuration.
|
||||
properties:
|
||||
hostname:
|
||||
description: Backup server host
|
||||
type: string
|
||||
port:
|
||||
description: Backup server port
|
||||
type: integer
|
||||
repositoryPasswordSecretRef:
|
||||
description: Holds reference to a secret with restic repository password under 'repo-password' field to encrypt / decrypt its content.
|
||||
type: string
|
||||
repositoryPath:
|
||||
description: Restic repository path, relative or absolute, e.g. /srv/repo
|
||||
type: string
|
||||
sshKeySecretRef:
|
||||
description: Private ssh key under 'ssh-privatekey' field for passwordless login
|
||||
type: string
|
||||
username:
|
||||
description: User login on the remote server
|
||||
type: string
|
||||
required:
|
||||
- hostname
|
||||
- repositoryPasswordSecretRef
|
||||
- repositoryPath
|
||||
- sshKeySecretRef
|
||||
- username
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: CheBackupServerConfigurationStatus defines the observed state of CheBackupServerConfiguration
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
--- /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/generated/kubernetes/org.eclipse.che_chebackupserverconfigurations_crd.yaml 2021-12-03 13:11:54.153253537 +0000
|
||||
+++ /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml 2021-12-03 13:11:55.181323677 +0000
|
||||
@@ -1,3 +1,15 @@
|
||||
+#
|
||||
+# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
+# This program and the accompanying materials are made
|
||||
+# available under the terms of the Eclipse Public License 2.0
|
||||
+# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
+#
|
||||
+# SPDX-License-Identifier: EPL-2.0
|
||||
+#
|
||||
+# Contributors:
|
||||
+# Red Hat, Inc. - initial API and implementation
|
||||
+#
|
||||
+
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.1
|
||||
creationTimestamp: null
|
||||
name: checlusterbackups.org.eclipse.che
|
||||
spec:
|
||||
group: org.eclipse.che
|
||||
names:
|
||||
kind: CheClusterBackup
|
||||
listKind: CheClusterBackupList
|
||||
plural: checlusterbackups
|
||||
singular: checlusterbackup
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: The `CheClusterBackup` custom resource allows defining and managing Eclipse Che backup
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CheClusterBackupSpec defines the desired state of CheClusterBackup
|
||||
properties:
|
||||
backupServerConfigRef:
|
||||
description: Name of custom resource with a backup server configuration to use for this backup. Note, UseInternalBackupServer field can configure internal backup server automatically.
|
||||
type: string
|
||||
useInternalBackupServer:
|
||||
description: Automatically setup pod with REST backup server and use the server in this configuration. Note, this flag takes precedence and will overwrite existing backup server configuration.
|
||||
type: boolean
|
||||
type: object
|
||||
status:
|
||||
description: CheClusterBackupStatus defines the observed state of CheClusterBackup
|
||||
properties:
|
||||
cheVersion:
|
||||
description: Version that was backed up
|
||||
type: string
|
||||
message:
|
||||
description: Message explaining the state of the backup or an error message
|
||||
type: string
|
||||
snapshotId:
|
||||
description: Last backup snapshot ID
|
||||
type: string
|
||||
stage:
|
||||
description: Describes backup progress
|
||||
type: string
|
||||
state:
|
||||
description: 'Backup progress state: InProgress, Failed, Succeeded'
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
--- /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/generated/kubernetes/org.eclipse.che_checlusterbackups_crd.yaml 2021-12-03 13:11:54.349266910 +0000
|
||||
+++ /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/manifests/org.eclipse.che_checlusterbackups_crd.yaml 2021-12-03 13:11:55.185323950 +0000
|
||||
@@ -1,3 +1,15 @@
|
||||
+#
|
||||
+# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
+# This program and the accompanying materials are made
|
||||
+# available under the terms of the Eclipse Public License 2.0
|
||||
+# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
+#
|
||||
+# SPDX-License-Identifier: EPL-2.0
|
||||
+#
|
||||
+# Contributors:
|
||||
+# Red Hat, Inc. - initial API and implementation
|
||||
+#
|
||||
+
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.1
|
||||
creationTimestamp: null
|
||||
name: checlusterrestores.org.eclipse.che
|
||||
spec:
|
||||
group: org.eclipse.che
|
||||
names:
|
||||
kind: CheClusterRestore
|
||||
listKind: CheClusterRestoreList
|
||||
plural: checlusterrestores
|
||||
singular: checlusterrestore
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: The `CheClusterRestore` custom resource allows defining and managing Eclipse Che restore
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CheClusterRestoreSpec defines the desired state of CheClusterRestore
|
||||
properties:
|
||||
backupServerConfigRef:
|
||||
description: Name of custom resource with a backup server configuration to use for this restore. Can be omitted if only one server configuration object exists within the namespace.
|
||||
type: string
|
||||
snapshotId:
|
||||
description: If omitted, latest snapshot will be used.
|
||||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: CheClusterRestoreStatus defines the observed state of CheClusterRestore
|
||||
properties:
|
||||
message:
|
||||
description: Restore result or error message
|
||||
type: string
|
||||
stage:
|
||||
description: Describes phase of restore progress
|
||||
type: string
|
||||
state:
|
||||
description: 'Restore progress state: InProgress, Failed, Succeeded'
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
--- /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/generated/kubernetes/org.eclipse.che_checlusterrestores_crd.yaml 2021-12-03 13:11:54.549280556 +0000
|
||||
+++ /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/manifests/org.eclipse.che_checlusterrestores_crd.yaml 2021-12-03 13:11:55.189324222 +0000
|
||||
@@ -1,3 +1,15 @@
|
||||
+#
|
||||
+# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
+# This program and the accompanying materials are made
|
||||
+# available under the terms of the Eclipse Public License 2.0
|
||||
+# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
+#
|
||||
+# SPDX-License-Identifier: EPL-2.0
|
||||
+#
|
||||
+# Contributors:
|
||||
+# Red Hat, Inc. - initial API and implementation
|
||||
+#
|
||||
+
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
|
|
@ -1,705 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.1
|
||||
creationTimestamp: null
|
||||
name: checlusters.org.eclipse.che
|
||||
spec:
|
||||
group: org.eclipse.che
|
||||
names:
|
||||
kind: CheCluster
|
||||
listKind: CheClusterList
|
||||
plural: checlusters
|
||||
singular: checluster
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: The `CheCluster` custom resource allows defining and managing a Che server installation
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Desired configuration of the Che installation. Based on these settings, the Operator automatically creates and maintains several ConfigMaps that will contain the appropriate environment variables the various components of the Che installation. These generated ConfigMaps must NOT be updated manually.
|
||||
properties:
|
||||
auth:
|
||||
description: Configuration settings related to the Authentication used by the Che installation.
|
||||
properties:
|
||||
debug:
|
||||
description: Debug internal identity provider.
|
||||
type: boolean
|
||||
externalIdentityProvider:
|
||||
description: 'Instructs the Operator on whether or not to deploy a dedicated Identity Provider (Keycloak or RH SSO instance). Instructs the Operator on whether to deploy a dedicated Identity Provider (Keycloak or RH-SSO instance). By default, a dedicated Identity Provider server is deployed as part of the Che installation. When `externalIdentityProvider` is `true`, no dedicated identity provider will be deployed by the Operator and you will need to provide details about the external identity provider you are about to use. See also all the other fields starting with: `identityProvider`.'
|
||||
type: boolean
|
||||
gatewayAuthenticationSidecarImage:
|
||||
description: Gateway sidecar responsible for authentication when NativeUserMode is enabled. See link:https://github.com/oauth2-proxy/oauth2-proxy[oauth2-proxy] or link:https://github.com/openshift/oauth-proxy[openshift/oauth-proxy].
|
||||
type: string
|
||||
gatewayAuthorizationSidecarImage:
|
||||
description: Gateway sidecar responsible for authorization when NativeUserMode is enabled. See link:https://github.com/brancz/kube-rbac-proxy[kube-rbac-proxy] or link:https://github.com/openshift/kube-rbac-proxy[openshift/kube-rbac-proxy]
|
||||
type: string
|
||||
gatewayHeaderRewriteSidecarImage:
|
||||
description: Deprecated. The value of this flag is ignored. Sidecar functionality is now implemented in Traefik plugin.
|
||||
type: string
|
||||
identityProviderAdminUserName:
|
||||
description: Overrides the name of the Identity Provider administrator user. Defaults to `admin`.
|
||||
type: string
|
||||
identityProviderClientId:
|
||||
description: Name of a Identity provider, Keycloak or RH-SSO, `client-id` that is used for Che. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to the value of the `flavour` field suffixed with `-public`.
|
||||
type: string
|
||||
identityProviderContainerResources:
|
||||
description: Identity provider container custom settings.
|
||||
properties:
|
||||
limits:
|
||||
description: Limits describes the maximum amount of compute resources allowed.
|
||||
properties:
|
||||
cpu:
|
||||
description: CPU, in cores. (500m = .5 cores)
|
||||
type: string
|
||||
memory:
|
||||
description: Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
|
||||
type: string
|
||||
type: object
|
||||
request:
|
||||
description: Requests describes the minimum amount of compute resources required.
|
||||
properties:
|
||||
cpu:
|
||||
description: CPU, in cores. (500m = .5 cores)
|
||||
type: string
|
||||
memory:
|
||||
description: Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
identityProviderImage:
|
||||
description: Overrides the container image used in the Identity Provider, Keycloak or RH-SSO, deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
identityProviderImagePullPolicy:
|
||||
description: Overrides the image pull policy used in the Identity Provider, Keycloak or RH-SSO, deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
identityProviderIngress:
|
||||
description: Ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
identityProviderPassword:
|
||||
description: Overrides the password of Keycloak administrator user. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to an auto-generated password.
|
||||
type: string
|
||||
identityProviderPostgresPassword:
|
||||
description: Password for a Identity Provider, Keycloak or RH-SSO, to connect to the database. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to an auto-generated password.
|
||||
type: string
|
||||
identityProviderPostgresSecret:
|
||||
description: 'The secret that contains `password` for the Identity Provider, Keycloak or RH-SSO, to connect to the database. When the secret is defined, the `identityProviderPostgresPassword` is ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `identityProviderPostgresPassword` is defined, then it will be used to connect to the database. 2. `identityProviderPostgresPassword` is not defined, then a new secret with the name `che-identity-postgres-secret` will be created with an auto-generated value for `password`. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.'
|
||||
type: string
|
||||
identityProviderRealm:
|
||||
description: Name of a Identity provider, Keycloak or RH-SSO, realm that is used for Che. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to the value of the `flavour` field.
|
||||
type: string
|
||||
identityProviderRoute:
|
||||
description: Route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
identityProviderSecret:
|
||||
description: 'The secret that contains `user` and `password` for Identity Provider. When the secret is defined, the `identityProviderAdminUserName` and `identityProviderPassword` are ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `identityProviderAdminUserName` and `identityProviderPassword` are defined, then they will be used. 2. `identityProviderAdminUserName` or `identityProviderPassword` are not defined, then a new secret with the name `che-identity-secret` will be created with default value `admin` for `user` and with an auto-generated value for `password`. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.'
|
||||
type: string
|
||||
identityProviderURL:
|
||||
description: Public URL of the Identity Provider server (Keycloak / RH-SSO server). Set this ONLY when a use of an external Identity Provider is needed. See the `externalIdentityProvider` field. By default, this will be automatically calculated and set by the Operator.
|
||||
type: string
|
||||
initialOpenShiftOAuthUser:
|
||||
description: For operating with the OpenShift OAuth authentication, create a new user account since the kubeadmin can not be used. If the value is true, then a new OpenShift OAuth user will be created for the HTPasswd identity provider. If the value is false and the user has already been created, then it will be removed. If value is an empty, then do nothing. The user's credentials are stored in the `openshift-oauth-user-credentials` secret in 'openshift-config' namespace by Operator. Note that this solution is Openshift 4 platform-specific.
|
||||
type: boolean
|
||||
nativeUserMode:
|
||||
description: Enables native user mode. Currently works only on OpenShift and DevWorkspace engine. Native User mode uses OpenShift OAuth directly as identity provider, without Keycloak.
|
||||
type: boolean
|
||||
oAuthClientName:
|
||||
description: Name of the OpenShift `OAuthClient` resource used to setup identity federation on the OpenShift side. Auto-generated when left blank. See also the `OpenShiftoAuth` field.
|
||||
type: string
|
||||
oAuthSecret:
|
||||
description: Name of the secret set in the OpenShift `OAuthClient` resource used to setup identity federation on the OpenShift side. Auto-generated when left blank. See also the `OAuthClientName` field.
|
||||
type: string
|
||||
openShiftoAuth:
|
||||
description: 'Enables the integration of the identity provider (Keycloak / RHSSO) with OpenShift OAuth. Empty value on OpenShift by default. This will allow users to directly login with their OpenShift user through the OpenShift login, and have their workspaces created under personal OpenShift namespaces. WARNING: the `kubeadmin` user is NOT supported, and logging through it will NOT allow accessing the Che Dashboard.'
|
||||
type: boolean
|
||||
updateAdminPassword:
|
||||
description: Forces the default `admin` Che user to update password on first login. Defaults to `false`.
|
||||
type: boolean
|
||||
type: object
|
||||
database:
|
||||
description: Configuration settings related to the database used by the Che installation.
|
||||
properties:
|
||||
chePostgresContainerResources:
|
||||
description: PostgreSQL container custom settings
|
||||
properties:
|
||||
limits:
|
||||
description: Limits describes the maximum amount of compute resources allowed.
|
||||
properties:
|
||||
cpu:
|
||||
description: CPU, in cores. (500m = .5 cores)
|
||||
type: string
|
||||
memory:
|
||||
description: Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
|
||||
type: string
|
||||
type: object
|
||||
request:
|
||||
description: Requests describes the minimum amount of compute resources required.
|
||||
properties:
|
||||
cpu:
|
||||
description: CPU, in cores. (500m = .5 cores)
|
||||
type: string
|
||||
memory:
|
||||
description: Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
chePostgresDb:
|
||||
description: PostgreSQL database name that the Che server uses to connect to the DB. Defaults to `dbche`.
|
||||
type: string
|
||||
chePostgresHostName:
|
||||
description: PostgreSQL Database host name that the Che server uses to connect to. Defaults is `postgres`. Override this value ONLY when using an external database. See field `externalDb`. In the default case it will be automatically set by the Operator.
|
||||
type: string
|
||||
chePostgresPassword:
|
||||
description: PostgreSQL password that the Che server uses to connect to the DB. When omitted or left blank, it will be set to an automatically generated value.
|
||||
type: string
|
||||
chePostgresPort:
|
||||
description: PostgreSQL Database port that the Che server uses to connect to. Defaults to 5432. Override this value ONLY when using an external database. See field `externalDb`. In the default case it will be automatically set by the Operator.
|
||||
type: string
|
||||
chePostgresSecret:
|
||||
description: 'The secret that contains PostgreSQL`user` and `password` that the Che server uses to connect to the DB. When the secret is defined, the `chePostgresUser` and `chePostgresPassword` are ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `chePostgresUser` and `chePostgresPassword` are defined, then they will be used to connect to the DB. 2. `chePostgresUser` or `chePostgresPassword` are not defined, then a new secret with the name `che-postgres-secret` will be created with default value of `pgche` for `user` and with an auto-generated value for `password`. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.'
|
||||
type: string
|
||||
chePostgresUser:
|
||||
description: PostgreSQL user that the Che server uses to connect to the DB. Defaults to `pgche`.
|
||||
type: string
|
||||
externalDb:
|
||||
description: 'Instructs the Operator on whether to deploy a dedicated database. By default, a dedicated PostgreSQL database is deployed as part of the Che installation. When `externalDb` is `true`, no dedicated database will be deployed by the Operator and you will need to provide connection details to the external DB you are about to use. See also all the fields starting with: `chePostgres`.'
|
||||
type: boolean
|
||||
postgresImage:
|
||||
description: Overrides the container image used in the PostgreSQL database deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
postgresImagePullPolicy:
|
||||
description: Overrides the image pull policy used in the PostgreSQL database deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
postgresVersion:
|
||||
description: 'Indicates a PostgreSQL version image to use. Allowed values are: `9.6` and `13.3`. Migrate your PostgreSQL database to switch from one version to another.'
|
||||
type: string
|
||||
pvcClaimSize:
|
||||
description: Size of the persistent volume claim for database. Defaults to `1Gi`. To update pvc storageclass that provisions it must support resize when Eclipse Che has been already deployed.
|
||||
type: string
|
||||
type: object
|
||||
devWorkspace:
|
||||
description: DevWorkspace operator configuration
|
||||
properties:
|
||||
controllerImage:
|
||||
description: Overrides the container image used in the DevWorkspace controller deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
enable:
|
||||
description: Deploys the DevWorkspace Operator in the cluster. Does nothing when a matching version of the Operator is already installed. Fails when a non-matching version of the Operator is already installed.
|
||||
type: boolean
|
||||
required:
|
||||
- enable
|
||||
type: object
|
||||
imagePuller:
|
||||
description: Kubernetes Image Puller configuration
|
||||
properties:
|
||||
enable:
|
||||
description: Install and configure the Community Supported Kubernetes Image Puller Operator. When set to `true` and no spec is provided, it will create a default KubernetesImagePuller object to be managed by the Operator. When set to `false`, the KubernetesImagePuller object will be deleted, and the Operator will be uninstalled, regardless of whether a spec is provided. If the `spec.images` field is empty, a set of recommended workspace-related images will be automatically detected and pre-pulled after installation. Note that while this Operator and its behavior is community-supported, its payload may be commercially-supported for pulling commercially-supported images.
|
||||
type: boolean
|
||||
spec:
|
||||
description: A KubernetesImagePullerSpec to configure the image puller in the CheCluster
|
||||
properties:
|
||||
affinity:
|
||||
type: string
|
||||
cachingCPULimit:
|
||||
type: string
|
||||
cachingCPURequest:
|
||||
type: string
|
||||
cachingIntervalHours:
|
||||
type: string
|
||||
cachingMemoryLimit:
|
||||
type: string
|
||||
cachingMemoryRequest:
|
||||
type: string
|
||||
configMapName:
|
||||
type: string
|
||||
daemonsetName:
|
||||
type: string
|
||||
deploymentName:
|
||||
type: string
|
||||
imagePullSecrets:
|
||||
type: string
|
||||
imagePullerImage:
|
||||
type: string
|
||||
images:
|
||||
type: string
|
||||
nodeSelector:
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- enable
|
||||
type: object
|
||||
k8s:
|
||||
description: Configuration settings specific to Che installations made on upstream Kubernetes.
|
||||
properties:
|
||||
ingressClass:
|
||||
description: 'Ingress class that will define the which controller will manage ingresses. Defaults to `nginx`. NB: This drives the `kubernetes.io/ingress.class` annotation on Che-related ingresses.'
|
||||
type: string
|
||||
ingressDomain:
|
||||
description: 'Global ingress domain for a Kubernetes cluster. This MUST be explicitly specified: there are no defaults.'
|
||||
type: string
|
||||
ingressStrategy:
|
||||
description: 'Strategy for ingress creation. Options are: `multi-host` (host is explicitly provided in ingress), `single-host` (host is provided, path-based rules) and `default-host` (no host is provided, path-based rules). Defaults to `multi-host` Deprecated in favor of `serverExposureStrategy` in the `server` section, which defines this regardless of the cluster type. When both are defined, the `serverExposureStrategy` option takes precedence.'
|
||||
type: string
|
||||
securityContextFsGroup:
|
||||
description: The FSGroup in which the Che Pod and workspace Pods containers runs in. Default value is `1724`.
|
||||
type: string
|
||||
securityContextRunAsUser:
|
||||
description: ID of the user the Che Pod and workspace Pods containers run as. Default value is `1724`.
|
||||
type: string
|
||||
singleHostExposureType:
|
||||
description: When the serverExposureStrategy is set to `single-host`, the way the server, registries and workspaces are exposed is further configured by this property. The possible values are `native`, which means that the server and workspaces are exposed using ingresses on K8s or `gateway` where the server and workspaces are exposed using a custom gateway based on link:https://doc.traefik.io/traefik/[Traefik]. All the endpoints whether backed by the ingress or gateway `route` always point to the subpaths on the same domain. Defaults to `native`.
|
||||
type: string
|
||||
tlsSecretName:
|
||||
description: Name of a secret that will be used to setup ingress TLS termination when TLS is enabled. When the field is empty string, the default cluster certificate will be used. See also the `tlsSupport` field.
|
||||
type: string
|
||||
type: object
|
||||
metrics:
|
||||
description: Configuration settings related to the metrics collection used by the Che installation.
|
||||
properties:
|
||||
enable:
|
||||
description: Enables `metrics` the Che server endpoint. Default to `true`.
|
||||
type: boolean
|
||||
type: object
|
||||
server:
|
||||
description: General configuration settings related to the Che server, the plugin and devfile registries
|
||||
properties:
|
||||
airGapContainerRegistryHostname:
|
||||
description: Optional host name, or URL, to an alternate container registry to pull images from. This value overrides the container registry host name defined in all the default container images involved in a Che deployment. This is particularly useful to install Che in a restricted environment.
|
||||
type: string
|
||||
airGapContainerRegistryOrganization:
|
||||
description: Optional repository name of an alternate container registry to pull images from. This value overrides the container registry organization defined in all the default container images involved in a Che deployment. This is particularly useful to install Eclipse Che in a restricted environment.
|
||||
type: string
|
||||
allowUserDefinedWorkspaceNamespaces:
|
||||
description: Deprecated. The value of this flag is ignored. Defines that a user is allowed to specify a Kubernetes namespace, or an OpenShift project, which differs from the default. It's NOT RECOMMENDED to set to `true` without OpenShift OAuth configured. The OpenShift infrastructure also uses this property.
|
||||
type: boolean
|
||||
cheClusterRoles:
|
||||
description: A comma-separated list of ClusterRoles that will be assigned to Che ServiceAccount. Each role must have `app.kubernetes.io/part-of=che.eclipse.org` label. Be aware that the Che Operator has to already have all permissions in these ClusterRoles to grant them.
|
||||
type: string
|
||||
cheDebug:
|
||||
description: Enables the debug mode for Che server. Defaults to `false`.
|
||||
type: string
|
||||
cheFlavor:
|
||||
description: Specifies a variation of the installation. The options are `che` for upstream Che installations, or `codeready` for link:https://developers.redhat.com/products/codeready-workspaces/overview[CodeReady Workspaces] installation. Override the default value only on necessary occasions.
|
||||
type: string
|
||||
cheHost:
|
||||
description: Public host name of the installed Che server. When value is omitted, the value it will be automatically set by the Operator. See the `cheHostTLSSecret` field.
|
||||
type: string
|
||||
cheHostTLSSecret:
|
||||
description: Name of a secret containing certificates to secure ingress or route for the custom host name of the installed Che server. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label. See the `cheHost` field.
|
||||
type: string
|
||||
cheImage:
|
||||
description: Overrides the container image used in Che deployment. This does NOT include the container image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
cheImagePullPolicy:
|
||||
description: Overrides the image pull policy used in Che deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
cheImageTag:
|
||||
description: Overrides the tag of the container image used in Che deployment. Omit it or leave it empty to use the default image tag provided by the Operator.
|
||||
type: string
|
||||
cheLogLevel:
|
||||
description: 'Log level for the Che server: `INFO` or `DEBUG`. Defaults to `INFO`.'
|
||||
type: string
|
||||
cheServerIngress:
|
||||
description: The Che server ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
cheServerRoute:
|
||||
description: The Che server route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
cheWorkspaceClusterRole:
|
||||
description: Custom cluster role bound to the user for the Che workspaces. The role must have `app.kubernetes.io/part-of=che.eclipse.org` label. The default roles are used when omitted or left blank.
|
||||
type: string
|
||||
customCheProperties:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Map of additional environment variables that will be applied in the generated `che` ConfigMap to be used by the Che server, in addition to the values already generated from other fields of the `CheCluster` custom resource (CR). When `customCheProperties` contains a property that would be normally generated in `che` ConfigMap from other CR fields, the value defined in the `customCheProperties` is used instead.
|
||||
type: object
|
||||
dashboardCpuLimit:
|
||||
description: Overrides the CPU limit used in the dashboard deployment. In cores. (500m = .5 cores). Default to 500m.
|
||||
type: string
|
||||
dashboardCpuRequest:
|
||||
description: Overrides the CPU request used in the dashboard deployment. In cores. (500m = .5 cores). Default to 100m.
|
||||
type: string
|
||||
dashboardImage:
|
||||
description: Overrides the container image used in the dashboard deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
dashboardImagePullPolicy:
|
||||
description: Overrides the image pull policy used in the dashboard deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
dashboardIngress:
|
||||
description: Dashboard ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
dashboardMemoryLimit:
|
||||
description: Overrides the memory limit used in the dashboard deployment. Defaults to 256Mi.
|
||||
type: string
|
||||
dashboardMemoryRequest:
|
||||
description: Overrides the memory request used in the dashboard deployment. Defaults to 16Mi.
|
||||
type: string
|
||||
dashboardRoute:
|
||||
description: Dashboard route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
devfileRegistryCpuLimit:
|
||||
description: Overrides the CPU limit used in the devfile registry deployment. In cores. (500m = .5 cores). Default to 500m.
|
||||
type: string
|
||||
devfileRegistryCpuRequest:
|
||||
description: Overrides the CPU request used in the devfile registry deployment. In cores. (500m = .5 cores). Default to 100m.
|
||||
type: string
|
||||
devfileRegistryImage:
|
||||
description: Overrides the container image used in the devfile registry deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
devfileRegistryIngress:
|
||||
description: The devfile registry ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
devfileRegistryMemoryLimit:
|
||||
description: Overrides the memory limit used in the devfile registry deployment. Defaults to 256Mi.
|
||||
type: string
|
||||
devfileRegistryMemoryRequest:
|
||||
description: Overrides the memory request used in the devfile registry deployment. Defaults to 16Mi.
|
||||
type: string
|
||||
devfileRegistryPullPolicy:
|
||||
description: Overrides the image pull policy used in the devfile registry deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
devfileRegistryRoute:
|
||||
description: The devfile registry route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
devfileRegistryUrl:
|
||||
description: Deprecated in favor of `externalDevfileRegistries` fields.
|
||||
type: string
|
||||
disableInternalClusterSVCNames:
|
||||
description: Disable internal cluster SVC names usage to communicate between components to speed up the traffic and avoid proxy issues.
|
||||
type: boolean
|
||||
externalDevfileRegistries:
|
||||
description: External devfile registries, that serves sample, ready-to-use devfiles. Configure this in addition to a dedicated devfile registry (when `externalDevfileRegistry` is `false`) or instead of it (when `externalDevfileRegistry` is `true`)
|
||||
items:
|
||||
description: Settings for a configuration of the external devfile registries.
|
||||
properties:
|
||||
url:
|
||||
description: Public URL of the devfile registry.
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
externalDevfileRegistry:
|
||||
description: Instructs the Operator on whether to deploy a dedicated devfile registry server. By default, a dedicated devfile registry server is started. When `externalDevfileRegistry` is `true`, no such dedicated server will be started by the Operator and configure at least one devfile registry with `externalDevfileRegistries` field.
|
||||
type: boolean
|
||||
externalPluginRegistry:
|
||||
description: Instructs the Operator on whether to deploy a dedicated plugin registry server. By default, a dedicated plugin registry server is started. When `externalPluginRegistry` is `true`, no such dedicated server will be started by the Operator and you will have to manually set the `pluginRegistryUrl` field.
|
||||
type: boolean
|
||||
gitSelfSignedCert:
|
||||
description: When enabled, the certificate from `che-git-self-signed-cert` ConfigMap will be propagated to the Che components and provide particular configuration for Git. Note, the `che-git-self-signed-cert` ConfigMap must have `app.kubernetes.io/part-of=che.eclipse.org` label.
|
||||
type: boolean
|
||||
nonProxyHosts:
|
||||
description: 'List of hosts that will be reached directly, bypassing the proxy. Specify wild card domain use the following form `.<DOMAIN>` and `|` as delimiter, for example: `localhost|.my.host.com|123.42.12.32` Only use when configuring a proxy is required. Operator respects OpenShift cluster wide proxy configuration and no additional configuration is required, but defining `nonProxyHosts` in a custom resource leads to merging non proxy hosts lists from the cluster proxy configuration and ones defined in the custom resources. See the doc https://docs.openshift.com/container-platform/4.4/networking/enable-cluster-wide-proxy.html. See also the `proxyURL` fields.'
|
||||
type: string
|
||||
pluginRegistryCpuLimit:
|
||||
description: Overrides the CPU limit used in the plugin registry deployment. In cores. (500m = .5 cores). Default to 500m.
|
||||
type: string
|
||||
pluginRegistryCpuRequest:
|
||||
description: Overrides the CPU request used in the plugin registry deployment. In cores. (500m = .5 cores). Default to 100m.
|
||||
type: string
|
||||
pluginRegistryImage:
|
||||
description: Overrides the container image used in the plugin registry deployment. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
pluginRegistryIngress:
|
||||
description: Plugin registry ingress custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
pluginRegistryMemoryLimit:
|
||||
description: Overrides the memory limit used in the plugin registry deployment. Defaults to 256Mi.
|
||||
type: string
|
||||
pluginRegistryMemoryRequest:
|
||||
description: Overrides the memory request used in the plugin registry deployment. Defaults to 16Mi.
|
||||
type: string
|
||||
pluginRegistryPullPolicy:
|
||||
description: Overrides the image pull policy used in the plugin registry deployment. Default value is `Always` for `nightly`, `next` or `latest` images, and `IfNotPresent` in other cases.
|
||||
type: string
|
||||
pluginRegistryRoute:
|
||||
description: Plugin registry route custom settings.
|
||||
properties:
|
||||
annotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
|
||||
type: object
|
||||
domain:
|
||||
description: 'Operator uses the domain to generate a hostname for a route. In a conjunction with labels it creates a route, which is served by a non-default Ingress controller. The generated host name will follow this pattern: `<route-name>-<route-namespace>.<domain>`.'
|
||||
type: string
|
||||
labels:
|
||||
description: Comma separated list of labels that can be used to organize and categorize objects by scoping and selecting.
|
||||
type: string
|
||||
type: object
|
||||
pluginRegistryUrl:
|
||||
description: Public URL of the plugin registry that serves sample ready-to-use devfiles. Set this ONLY when a use of an external devfile registry is needed. See the `externalPluginRegistry` field. By default, this will be automatically calculated by the Operator.
|
||||
type: string
|
||||
proxyPassword:
|
||||
description: Password of the proxy server. Only use when proxy configuration is required. See the `proxyURL`, `proxyUser` and `proxySecret` fields.
|
||||
type: string
|
||||
proxyPort:
|
||||
description: Port of the proxy server. Only use when configuring a proxy is required. See also the `proxyURL` and `nonProxyHosts` fields.
|
||||
type: string
|
||||
proxySecret:
|
||||
description: The secret that contains `user` and `password` for a proxy server. When the secret is defined, the `proxyUser` and `proxyPassword` are ignored. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.
|
||||
type: string
|
||||
proxyURL:
|
||||
description: URL (protocol+host name) of the proxy server. This drives the appropriate changes in the `JAVA_OPTS` and `https(s)_proxy` variables in the Che server and workspaces containers. Only use when configuring a proxy is required. Operator respects OpenShift cluster wide proxy configuration and no additional configuration is required, but defining `proxyUrl` in a custom resource leads to overrides the cluster proxy configuration with fields `proxyUrl`, `proxyPort`, `proxyUser` and `proxyPassword` from the custom resource. See the doc https://docs.openshift.com/container-platform/4.4/networking/enable-cluster-wide-proxy.html. See also the `proxyPort` and `nonProxyHosts` fields.
|
||||
type: string
|
||||
proxyUser:
|
||||
description: User name of the proxy server. Only use when configuring a proxy is required. See also the `proxyURL`, `proxyPassword` and `proxySecret` fields.
|
||||
type: string
|
||||
selfSignedCert:
|
||||
description: Deprecated. The value of this flag is ignored. The Che Operator will automatically detect whether the router certificate is self-signed and propagate it to other components, such as the Che server.
|
||||
type: boolean
|
||||
serverCpuLimit:
|
||||
description: Overrides the CPU limit used in the Che server deployment In cores. (500m = .5 cores). Default to 1.
|
||||
type: string
|
||||
serverCpuRequest:
|
||||
description: Overrides the CPU request used in the Che server deployment In cores. (500m = .5 cores). Default to 100m.
|
||||
type: string
|
||||
serverExposureStrategy:
|
||||
description: Sets the server and workspaces exposure type. Possible values are `multi-host`, `single-host`, `default-host`. Defaults to `multi-host`, which creates a separate ingress, or OpenShift routes, for every required endpoint. `single-host` makes Che exposed on a single host name with workspaces exposed on subpaths. Read the docs to learn about the limitations of this approach. Also consult the `singleHostExposureType` property to further configure how the Operator and the Che server make that happen on Kubernetes. `default-host` exposes the Che server on the host of the cluster. Read the docs to learn about the limitations of this approach.
|
||||
type: string
|
||||
serverMemoryLimit:
|
||||
description: Overrides the memory limit used in the Che server deployment. Defaults to 1Gi.
|
||||
type: string
|
||||
serverMemoryRequest:
|
||||
description: Overrides the memory request used in the Che server deployment. Defaults to 512Mi.
|
||||
type: string
|
||||
serverTrustStoreConfigMapName:
|
||||
description: Name of the ConfigMap with public certificates to add to Java trust store of the Che server. This is often required when adding the OpenShift OAuth provider, which has HTTPS endpoint signed with self-signed cert. The Che server must be aware of its CA cert to be able to request it. This is disabled by default. The Config Map must have `app.kubernetes.io/part-of=che.eclipse.org` label.
|
||||
type: string
|
||||
singleHostGatewayConfigMapLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: The labels that need to be present in the ConfigMaps representing the gateway configuration.
|
||||
type: object
|
||||
singleHostGatewayConfigSidecarImage:
|
||||
description: The image used for the gateway sidecar that provides configuration to the gateway. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
singleHostGatewayImage:
|
||||
description: The image used for the gateway in the single host mode. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
type: string
|
||||
tlsSupport:
|
||||
description: Deprecated. Instructs the Operator to deploy Che in TLS mode. This is enabled by default. Disabling TLS sometimes cause malfunction of some Che components.
|
||||
type: boolean
|
||||
useInternalClusterSVCNames:
|
||||
description: Deprecated in favor of `disableInternalClusterSVCNames`.
|
||||
type: boolean
|
||||
workspaceNamespaceDefault:
|
||||
description: Defines Kubernetes default namespace in which user's workspaces are created for a case when a user does not override it. It's possible to use `<username>`, `<userid>` and `<workspaceid>` placeholders, such as che-workspace-<username>. In that case, a new namespace will be created for each user or workspace.
|
||||
type: string
|
||||
type: object
|
||||
storage:
|
||||
description: Configuration settings related to the persistent storage used by the Che installation.
|
||||
properties:
|
||||
postgresPVCStorageClassName:
|
||||
description: Storage class for the Persistent Volume Claim dedicated to the PostgreSQL database. When omitted or left blank, a default storage class is used.
|
||||
type: string
|
||||
preCreateSubPaths:
|
||||
description: Instructs the Che server to start a special Pod to pre-create a sub-path in the Persistent Volumes. Defaults to `false`, however it will need to enable it according to the configuration of your Kubernetes cluster.
|
||||
type: boolean
|
||||
pvcClaimSize:
|
||||
description: Size of the persistent volume claim for workspaces. Defaults to `10Gi`.
|
||||
type: string
|
||||
pvcJobsImage:
|
||||
description: Overrides the container image used to create sub-paths in the Persistent Volumes. This includes the image tag. Omit it or leave it empty to use the default container image provided by the Operator. See also the `preCreateSubPaths` field.
|
||||
type: string
|
||||
pvcStrategy:
|
||||
description: Persistent volume claim strategy for the Che server. This Can be:`common` (all workspaces PVCs in one volume), `per-workspace` (one PVC per workspace for all declared volumes) and `unique` (one PVC per declared volume). Defaults to `common`.
|
||||
type: string
|
||||
workspacePVCStorageClassName:
|
||||
description: Storage class for the Persistent Volume Claims dedicated to the Che workspaces. When omitted or left blank, a default storage class is used.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: CheClusterStatus defines the observed state of Che installation
|
||||
properties:
|
||||
cheClusterRunning:
|
||||
description: Status of a Che installation. Can be `Available`, `Unavailable`, or `Available, Rolling Update in Progress`.
|
||||
type: string
|
||||
cheURL:
|
||||
description: Public URL to the Che server.
|
||||
type: string
|
||||
cheVersion:
|
||||
description: Current installed Che version.
|
||||
type: string
|
||||
dbProvisioned:
|
||||
description: Indicates that a PostgreSQL instance has been correctly provisioned or not.
|
||||
type: boolean
|
||||
devfileRegistryURL:
|
||||
description: Public URL to the devfile registry.
|
||||
type: string
|
||||
devworkspaceStatus:
|
||||
description: The status of the Devworkspace subsystem
|
||||
properties:
|
||||
gatewayHost:
|
||||
description: GatewayHost is the resolved host of the ingress/route. This is equal to the Host in the spec on Kubernetes but contains the actual host name of the route if Host is unspecified on OpenShift.
|
||||
type: string
|
||||
gatewayPhase:
|
||||
description: GatewayPhase specifies the phase in which the gateway deployment currently is. If the gateway is disabled, the phase is "Inactive".
|
||||
type: string
|
||||
message:
|
||||
description: Message contains further human-readable info for why the Che cluster is in the phase it currently is.
|
||||
type: string
|
||||
phase:
|
||||
description: Phase is the phase in which the Che cluster as a whole finds itself in.
|
||||
type: string
|
||||
reason:
|
||||
description: A brief CamelCase message indicating details about why the Che cluster is in this state.
|
||||
type: string
|
||||
workspaceBaseDomain:
|
||||
description: The resolved workspace base domain. This is either the copy of the explicitly defined property of the same name in the spec or, if it is undefined in the spec and we're running on OpenShift, the automatically resolved basedomain for routes.
|
||||
type: string
|
||||
type: object
|
||||
gitHubOAuthProvisioned:
|
||||
description: Indicates whether an Identity Provider instance, Keycloak or RH-SSO, has been configured to integrate with the GitHub OAuth.
|
||||
type: boolean
|
||||
helpLink:
|
||||
description: A URL that points to some URL where to find help related to the current Operator status.
|
||||
type: string
|
||||
keycloakProvisioned:
|
||||
description: Indicates whether an Identity Provider instance, Keycloak or RH-SSO, has been provisioned with realm, client and user.
|
||||
type: boolean
|
||||
keycloakURL:
|
||||
description: Public URL to the Identity Provider server, Keycloak or RH-SSO,.
|
||||
type: string
|
||||
message:
|
||||
description: A human readable message indicating details about why the Pod is in this condition.
|
||||
type: string
|
||||
openShiftOAuthUserCredentialsSecret:
|
||||
description: OpenShift OAuth secret in `openshift-config` namespace that contains user credentials for HTPasswd identity provider.
|
||||
type: string
|
||||
openShiftoAuthProvisioned:
|
||||
description: Indicates whether an Identity Provider instance, Keycloak or RH-SSO, has been configured to integrate with the OpenShift OAuth.
|
||||
type: boolean
|
||||
pluginRegistryURL:
|
||||
description: Public URL to the plugin registry.
|
||||
type: string
|
||||
reason:
|
||||
description: A brief CamelCase message indicating details about why the Pod is in this state.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
|
|
@ -1,116 +0,0 @@
|
|||
--- /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/generated/kubernetes/org_v1_che_crd.yaml 2021-12-03 13:11:53.941239072 +0000
|
||||
+++ /home/runner/work/che-operator/che-operator/bundle/stable/eclipse-che-preview-kubernetes/manifests/org_v1_che_crd.yaml 2021-12-03 13:11:55.181323677 +0000
|
||||
@@ -1,13 +1,15 @@
|
||||
#
|
||||
-# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
-# This program and the accompanying materials are made
|
||||
-# available under the terms of the Eclipse Public License 2.0
|
||||
-# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
+# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
+# This program and the accompanying materials are made
|
||||
+# available under the terms of the Eclipse Public License 2.0
|
||||
+# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
-# SPDX-License-Identifier: EPL-2.0
|
||||
+# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
-# Contributors:
|
||||
-# Red Hat, Inc. - initial API and implementation
|
||||
+# Contributors:
|
||||
+# Red Hat, Inc. - initial API and implementation
|
||||
+#
|
||||
+
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
@@ -113,7 +115,7 @@
|
||||
description: Password for a Identity Provider, Keycloak or RH-SSO, to connect to the database. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to an auto-generated password.
|
||||
type: string
|
||||
identityProviderPostgresSecret:
|
||||
- description: 'The secret that contains `password` for the Identity Provider, Keycloak or RH-SSO, to connect to the database. When the secret is defined, the `identityProviderPostgresPassword` is ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `identityProviderPostgresPassword` is defined, then it will be used to connect to the database. 2. `identityProviderPostgresPassword` is not defined, then a new secret with the name `che-identity-postgres-secret` will be created with an auto-generated value for `password`.'
|
||||
+ description: 'The secret that contains `password` for the Identity Provider, Keycloak or RH-SSO, to connect to the database. When the secret is defined, the `identityProviderPostgresPassword` is ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `identityProviderPostgresPassword` is defined, then it will be used to connect to the database. 2. `identityProviderPostgresPassword` is not defined, then a new secret with the name `che-identity-postgres-secret` will be created with an auto-generated value for `password`. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.'
|
||||
type: string
|
||||
identityProviderRealm:
|
||||
description: Name of a Identity provider, Keycloak or RH-SSO, realm that is used for Che. Override this when an external Identity Provider is in use. See the `externalIdentityProvider` field. When omitted or left blank, it is set to the value of the `flavour` field.
|
||||
@@ -134,7 +136,7 @@
|
||||
type: string
|
||||
type: object
|
||||
identityProviderSecret:
|
||||
- description: 'The secret that contains `user` and `password` for Identity Provider. When the secret is defined, the `identityProviderAdminUserName` and `identityProviderPassword` are ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `identityProviderAdminUserName` and `identityProviderPassword` are defined, then they will be used. 2. `identityProviderAdminUserName` or `identityProviderPassword` are not defined, then a new secret with the name `che-identity-secret` will be created with default value `admin` for `user` and with an auto-generated value for `password`.'
|
||||
+ description: 'The secret that contains `user` and `password` for Identity Provider. When the secret is defined, the `identityProviderAdminUserName` and `identityProviderPassword` are ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `identityProviderAdminUserName` and `identityProviderPassword` are defined, then they will be used. 2. `identityProviderAdminUserName` or `identityProviderPassword` are not defined, then a new secret with the name `che-identity-secret` will be created with default value `admin` for `user` and with an auto-generated value for `password`. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.'
|
||||
type: string
|
||||
identityProviderURL:
|
||||
description: Public URL of the Identity Provider server (Keycloak / RH-SSO server). Set this ONLY when a use of an external Identity Provider is needed. See the `externalIdentityProvider` field. By default, this will be automatically calculated and set by the Operator.
|
||||
@@ -198,7 +200,7 @@
|
||||
description: PostgreSQL Database port that the Che server uses to connect to. Defaults to 5432. Override this value ONLY when using an external database. See field `externalDb`. In the default case it will be automatically set by the Operator.
|
||||
type: string
|
||||
chePostgresSecret:
|
||||
- description: 'The secret that contains PostgreSQL`user` and `password` that the Che server uses to connect to the DB. When the secret is defined, the `chePostgresUser` and `chePostgresPassword` are ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `chePostgresUser` and `chePostgresPassword` are defined, then they will be used to connect to the DB. 2. `chePostgresUser` or `chePostgresPassword` are not defined, then a new secret with the name `che-postgres-secret` will be created with default value of `pgche` for `user` and with an auto-generated value for `password`.'
|
||||
+ description: 'The secret that contains PostgreSQL`user` and `password` that the Che server uses to connect to the DB. When the secret is defined, the `chePostgresUser` and `chePostgresPassword` are ignored. When the value is omitted or left blank, the one of following scenarios applies: 1. `chePostgresUser` and `chePostgresPassword` are defined, then they will be used to connect to the DB. 2. `chePostgresUser` or `chePostgresPassword` are not defined, then a new secret with the name `che-postgres-secret` will be created with default value of `pgche` for `user` and with an auto-generated value for `password`. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.'
|
||||
type: string
|
||||
chePostgresUser:
|
||||
description: PostgreSQL user that the Che server uses to connect to the DB. Defaults to `pgche`.
|
||||
@@ -215,6 +217,9 @@
|
||||
postgresVersion:
|
||||
description: 'Indicates a PostgreSQL version image to use. Allowed values are: `9.6` and `13.3`. Migrate your PostgreSQL database to switch from one version to another.'
|
||||
type: string
|
||||
+ pvcClaimSize:
|
||||
+ description: Size of the persistent volume claim for database. Defaults to `1Gi`. To update pvc storageclass that provisions it must support resize when Eclipse Che has been already deployed.
|
||||
+ type: string
|
||||
type: object
|
||||
devWorkspace:
|
||||
description: DevWorkspace operator configuration
|
||||
@@ -312,7 +317,7 @@
|
||||
description: Deprecated. The value of this flag is ignored. Defines that a user is allowed to specify a Kubernetes namespace, or an OpenShift project, which differs from the default. It's NOT RECOMMENDED to set to `true` without OpenShift OAuth configured. The OpenShift infrastructure also uses this property.
|
||||
type: boolean
|
||||
cheClusterRoles:
|
||||
- description: A comma-separated list of ClusterRoles that will be assigned to Che ServiceAccount. Be aware that the Che Operator has to already have all permissions in these ClusterRoles to grant them.
|
||||
+ description: A comma-separated list of ClusterRoles that will be assigned to Che ServiceAccount. Each role must have `app.kubernetes.io/part-of=che.eclipse.org` label. Be aware that the Che Operator has to already have all permissions in these ClusterRoles to grant them.
|
||||
type: string
|
||||
cheDebug:
|
||||
description: Enables the debug mode for Che server. Defaults to `false`.
|
||||
@@ -324,7 +329,7 @@
|
||||
description: Public host name of the installed Che server. When value is omitted, the value it will be automatically set by the Operator. See the `cheHostTLSSecret` field.
|
||||
type: string
|
||||
cheHostTLSSecret:
|
||||
- description: Name of a secret containing certificates to secure ingress or route for the custom host name of the installed Che server. See the `cheHost` field.
|
||||
+ description: Name of a secret containing certificates to secure ingress or route for the custom host name of the installed Che server. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label. See the `cheHost` field.
|
||||
type: string
|
||||
cheImage:
|
||||
description: Overrides the container image used in Che deployment. This does NOT include the container image tag. Omit it or leave it empty to use the default container image provided by the Operator.
|
||||
@@ -366,7 +371,7 @@
|
||||
type: string
|
||||
type: object
|
||||
cheWorkspaceClusterRole:
|
||||
- description: Custom cluster role bound to the user for the Che workspaces. The default roles are used when omitted or left blank.
|
||||
+ description: Custom cluster role bound to the user for the Che workspaces. The role must have `app.kubernetes.io/part-of=che.eclipse.org` label. The default roles are used when omitted or left blank.
|
||||
type: string
|
||||
customCheProperties:
|
||||
additionalProperties:
|
||||
@@ -486,7 +491,7 @@
|
||||
description: Instructs the Operator on whether to deploy a dedicated plugin registry server. By default, a dedicated plugin registry server is started. When `externalPluginRegistry` is `true`, no such dedicated server will be started by the Operator and you will have to manually set the `pluginRegistryUrl` field.
|
||||
type: boolean
|
||||
gitSelfSignedCert:
|
||||
- description: When enabled, the certificate from `che-git-self-signed-cert` ConfigMap will be propagated to the Che components and provide particular configuration for Git.
|
||||
+ description: When enabled, the certificate from `che-git-self-signed-cert` ConfigMap will be propagated to the Che components and provide particular configuration for Git. Note, the `che-git-self-signed-cert` ConfigMap must have `app.kubernetes.io/part-of=che.eclipse.org` label.
|
||||
type: boolean
|
||||
nonProxyHosts:
|
||||
description: 'List of hosts that will be reached directly, bypassing the proxy. Specify wild card domain use the following form `.<DOMAIN>` and `|` as delimiter, for example: `localhost|.my.host.com|123.42.12.32` Only use when configuring a proxy is required. Operator respects OpenShift cluster wide proxy configuration and no additional configuration is required, but defining `nonProxyHosts` in a custom resource leads to merging non proxy hosts lists from the cluster proxy configuration and ones defined in the custom resources. See the doc https://docs.openshift.com/container-platform/4.4/networking/enable-cluster-wide-proxy.html. See also the `proxyURL` fields.'
|
||||
@@ -546,7 +551,7 @@
|
||||
description: Port of the proxy server. Only use when configuring a proxy is required. See also the `proxyURL` and `nonProxyHosts` fields.
|
||||
type: string
|
||||
proxySecret:
|
||||
- description: The secret that contains `user` and `password` for a proxy server. When the secret is defined, the `proxyUser` and `proxyPassword` are ignored.
|
||||
+ description: The secret that contains `user` and `password` for a proxy server. When the secret is defined, the `proxyUser` and `proxyPassword` are ignored. The secret must have `app.kubernetes.io/part-of=che.eclipse.org` label.
|
||||
type: string
|
||||
proxyURL:
|
||||
description: URL (protocol+host name) of the proxy server. This drives the appropriate changes in the `JAVA_OPTS` and `https(s)_proxy` variables in the Che server and workspaces containers. Only use when configuring a proxy is required. Operator respects OpenShift cluster wide proxy configuration and no additional configuration is required, but defining `proxyUrl` in a custom resource leads to overrides the cluster proxy configuration with fields `proxyUrl`, `proxyPort`, `proxyUser` and `proxyPassword` from the custom resource. See the doc https://docs.openshift.com/container-platform/4.4/networking/enable-cluster-wide-proxy.html. See also the `proxyPort` and `nonProxyHosts` fields.
|
||||
@@ -573,7 +578,7 @@
|
||||
description: Overrides the memory request used in the Che server deployment. Defaults to 512Mi.
|
||||
type: string
|
||||
serverTrustStoreConfigMapName:
|
||||
- description: Name of the ConfigMap with public certificates to add to Java trust store of the Che server. This is often required when adding the OpenShift OAuth provider, which has HTTPS endpoint signed with self-signed cert. The Che server must be aware of its CA cert to be able to request it. This is disabled by default.
|
||||
+ description: Name of the ConfigMap with public certificates to add to Java trust store of the Che server. This is often required when adding the OpenShift OAuth provider, which has HTTPS endpoint signed with self-signed cert. The Che server must be aware of its CA cert to be able to request it. This is disabled by default. The Config Map must have `app.kubernetes.io/part-of=che.eclipse.org` label.
|
||||
type: string
|
||||
singleHostGatewayConfigMapLabels:
|
||||
additionalProperties:
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
annotations:
|
||||
# Core bundle annotations.
|
||||
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
|
||||
operators.operatorframework.io.bundle.manifests.v1: manifests/
|
||||
operators.operatorframework.io.bundle.metadata.v1: metadata/
|
||||
operators.operatorframework.io.bundle.package.v1: eclipse-che-preview-kubernetes
|
||||
operators.operatorframework.io.bundle.channels.v1: stable
|
||||
operators.operatorframework.io.bundle.channel.default.v1: stable
|
||||
operators.operatorframework.io.metrics.builder: operator-sdk-v1.6.1+git
|
||||
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
|
||||
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3
|
||||
|
||||
# Annotations for testing.
|
||||
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
|
||||
operators.operatorframework.io.test.config.v1: tests/scorecard/
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
apiVersion: scorecard.operatorframework.io/v1alpha3
|
||||
kind: Configuration
|
||||
metadata:
|
||||
name: config
|
||||
stages:
|
||||
- parallel: true
|
||||
tests:
|
||||
- entrypoint:
|
||||
- scorecard-test
|
||||
- basic-check-spec
|
||||
image: quay.io/operator-framework/scorecard-test:v1.7.1
|
||||
labels:
|
||||
suite: basic
|
||||
test: basic-check-spec-test
|
||||
- entrypoint:
|
||||
- scorecard-test
|
||||
- olm-bundle-validation
|
||||
image: quay.io/operator-framework/scorecard-test:v1.7.1
|
||||
labels:
|
||||
suite: olm
|
||||
test: olm-bundle-validation-test
|
||||
- entrypoint:
|
||||
- scorecard-test
|
||||
- olm-crds-have-validation
|
||||
image: quay.io/operator-framework/scorecard-test:v1.7.1
|
||||
labels:
|
||||
suite: olm
|
||||
test: olm-crds-have-validation-test
|
||||
- entrypoint:
|
||||
- scorecard-test
|
||||
- olm-spec-descriptors
|
||||
image: quay.io/operator-framework/scorecard-test:v1.7.1
|
||||
labels:
|
||||
suite: olm
|
||||
test: olm-spec-descriptors-test
|
||||
|
|
@ -1,100 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
- op: replace
|
||||
path: /spec/description
|
||||
value: |
|
||||
A collaborative Kubernetes-native development solution that delivers Kubernetes workspaces and in-browser IDE for rapid cloud application development.
|
||||
This operator installs PostgreSQL, Keycloak, Plugin registry, Devfile registry and the Eclipse Che server, as well as configures all these services.
|
||||
|
||||
## Prerequisites
|
||||
- Operator Lifecycle Manager (OLM) greater than or equal to v0.17.0 needs to be installed.
|
||||
|
||||
## How to Install
|
||||
Install `Eclipse Che Operator` by following instructions in top right button `Install`.
|
||||
|
||||
A new pod che-operator is created in `my-eclipse-che` namespace
|
||||
|
||||
```
|
||||
$ kubectl get pods --all-namespaces | grep my-eclipse-che
|
||||
my-eclipse-che che-operator-554c564476-fl98z 1/1 Running 0 13s
|
||||
```
|
||||
|
||||
The operator is now providing new Custom Resources Definitions: `checluster.org.eclipse.che`
|
||||
|
||||
Create a new Eclipse Che instance by creating a new CheCluster resource:
|
||||
|
||||
On the bottom of this page, there is a section `Custom Resource Definitions` with `Eclipse Che Cluster` name.
|
||||
|
||||
Click on `View YAML Example` *Link* and copy the content to a new file named `my-eclipse-che.yaml`
|
||||
**Important!** Make sure you provide **K8s.ingressDomain** which is a global ingress domain of your k8s cluster, for example, `gcp.my-ide.cloud`
|
||||
Create the new CheCluster by creating the resource in the `my-eclipse-che` namespace :
|
||||
```
|
||||
$ kubectl create -f my-eclipse-che.yaml -n my-eclipse-che
|
||||
```
|
||||
***important:*** The operator is only tracking resources in its own namespace. If CheCluster is not created in this namespace it's ignored.
|
||||
The operator will now create pods for Eclipse Che. The deployment status can be tracked by looking at the Operator logs by using the command:
|
||||
```
|
||||
$ kubectl logs -n my-eclipse-che che-operator-554c564476-fl98z
|
||||
```
|
||||
***important:*** pod name is different on each installation
|
||||
|
||||
When all Eclipse Che containers are running, the Eclipse Che URL is printed in the logs.
|
||||
|
||||
Eclipse Che URL can be tracked by searching for available trace:
|
||||
```
|
||||
$ kubectl logs -f -n my-eclipse-che che-operator-7b6b4bcb9c-m4m2m | grep "Eclipse Che is now available"
|
||||
time="2019-08-01T13:31:05Z" level=info msg="Eclipse Che is now available at: http://che-my-eclipse-che.gcp.my-ide.cloud"
|
||||
```
|
||||
When Eclipse Che is ready, the Eclipse Che URL is displayed in CheCluster resource in `status` section
|
||||
```
|
||||
$ kubectl describe checluster/eclipse-che -n my-eclipse-che
|
||||
```
|
||||
|
||||
```
|
||||
Status:
|
||||
Che Cluster Running: Available
|
||||
Che URL: http://che-my-eclipse-che.gcp.my-ide.cloud
|
||||
Che Version: 7.26.0
|
||||
...
|
||||
```
|
||||
|
||||
By opening this URL in a web browser, Eclipse Che is ready to use.
|
||||
|
||||
## Defaults
|
||||
By default, the operator deploys Eclipse Che with:
|
||||
* Bundled PostgreSQL and Keycloak
|
||||
* Common PVC strategy
|
||||
* Auto-generated passwords
|
||||
* TLS mode (secure ingresses)
|
||||
* Communicate between components using internal cluster SVC names
|
||||
|
||||
## Installation Options
|
||||
Eclipse Che operator installation options include:
|
||||
* Connection to external database and Keycloak
|
||||
* Configuration of default passwords and object names
|
||||
* PVC strategy (once shared PVC for all workspaces, PVC per workspace, or PVC per volume)
|
||||
* Authentication options
|
||||
|
||||
Use `kubectl edit checluster/eclipse-che -n my-eclipse-che` to update Eclipse Che configuration.
|
||||
See more configuration options in the [Installation guide](https://www.eclipse.org/che/docs/che-7/installation-guide/configuring-the-che-installation/).
|
||||
|
||||
### External Database and Keycloak
|
||||
Follow the guides to configure external [Keycloak](https://www.eclipse.org/che/docs/che-7/administration-guide/configuring-authorization/#configuring-che-to-use-external-keycloak_che)
|
||||
and [Database](https://www.eclipse.org/che/docs/che-7/administration-guide/external-database-setup/) setup.
|
||||
|
||||
### Certificates and TLS Secrets
|
||||
Eclipse Che uses auto-generated self-signed certificates by default and TLS mode is on.
|
||||
To use a default certificate of a Kubernetes cluster set empty value in `spec.k8s.tlsSecretName` field:
|
||||
```
|
||||
kubectl patch checluster/eclipse-che --type=json -p '[{"op": "replace", "path": "/spec/k8s/tlsSecretName", "value": ""}]' -n my-eclipse-che
|
||||
```
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
- op: replace
|
||||
path: /metadata/name
|
||||
value:
|
||||
eclipse-che-preview-kubernetes.v0.0.0
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019-2021 Red Hat, Inc.
|
||||
# This program and the accompanying materials are made
|
||||
# available under the terms of the Eclipse Public License 2.0
|
||||
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Contributors:
|
||||
# Red Hat, Inc. - initial API and implementation
|
||||
#
|
||||
|
||||
bases:
|
||||
- ../../manifests
|
||||
patchesJson6902:
|
||||
- path: che-operator.clusterserviceversion-description-patch.yaml
|
||||
target:
|
||||
group: operators.coreos.com
|
||||
version: v1alpha1
|
||||
kind: ClusterServiceVersion
|
||||
name: eclipse-che-preview-.v0.0.0
|
||||
- path: che-operator.clusterserviceversion-name-patch.yaml
|
||||
target:
|
||||
group: operators.coreos.com
|
||||
version: v1alpha1
|
||||
kind: ClusterServiceVersion
|
||||
name: eclipse-che-preview-.v0.0.0
|
||||
|
|
@ -605,6 +605,14 @@ rules:
|
|||
- create
|
||||
- get
|
||||
- update
|
||||
- apiGroups:
|
||||
- metrics.k8s.io
|
||||
resources:
|
||||
- pods
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- monitoring.coreos.com
|
||||
resources:
|
||||
|
|
|
|||
|
|
@ -605,6 +605,14 @@ rules:
|
|||
- create
|
||||
- get
|
||||
- update
|
||||
- apiGroups:
|
||||
- metrics.k8s.io
|
||||
resources:
|
||||
- pods
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- monitoring.coreos.com
|
||||
resources:
|
||||
|
|
|
|||
|
|
@ -228,16 +228,6 @@ releaseOlmFiles() {
|
|||
|
||||
echo "[INFO] releaseOlmFiles :: Validate changes"
|
||||
grep -q "version: "$RELEASE $openshift/che-operator.clusterserviceversion.yaml
|
||||
if [[ $channel == "stable" ]];then
|
||||
local kubernetes=$RELEASE_DIR/bundle/$channel/eclipse-che-preview-kubernetes/manifests
|
||||
grep -q "version: "$RELEASE $kubernetes/che-operator.clusterserviceversion.yaml
|
||||
|
||||
test -f $kubernetes/org_v1_che_crd.yaml
|
||||
test -f $kubernetes/org.eclipse.che_chebackupserverconfigurations_crd.yaml
|
||||
test -f $kubernetes/org.eclipse.che_checlusterbackups_crd.yaml
|
||||
test -f $kubernetes/org.eclipse.che_checlusterrestores_crd.yaml
|
||||
fi
|
||||
|
||||
test -f $openshift/org_v1_che_crd.yaml
|
||||
test -f $openshift/org.eclipse.che_chebackupserverconfigurations_crd.yaml
|
||||
test -f $openshift/org.eclipse.che_checlusterbackups_crd.yaml
|
||||
|
|
@ -256,7 +246,6 @@ pushOlmBundlesToQuayIo() {
|
|||
echo "[INFO] Push OLM bundles to quay.io"
|
||||
|
||||
. ${RELEASE_DIR}/olm/buildCatalog.sh -c tech-preview-stable-all-namespaces -p openshift -i quay.io/eclipse/eclipse-che-openshift-opm-catalog:test -f
|
||||
. ${RELEASE_DIR}/olm/buildCatalog.sh -c stable -p kubernetes -i quay.io/eclipse/eclipse-che-kubernetes-opm-catalog:test -f
|
||||
. ${RELEASE_DIR}/olm/buildCatalog.sh -c stable -p openshift -i quay.io/eclipse/eclipse-che-openshift-opm-catalog:test -f
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,29 +13,26 @@ WARNING: Please make sure to use the precise `v1.7.1` version of the `operator-s
|
|||
|
||||
## Eclipse Che OLM bundles
|
||||
|
||||
OLM (operator lifecycle manager) provides ways of installing operators. One of the convenient way how to achieve it is by using OLM bundles. See more about the format: https://github.com/openshift/enhancements/blob/master/enhancements/olm/operator-bundle.md. There two "next" platform-specific OLM bundles for Сhe operator:
|
||||
OLM (operator lifecycle manager) provides ways of installing operators. One of the convenient way how to achieve it is by using OLM bundles. See more about the format: https://github.com/openshift/enhancements/blob/master/enhancements/olm/operator-bundle.md. There two OLM bundles:
|
||||
|
||||
- `bundle/next/eclipse-che-preview-kubernetes/manifests`
|
||||
- `bundle/next/eclipse-che-preview-openshift/manifests`
|
||||
- `bundle/next/eclipse-che-preview-openshift/manifests` for the `next` channel
|
||||
- `bundle/stable/eclipse-che-preview-openshift/manifests` for the `stable` channel
|
||||
|
||||
Each bundle consists of a cluster service version file (CSV) and a custom resource definition file (CRD). CRD file describes `checlusters` Kubernetes api resource object(object fields name, format, description and so on). Kubernetes api needs this information to correctly store a custom resource object "checluster". Custom resource object users could modify to change Eclipse Che configuration. Che operator watches `checlusters` object and re-deploy Che with desired configuration. The CSV file contains all "deploy" and "permission" specific information, which OLM needs to install Eclipse Che operator.
|
||||
Each bundle consists of a cluster service version file (CSV) and a custom resource definition files (CRD). CRD file describes `checlusters` Kubernetes api resource object(object fields name, format, description and so on). Kubernetes api needs this information to correctly store a custom resource object "checluster". Custom resource object users could modify to change Eclipse Che configuration. Che operator watches `checlusters` object and re-deploy Che with desired configuration. The CSV file contains all "deploy" and "permission" specific information, which OLM needs to install Eclipse Che operator.
|
||||
|
||||
## Testing custom CatalogSource and next bundle images
|
||||
|
||||
To test next Che operator you have to use the OLM CatalogSource(index) image.
|
||||
CatalogSource image stores in the internal database information about OLM bundles with different versions of the Eclipse Che. For next channel (dependent on platform) Eclipse Che provides two CatalogSource images:
|
||||
CatalogSource image stores in the internal database information about OLM bundles with different versions of the Eclipse Che.
|
||||
Eclipse Che provides `quay.io/eclipse/eclipse-che-openshift-opm-catalog:next` catalog source images for the `next` channel.
|
||||
|
||||
- `quay.io/eclipse/eclipse-che-kubernetes-opm-catalog:next` for Kubernetes platform;
|
||||
- `quay.io/eclipse/eclipse-che-openshift-opm-catalog:next` for Openshift platform;
|
||||
For each new next version Eclipse Che provides the corresponding bundle image with name pattern:
|
||||
|
||||
For each new next version Eclipse Che provides next bundle image with name pattern:
|
||||
|
||||
`quay.io/eclipse/eclipse-che-<openshift|kubernetes>-opm-bundles:<CHE_VERSION>-<INCREMENTAL_VERSION>.next`
|
||||
`quay.io/eclipse/eclipse-che-openshift-opm-bundles:<CHE_VERSION>-<INCREMENTAL_VERSION>.next`
|
||||
|
||||
For example:
|
||||
|
||||
```
|
||||
quay.io/eclipse/eclipse-che-kubernetes-opm-bundles:7.18.0-1.next
|
||||
quay.io/eclipse/eclipse-che-openshift-opm-bundles:7.19.0-5.next
|
||||
```
|
||||
|
||||
|
|
@ -46,8 +43,8 @@ with your latest development changes and use it in the test scripts. To build th
|
|||
|
||||
```bash
|
||||
$ olm/buildCatalog.sh \
|
||||
-c (next|next-all-namespaces|stable|tech-preview-all-namespaces) \
|
||||
-p (openshift|kubernetes) \
|
||||
-c (next|stable) \
|
||||
-p (openshift) \
|
||||
-i <CATALOG_IMAGE>
|
||||
```
|
||||
|
||||
|
|
@ -65,60 +62,21 @@ If your CatalogSource image contains few bundles, you can test migration from pr
|
|||
$ ./testUpdate.sh -p openshift -c next -i <CATALOG_IMAGE> -n eclipse-che
|
||||
```
|
||||
|
||||
### Testing custom CatalogSource and bundle images on the Kubernetes
|
||||
# Install Eclipse Che from `stable` channel using testing catalog source image
|
||||
|
||||
To test your custom CatalogSource and bundle images on the Kubernetes you need to use public image registry. For "docker.io" you don't need any extra steps with pre-creation image repositories. But for "quay.io" you should pre-create the bundle and catalog image repositories manually and make them publicly visible. If you want to save repositories "private", then it is not necessary to pre-create them, but you need to provide an image pull secret to the cluster to prevent image pull 'unauthorized' error.
|
||||
Before publishing Eclipse Che in the community operator catalogs, we test new release using "stable" OLM channel
|
||||
from testing catalog source image.
|
||||
|
||||
To test the latest custom "next" bundle:
|
||||
|
||||
```bash
|
||||
$ ./testCatalog.sh -p kubernetes -c next -i <CATALOG_IMAGE> -n eclipse-che
|
||||
```
|
||||
|
||||
If your CatalogSource image contains few bundles, you can test migration from previous bundle to the latest:
|
||||
|
||||
```bash
|
||||
$ ./testUpdate.sh -p kubernetes -c next -i <CATALOG_IMAGE> -n eclipse-che
|
||||
```
|
||||
|
||||
Also you can test your changes without a public registry. You can use the minikube cluster and enable the minikube "registry" addon. For this purpose use the script:
|
||||
|
||||
```bash
|
||||
$ olm/minikube-registry-addon.sh
|
||||
```
|
||||
|
||||
This script creates port forward to minikube private registry: `127.0.0.1:5000`. Should be launched before test execution in the separated terminal. To stop this script you can use `Ctrl+C`. You can check that private registry was forwarded to the localhost:
|
||||
|
||||
```bash
|
||||
$ curl -X GET localhost:5000/v2/_catalog
|
||||
{"repositories":[]}
|
||||
```
|
||||
|
||||
With this private registry you can test Che operator from development bundle:
|
||||
|
||||
```bash
|
||||
$ olm/buildCatalog.sh -p kubernetes -c next -i 127.0.0.1:5000/test/catalog:test
|
||||
$ olm/testCatalog.sh -p kubernetes -c next -i 127.0.0.1:5000/test/catalog:test -n eclipse-che
|
||||
```
|
||||
|
||||
> Tips: If minikube was installed locally (driver 'none', local installation minikube), then registry is available on the host 0.0.0.0 without port forwarding but it requires `sudo`.
|
||||
|
||||
# Install stable "preview" Eclipse Che using chectl
|
||||
|
||||
Before publishing Eclipse Che in the community operator catalogs, we are testing new release using "stable" OLM channel
|
||||
from "preview" catalog source image.
|
||||
Stable "preview" Eclipse Che can be installed via chectl.
|
||||
|
||||
1. Create a custom catalog source yaml and define platform(openshift or kubernetes):
|
||||
1. Create a custom catalog source:
|
||||
|
||||
```yaml
|
||||
apiVersion: operators.coreos.com/v1alpha1
|
||||
kind: CatalogSource
|
||||
metadata:
|
||||
name: eclipse-che-preview-custom
|
||||
namespace: <che-namespace>
|
||||
namespace: eclipse-che
|
||||
spec:
|
||||
image: quay.io/eclipse/eclipse-che-<openshift|kubernetes>-opm-catalog:test
|
||||
image: quay.io/eclipse/eclipse-che-openshift-opm-catalog:test
|
||||
sourceType: grpc
|
||||
updateStrategy:
|
||||
registryPoll:
|
||||
|
|
@ -128,5 +86,5 @@ spec:
|
|||
2. Deploy Che operator:
|
||||
|
||||
```bash
|
||||
$ chectl server:deploy --installer=olm --platform=<CHECTL_SUPPORTED_PLATFORM> --catalog-source-yaml <PATH_TO_CUSTOM_CATALOG_SOURCE_YAML> --olm-channel=stable --package-manifest-name=eclipse-che-preview-<openshift|kubernetes>
|
||||
$ chectl server:deploy --installer=olm --platform=openshift --catalog-source-yaml <PATH_TO_CUSTOM_CATALOG_SOURCE_YAML> --olm-channel=stable --package-manifest-name=eclipse-che-preview-openshift
|
||||
```
|
||||
|
|
|
|||
125
olm/olm.sh
125
olm/olm.sh
|
|
@ -20,47 +20,31 @@ ROOT_DIR=$(dirname "${BASE_DIR}")
|
|||
source ${ROOT_DIR}/olm/check-yq.sh
|
||||
|
||||
function getPackageName() {
|
||||
platform="${1}"
|
||||
if [ -z "${1}" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "eclipse-che-preview-${platform}"
|
||||
echo "eclipse-che-preview-openshift"
|
||||
}
|
||||
|
||||
function getBundlePath() {
|
||||
platform="${1}"
|
||||
if [ -z "${platform}" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
channel="${2}"
|
||||
channel="${1}"
|
||||
if [ -z "${channel}" ]; then
|
||||
echo "[ERROR] Please specify second argument: 'channel'"
|
||||
echo "[ERROR] 'channel' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "${ROOT_DIR}/bundle/${channel}/$(getPackageName "${platform}")"
|
||||
echo "${ROOT_DIR}/bundle/${channel}/$(getPackageName)"
|
||||
}
|
||||
|
||||
createCatalogSource() {
|
||||
platform="${1}"
|
||||
if [ -z "${platform}" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
namespace="${2}"
|
||||
namespace="${1}"
|
||||
if [ -z "${namespace}" ]; then
|
||||
echo "[ERROR] Please specify second argument: 'namespace'"
|
||||
exit 1
|
||||
fi
|
||||
CATALOG_IMAGENAME="${3}"
|
||||
CATALOG_IMAGENAME="${2}"
|
||||
if [ -z "${CATALOG_IMAGENAME}" ]; then
|
||||
echo "[ERROR] Please specify third argument: 'catalog image'"
|
||||
exit 1
|
||||
fi
|
||||
packageName=$(getPackageName "${platform}")
|
||||
packageName=$(getPackageName)
|
||||
|
||||
kubectl apply -f - <<EOF
|
||||
apiVersion: operators.coreos.com/v1alpha1
|
||||
|
|
@ -79,23 +63,18 @@ EOF
|
|||
|
||||
# Create catalog source to communicate with OLM using google rpc protocol.
|
||||
createRpcCatalogSource() {
|
||||
platform="${1}"
|
||||
if [ -z "${platform}" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
namespace="${2}"
|
||||
namespace="${1}"
|
||||
if [ -z "${namespace}" ]; then
|
||||
echo "[ERROR] Please specify second argument: 'namespace'"
|
||||
echo "[ERROR] 'namespace' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
indexIP="${3}"
|
||||
indexIP="${2}"
|
||||
if [ -z "${indexIP}" ]; then
|
||||
echo "[ERROR] Please specify third argument: 'index IP'"
|
||||
echo "[ERROR] 'indexIP' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
packageName=$(getPackageName "${platform}")
|
||||
packageName=$(getPackageName)
|
||||
|
||||
cat <<EOF | oc apply -n "${namespace}" -f - || return $?
|
||||
apiVersion: operators.coreos.com/v1alpha1
|
||||
|
|
@ -111,24 +90,19 @@ EOF
|
|||
}
|
||||
|
||||
buildBundleImage() {
|
||||
platform="${1}"
|
||||
if [ -z "${platform}" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
CATALOG_BUNDLE_IMAGE_NAME_LOCAL="${2}"
|
||||
CATALOG_BUNDLE_IMAGE_NAME_LOCAL="${1}"
|
||||
if [ -z "${CATALOG_BUNDLE_IMAGE_NAME_LOCAL}" ]; then
|
||||
echo "[ERROR] Please specify second argument: 'opm bundle'"
|
||||
echo "[ERROR] 'opm bundle' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
channel="${3}"
|
||||
channel="${2}"
|
||||
if [ -z "${channel}" ]; then
|
||||
echo "[ERROR] Please specify third argument: 'channel'"
|
||||
echo "[ERROR] 'channel' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
imageTool="${4}"
|
||||
imageTool="${3}"
|
||||
if [ -z "${imageTool}" ]; then
|
||||
echo "[ERROR] Please specify fourth argument: 'image tool'"
|
||||
echo "[ERROR] 'imageTool' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
@ -136,7 +110,7 @@ buildBundleImage() {
|
|||
|
||||
pushd "${ROOT_DIR}" || exit
|
||||
|
||||
make bundle-build bundle-push channel="${channel}" BUNDLE_IMG="${CATALOG_BUNDLE_IMAGE_NAME_LOCAL}" platform="${platform}" IMAGE_TOOL="${imageTool}"
|
||||
make bundle-build bundle-push channel="${channel}" BUNDLE_IMG="${CATALOG_BUNDLE_IMAGE_NAME_LOCAL}" IMAGE_TOOL="${imageTool}"
|
||||
popd || exit
|
||||
}
|
||||
|
||||
|
|
@ -278,24 +252,19 @@ installOperatorMarketPlace() {
|
|||
}
|
||||
|
||||
installCatalogSource() {
|
||||
platform="${1}"
|
||||
if [ -z "${platform}" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
namespace="${2}"
|
||||
namespace="${1}"
|
||||
if [ -z "${namespace}" ]; then
|
||||
echo "[ERROR] Please specify second argument: 'namespace'"
|
||||
echo "[ERROR] 'namespace' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
CATALOG_IMAGENAME=${3}
|
||||
CATALOG_IMAGENAME=${2}
|
||||
if [ -z "${CATALOG_IMAGENAME}" ]; then
|
||||
echo "[ERROR] Please specify third argument: 'catalog image'"
|
||||
echo "[ERROR] 'catalog image' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
packageName=$(getPackageName "${platform}")
|
||||
packageName=$(getPackageName)
|
||||
|
||||
createCatalogSource "${platform}" "${namespace}" "${CATALOG_IMAGENAME}"
|
||||
createCatalogSource "${namespace}" "${CATALOG_IMAGENAME}"
|
||||
|
||||
i=0
|
||||
while [ $i -le 240 ]
|
||||
|
|
@ -316,19 +285,14 @@ installCatalogSource() {
|
|||
}
|
||||
|
||||
subscribeToInstallation() {
|
||||
platform="${1}"
|
||||
if [ -z "${platform}" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
namespace="${2}"
|
||||
namespace="${1}"
|
||||
if [ -z "${namespace}" ]; then
|
||||
echo "[ERROR] Please specify second argument: 'namespace'"
|
||||
echo "[ERROR] 'namespace' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
channel="${3}"
|
||||
channel="${2}"
|
||||
if [ -z "${channel}" ]; then
|
||||
echo "[ERROR] Please specify third argument: 'channel'"
|
||||
echo "[ERROR] 'channel' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
@ -340,7 +304,7 @@ subscribeToInstallation() {
|
|||
echo "[INFO] Subscribing to latest version for channel: '${channel}'"
|
||||
fi
|
||||
|
||||
packageName=$(getPackageName "${platform}")
|
||||
packageName=$(getPackageName)
|
||||
|
||||
kubectl apply -f - <<EOF
|
||||
apiVersion: operators.coreos.com/v1
|
||||
|
|
@ -379,17 +343,12 @@ EOF
|
|||
}
|
||||
|
||||
installPackage() {
|
||||
platform="${1}"
|
||||
if [ -z "${platform}" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
namespace="${2}"
|
||||
namespace="${1}"
|
||||
if [ -z "${namespace}" ]; then
|
||||
echo "[ERROR] Please specify second argument: 'namespace'"
|
||||
echo "[ERROR] 'namespace' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
packageName=$(getPackageName "${platform}")
|
||||
packageName=$(getPackageName)
|
||||
|
||||
echo "[INFO] Install operator package ${packageName} into namespace ${namespace}"
|
||||
installPlan=$(kubectl get subscription/"${packageName}" -n "${namespace}" -o jsonpath='{.status.installplan.name}')
|
||||
|
|
@ -406,7 +365,6 @@ installPackage() {
|
|||
|
||||
applyCheClusterCR() {
|
||||
CSV_NAME=${1}
|
||||
PLATFORM=${2}
|
||||
|
||||
CHECLUSTER=$(kubectl get csv ${CSV_NAME} -n ${NAMESPACE} -o yaml \
|
||||
| yq -r ".metadata.annotations[\"alm-examples\"] | fromjson | .[] | select(.kind == \"CheCluster\")" \
|
||||
|
|
@ -414,14 +372,8 @@ applyCheClusterCR() {
|
|||
| yq -r ".spec.server.serverExposureStrategy = \"${CHE_EXPOSURE_STRATEGY:-multi-host}\"" \
|
||||
| yq -r ".spec.imagePuller.enable = ${IMAGE_PULLER_ENABLE:-false}")
|
||||
|
||||
echo "${CHECLUSTER}"
|
||||
if [[ ${PLATFORM} == "kubernetes" ]]; then
|
||||
CHECLUSTER=$(echo "${CHECLUSTER}" | yq -r ".spec.k8s.ingressDomain = \"$(minikube ip).nip.io\"")
|
||||
fi
|
||||
|
||||
echo "[INFO] Creating Custom Resource: "
|
||||
echo "${CHECLUSTER}"
|
||||
|
||||
echo "${CHECLUSTER}" | kubectl apply -n $NAMESPACE -f -
|
||||
}
|
||||
|
||||
|
|
@ -474,17 +426,12 @@ waitCatalogSourcePod() {
|
|||
}
|
||||
|
||||
getBundleListFromCatalogSource() {
|
||||
platform="${1}"
|
||||
if [ -z "${platform}" ]; then
|
||||
echo "[ERROR] Please specify first argument: 'platform'"
|
||||
exit 1
|
||||
fi
|
||||
namespace="${2}"
|
||||
namespace="${1}"
|
||||
if [ -z "${namespace}" ]; then
|
||||
echo "[ERROR] Please specify second argument: 'namespace'"
|
||||
echo "[ERROR] 'namespace' is not specified"
|
||||
exit 1
|
||||
fi
|
||||
packageName=$(getPackageName "${platform}")
|
||||
packageName=$(getPackageName)
|
||||
# Wait until catalog pod is created in cluster
|
||||
waitCatalogSourcePod
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ set -u
|
|||
CURRENT_DIR=$(pwd)
|
||||
SCRIPT=$(readlink -f "${BASH_SOURCE[0]}")
|
||||
BASE_DIR=$(dirname "$(dirname "$SCRIPT")")
|
||||
PLATFORMS="kubernetes,openshift"
|
||||
STABLE_CHANNELS=("tech-preview-stable-all-namespaces" "stable")
|
||||
source "${BASE_DIR}/olm/check-yq.sh"
|
||||
|
||||
|
|
@ -35,7 +34,6 @@ while [[ "$#" -gt 0 ]]; do
|
|||
'-u'|'--user') GITHUB_USER="$2"; shift 1;;
|
||||
'-t'|'--token') GITHUB_TOKEN="$2"; shift 1;;
|
||||
'-f'|'--force') FORCE="-f"; shift 0;;
|
||||
'-p'|'--platform') PLATFORMS="$2";shift 1;;
|
||||
'-h'|'--help') usage;;
|
||||
esac
|
||||
shift 1
|
||||
|
|
@ -67,101 +65,84 @@ OPERATOR_REPO=$(dirname "$BASE_DIR")
|
|||
source ${OPERATOR_REPO}/.github/bin/common.sh
|
||||
getLatestsStableVersions
|
||||
|
||||
for platform in $(echo $PLATFORMS | tr "," " ")
|
||||
INDEX_IMAGE="quay.io/eclipse/eclipse-che-openshift-opm-catalog:test"
|
||||
packageName="eclipse-che-preview-openshift"
|
||||
echo
|
||||
echo "## Prepare the OperatorHub package to push to the 'community-operators' repository from local package '${packageName}'"
|
||||
manifestPackagesDir=$(mktemp -d -t che-openshift-manifest-packages-XXX)
|
||||
echo "[INFO] Folder with manifest packages: ${manifestPackagesDir}"
|
||||
packageBaseFolderPath="${manifestPackagesDir}/${packageName}"
|
||||
|
||||
sourcePackageFilePath="${packageBaseFolderPath}/package.yaml"
|
||||
communityOperatorsLocalGitFolder="${packageBaseFolderPath}/generated/community-operators"
|
||||
|
||||
echo " - Clone the 'community-operators' GitHub repository to temporary folder: ${communityOperatorsLocalGitFolder}"
|
||||
|
||||
GIT_REMOTE_FORK="https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${fork_org}/community-operators-prod.git"
|
||||
GIT_REMOTE_FORK_CLEAN="https://github.com/${fork_org}/community-operators-prod.git"
|
||||
rm -Rf "${communityOperatorsLocalGitFolder}"
|
||||
mkdir -p "${communityOperatorsLocalGitFolder}"
|
||||
git clone "${GIT_REMOTE_FORK}" "${communityOperatorsLocalGitFolder}" 2>&1 | sed -e 's/^/ /'
|
||||
cd "${communityOperatorsLocalGitFolder}"
|
||||
git remote add upstream https://github.com/k8s-operatorhub/community-operators
|
||||
git remote remove upstream
|
||||
git remote add upstream https://github.com/redhat-openshift-ecosystem/community-operators-prod
|
||||
|
||||
git fetch upstream ${base_branch}:upstream/${base_branch}
|
||||
|
||||
branch="update-eclipse-che"
|
||||
branch="${branch}-operator-${LAST_PACKAGE_VERSION}"
|
||||
echo
|
||||
echo " - Create branch '${branch}' in the local 'community-operators' repository: ${communityOperatorsLocalGitFolder}"
|
||||
git checkout upstream/${base_branch}
|
||||
git checkout -b "${branch}" 2>&1 | sed -e 's/^/ /'
|
||||
|
||||
subFolder="operators"
|
||||
folderToUpdate="${communityOperatorsLocalGitFolder}/${subFolder}/eclipse-che"
|
||||
destinationPackageFilePath="${folderToUpdate}/eclipse-che.package.yaml"
|
||||
|
||||
for channel in "${STABLE_CHANNELS[@]}"
|
||||
do
|
||||
INDEX_IMAGE="quay.io/eclipse/eclipse-che-${platform}-opm-catalog:test"
|
||||
packageName="eclipse-che-preview-${platform}"
|
||||
getLatestsStableVersions
|
||||
if [[ $channel == "tech-preview-stable-all-namespaces" ]];then
|
||||
# Add suffix for stable-<all-namespaces> channel
|
||||
LAST_PACKAGE_VERSION="$LAST_PACKAGE_VERSION-all-namespaces"
|
||||
PREVIOUS_PACKAGE_VERSION="${PREVIOUS_PACKAGE_VERSION}-all-namespaces"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "## Prepare the OperatorHub package to push to the 'community-operators' repository for platform '${platform}' from local package '${packageName}'"
|
||||
manifestPackagesDir=$(mktemp -d -t che-${platform}-manifest-packages-XXX)
|
||||
echo "[INFO] Folder with manifest packages: ${manifestPackagesDir}"
|
||||
packageBaseFolderPath="${manifestPackagesDir}/${packageName}"
|
||||
|
||||
sourcePackageFilePath="${packageBaseFolderPath}/package.yaml"
|
||||
communityOperatorsLocalGitFolder="${packageBaseFolderPath}/generated/community-operators"
|
||||
|
||||
echo " - Clone the 'community-operators' GitHub repository to temporary folder: ${communityOperatorsLocalGitFolder}"
|
||||
|
||||
if [ "${platform}" == "openshift" ]
|
||||
then
|
||||
GIT_REMOTE_FORK="https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${fork_org}/community-operators-prod.git"
|
||||
GIT_REMOTE_FORK_CLEAN="https://github.com/${fork_org}/community-operators-prod.git"
|
||||
fi
|
||||
rm -Rf "${communityOperatorsLocalGitFolder}"
|
||||
mkdir -p "${communityOperatorsLocalGitFolder}"
|
||||
git clone "${GIT_REMOTE_FORK}" "${communityOperatorsLocalGitFolder}" 2>&1 | sed -e 's/^/ /'
|
||||
cd "${communityOperatorsLocalGitFolder}"
|
||||
git remote add upstream https://github.com/k8s-operatorhub/community-operators
|
||||
if [ "${platform}" == "openshift" ]
|
||||
then
|
||||
git remote remove upstream
|
||||
git remote add upstream https://github.com/redhat-openshift-ecosystem/community-operators-prod
|
||||
echo " - Last package pre-release version of local package: ${LAST_PACKAGE_VERSION}"
|
||||
echo " - Last package release version of cloned 'community-operators' repository: ${PREVIOUS_PACKAGE_VERSION}"
|
||||
if [[ "${LAST_PACKAGE_VERSION}" == "${PREVIOUS_PACKAGE_VERSION}" ]] && [[ "${FORCE}" == "" ]]; then
|
||||
echo "#### ERROR ####"
|
||||
echo "Release ${LAST_PACKAGE_VERSION} already exists in the '${subFolder}/eclipse-che' package !"
|
||||
exit 1
|
||||
fi
|
||||
echo " => will create release '${LAST_PACKAGE_VERSION}' in the following package folder :'${folderToUpdate}'"
|
||||
|
||||
git fetch upstream ${base_branch}:upstream/${base_branch}
|
||||
|
||||
branch="update-eclipse-che"
|
||||
if [ "${platform}" == "kubernetes" ]
|
||||
then
|
||||
branch="${branch}-upstream"
|
||||
fi
|
||||
branch="${branch}-operator-${LAST_PACKAGE_VERSION}"
|
||||
mkdir -p "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests"
|
||||
mkdir -p "${folderToUpdate}/${LAST_PACKAGE_VERSION}/metadata"
|
||||
echo
|
||||
echo " - Create branch '${branch}' in the local 'community-operators' repository: ${communityOperatorsLocalGitFolder}"
|
||||
git checkout upstream/${base_branch}
|
||||
git checkout -b "${branch}" 2>&1 | sed -e 's/^/ /'
|
||||
sed \
|
||||
-e "/^ replaces: ${packageName}.v.*/d" \
|
||||
-e "/^ version: ${LAST_PACKAGE_VERSION}/i\ \ replaces: eclipse-che.v${PREVIOUS_PACKAGE_VERSION}" \
|
||||
-e "s/${packageName}/eclipse-che/" \
|
||||
"${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml" \
|
||||
> "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/eclipse-che.v${LAST_PACKAGE_VERSION}.clusterserviceversion.yaml"
|
||||
|
||||
platformSubFolder="operators"
|
||||
folderToUpdate="${communityOperatorsLocalGitFolder}/${platformSubFolder}/eclipse-che"
|
||||
destinationPackageFilePath="${folderToUpdate}/eclipse-che.package.yaml"
|
||||
echo " - Update the CRD files"
|
||||
cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests/org_v1_che_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/checlusters.org.eclipse.che.crd.yaml"
|
||||
cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml"
|
||||
cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests//org.eclipse.che_checlusterbackups_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_checlusterbackups_crd.yaml"
|
||||
cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/manifests//org.eclipse.che_checlusterrestores_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_checlusterrestores_crd.yaml"
|
||||
echo
|
||||
|
||||
for channel in "${STABLE_CHANNELS[@]}"
|
||||
do
|
||||
getLatestsStableVersions
|
||||
if [[ $channel == "tech-preview-stable-all-namespaces" && $platform == "kubernetes" ]];then
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ $channel == "tech-preview-stable-all-namespaces" ]];then
|
||||
# Add suffix for stable-<all-namespaces> channel
|
||||
LAST_PACKAGE_VERSION="$LAST_PACKAGE_VERSION-all-namespaces"
|
||||
PREVIOUS_PACKAGE_VERSION="${PREVIOUS_PACKAGE_VERSION}-all-namespaces"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo " - Last package pre-release version of local package: ${LAST_PACKAGE_VERSION}"
|
||||
echo " - Last package release version of cloned 'community-operators' repository: ${PREVIOUS_PACKAGE_VERSION}"
|
||||
if [[ "${LAST_PACKAGE_VERSION}" == "${PREVIOUS_PACKAGE_VERSION}" ]] && [[ "${FORCE}" == "" ]]; then
|
||||
echo "#### ERROR ####"
|
||||
echo "Release ${LAST_PACKAGE_VERSION} already exists in the '${platformSubFolder}/eclipse-che' package !"
|
||||
exit 1
|
||||
fi
|
||||
echo " => will create release '${LAST_PACKAGE_VERSION}' in the following package folder :'${folderToUpdate}'"
|
||||
|
||||
mkdir -p "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests"
|
||||
mkdir -p "${folderToUpdate}/${LAST_PACKAGE_VERSION}/metadata"
|
||||
echo
|
||||
sed \
|
||||
-e "/^ replaces: ${packageName}.v.*/d" \
|
||||
-e "/^ version: ${LAST_PACKAGE_VERSION}/i\ \ replaces: eclipse-che.v${PREVIOUS_PACKAGE_VERSION}" \
|
||||
-e "s/${packageName}/eclipse-che/" \
|
||||
"${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-$platform/manifests/che-operator.clusterserviceversion.yaml" \
|
||||
> "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/eclipse-che.v${LAST_PACKAGE_VERSION}.clusterserviceversion.yaml"
|
||||
|
||||
echo " - Update the CRD files"
|
||||
cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-$platform/manifests/org_v1_che_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/checlusters.org.eclipse.che.crd.yaml"
|
||||
cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-$platform/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml"
|
||||
cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-$platform/manifests//org.eclipse.che_checlusterbackups_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_checlusterbackups_crd.yaml"
|
||||
cp "${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-$platform/manifests//org.eclipse.che_checlusterrestores_crd.yaml" "${folderToUpdate}/${LAST_PACKAGE_VERSION}/manifests/org.eclipse.che_checlusterrestores_crd.yaml"
|
||||
echo
|
||||
|
||||
cp ${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-$platform/metadata/* "${folderToUpdate}/${LAST_PACKAGE_VERSION}/metadata"
|
||||
sed \
|
||||
-e 's/operators.operatorframework.io.bundle.package.v1: eclipse-che-preview-'${platform}'/operators.operatorframework.io.bundle.package.v1: eclipse-che/' \
|
||||
-e '/operators.operatorframework.io.test.config.v1/d' \
|
||||
-e '/operators.operatorframework.io.test.mediatype.v1: scorecard+v1/d' \
|
||||
-i "${folderToUpdate}/${LAST_PACKAGE_VERSION}/metadata/annotations.yaml"
|
||||
done
|
||||
cp ${OPERATOR_REPO}/bundle/$channel/eclipse-che-preview-openshift/metadata/* "${folderToUpdate}/${LAST_PACKAGE_VERSION}/metadata"
|
||||
sed \
|
||||
-e 's/operators.operatorframework.io.bundle.package.v1: eclipse-che-preview-openshift/operators.operatorframework.io.bundle.package.v1: eclipse-che/' \
|
||||
-e '/operators.operatorframework.io.test.config.v1/d' \
|
||||
-e '/operators.operatorframework.io.test.mediatype.v1: scorecard+v1/d' \
|
||||
-i "${folderToUpdate}/${LAST_PACKAGE_VERSION}/metadata/annotations.yaml"
|
||||
|
||||
# NOTE: if you update this file, you need to submit a PR against these two files:
|
||||
# https://github.com/redhat-openshift-ecosystem/community-operators-prod/blob/main/operators/eclipse-che/ci.yaml
|
||||
|
|
@ -172,24 +153,15 @@ do
|
|||
echo " - Commit changes"
|
||||
cd "${communityOperatorsLocalGitFolder}"
|
||||
git add --all
|
||||
git commit -s -m "Update eclipse-che operator for ${platform} to release ${LAST_PACKAGE_VERSION}"
|
||||
git commit -s -m "Update eclipse-che operator to release ${LAST_PACKAGE_VERSION}"
|
||||
echo
|
||||
echo " - Push branch ${branch} to ${GIT_REMOTE_FORK_CLEAN}"
|
||||
git push ${FORCE} origin "${branch}"
|
||||
|
||||
echo
|
||||
template_file="https://raw.githubusercontent.com/k8s-operatorhub/community-operators/${base_branch}/docs/pull_request_template.md"
|
||||
if [ "${platform}" == "openshift" ]
|
||||
then
|
||||
template_file="https://raw.githubusercontent.com/redhat-openshift-ecosystem/community-operators-prod/${base_branch}/docs/pull_request_template.md"
|
||||
fi
|
||||
template_file="https://raw.githubusercontent.com/redhat-openshift-ecosystem/community-operators-prod/${base_branch}/docs/pull_request_template.md"
|
||||
HUB=$(command -v hub 2>/dev/null)
|
||||
|
||||
upstream_org="k8s-operatorhub"
|
||||
if [ "${platform}" == "openshift" ]
|
||||
then
|
||||
upstream_org="redhat-openshift-ecosystem"
|
||||
fi
|
||||
upstream_org="redhat-openshift-ecosystem"
|
||||
if [[ $HUB ]] && [[ -x $HUB ]]; then
|
||||
echo " - Use $HUB to generate PR from template: ${template_file}"
|
||||
PRbody=$(curl -sSLo - ${template_file} | \
|
||||
|
|
|
|||
|
|
@ -41,37 +41,37 @@ setLatestReleasedVersion() {
|
|||
}
|
||||
|
||||
downloadLatestReleasedBundleCRCRD() {
|
||||
mkdir -p "${STABLE_BUNDLE_PATH}/manifests" "${STABLE_BUNDLE_PATH}/generated/${platform}" "${STABLE_BUNDLE_PATH}/metadata"
|
||||
PRE_RELEASE_CSV="${STABLE_BUNDLE_PATH}/generated/${platform}/che-operator.clusterserviceversion.yaml"
|
||||
PRE_RELEASE_CHE_CRD="${STABLE_BUNDLE_PATH}/generated/${platform}/org_v1_che_crd.yaml"
|
||||
PRE_RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD="${STABLE_BUNDLE_PATH}/generated/${platform}/org.eclipse.che_chebackupserverconfigurations_crd.yaml"
|
||||
PRE_RELEASE_CHE_BACKUP_CRD="${STABLE_BUNDLE_PATH}/generated/${platform}/org.eclipse.che_checlusterbackups_crd.yaml"
|
||||
PRE_RELEASE_CHE_RESTORE_CRD="${STABLE_BUNDLE_PATH}/generated/${platform}/org.eclipse.che_checlusterrestores_crd.yaml"
|
||||
mkdir -p "${STABLE_BUNDLE_PATH}/manifests" "${STABLE_BUNDLE_PATH}/generated/openshift" "${STABLE_BUNDLE_PATH}/metadata"
|
||||
PRE_RELEASE_CSV="${STABLE_BUNDLE_PATH}/generated/openshift/che-operator.clusterserviceversion.yaml"
|
||||
PRE_RELEASE_CHE_CRD="${STABLE_BUNDLE_PATH}/generated/openshift/org_v1_che_crd.yaml"
|
||||
PRE_RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD="${STABLE_BUNDLE_PATH}/generated/openshift/org.eclipse.che_chebackupserverconfigurations_crd.yaml"
|
||||
PRE_RELEASE_CHE_BACKUP_CRD="${STABLE_BUNDLE_PATH}/generated/openshift/org.eclipse.che_checlusterbackups_crd.yaml"
|
||||
PRE_RELEASE_CHE_RESTORE_CRD="${STABLE_BUNDLE_PATH}/generated/openshift/org.eclipse.che_checlusterrestores_crd.yaml"
|
||||
|
||||
compareResult=$(pysemver compare "${LAST_RELEASE_VERSION}" "7.34.0")
|
||||
if [ "${compareResult}" == "1" ]; then
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-${platform}/manifests/che-operator.clusterserviceversion.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml" \
|
||||
-q -O "${PRE_RELEASE_CSV}"
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-${platform}/manifests/org_v1_che_crd.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-openshift/manifests/org_v1_che_crd.yaml" \
|
||||
-q -O "${PRE_RELEASE_CHE_CRD}"
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-${platform}/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-openshift/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml" \
|
||||
-q -O "${PRE_RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}"
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-${platform}/manifests/org.eclipse.che_checlusterbackups_crd.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-openshift/manifests/org.eclipse.che_checlusterbackups_crd.yaml" \
|
||||
-q -O "${PRE_RELEASE_CHE_BACKUP_CRD}"
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-${platform}/manifests/org.eclipse.che_checlusterrestores_crd.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/bundle/stable/eclipse-che-preview-openshift/manifests/org.eclipse.che_checlusterrestores_crd.yaml" \
|
||||
-q -O "${PRE_RELEASE_CHE_RESTORE_CRD}"
|
||||
else
|
||||
# don't exit immediately if some resources are absent
|
||||
set +e
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/che-operator.clusterserviceversion.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-openshift/manifests/che-operator.clusterserviceversion.yaml" \
|
||||
-q -O "${PRE_RELEASE_CSV}"
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/org_v1_che_crd.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-openshift/manifests/org_v1_che_crd.yaml" \
|
||||
-q -O "${PRE_RELEASE_CHE_CRD}"
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-openshift/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml" \
|
||||
-q -O "${PRE_RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}"
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/org.eclipse.che_checlusterbackups_crd.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-openshift/manifests/org.eclipse.che_checlusterbackups_crd.yaml" \
|
||||
-q -O "${PRE_RELEASE_CHE_BACKUP_CRD}"
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-${platform}/manifests/org.eclipse.che_checlusterrestores_crd.yaml" \
|
||||
wget "https://raw.githubusercontent.com/eclipse-che/che-operator/${LAST_RELEASE_VERSION}/deploy/olm-catalog/stable/eclipse-che-preview-openshift/manifests/org.eclipse.che_checlusterrestores_crd.yaml" \
|
||||
-q -O "${PRE_RELEASE_CHE_RESTORE_CRD}"
|
||||
set -e
|
||||
fi
|
||||
|
|
@ -84,119 +84,109 @@ if [[ -z "$RELEASE" ]] || [[ -z "$CHANNEL" ]]; then
|
|||
fi
|
||||
|
||||
|
||||
for platform in 'kubernetes' 'openshift'
|
||||
do
|
||||
source ${BASE_DIR}/olm.sh
|
||||
echo "[INFO] Creating release '${RELEASE}' for platform '${platform}'"
|
||||
source ${BASE_DIR}/olm.sh
|
||||
echo "[INFO] Creating release '${RELEASE}'"
|
||||
|
||||
if [[ ${CHANNEL} == "tech-preview-stable-all-namespaces" ]] && [[ ${platform} == "kubernetes" ]];then
|
||||
continue
|
||||
fi
|
||||
if [[ ${CHANNEL} == "tech-preview-stable-all-namespaces" ]]; then
|
||||
NEXT_BUNDLE_PATH=$(getBundlePath "next-all-namespaces")
|
||||
else
|
||||
NEXT_BUNDLE_PATH=$(getBundlePath "next")
|
||||
fi
|
||||
|
||||
if [[ ${CHANNEL} == "tech-preview-stable-all-namespaces" ]]; then
|
||||
NEXT_BUNDLE_PATH=$(getBundlePath "${platform}" "next-all-namespaces")
|
||||
else
|
||||
NEXT_BUNDLE_PATH=$(getBundlePath "${platform}" "next")
|
||||
fi
|
||||
LAST_NEXT_CSV="${NEXT_BUNDLE_PATH}/manifests/che-operator.clusterserviceversion.yaml"
|
||||
lastPackageNextVersion=$(yq -r ".spec.version" "${LAST_NEXT_CSV}")
|
||||
echo "[INFO] Last package next version: ${lastPackageNextVersion}"
|
||||
|
||||
LAST_NEXT_CSV="${NEXT_BUNDLE_PATH}/manifests/che-operator.clusterserviceversion.yaml"
|
||||
lastPackageNextVersion=$(yq -r ".spec.version" "${LAST_NEXT_CSV}")
|
||||
echo "[INFO] Last package next version: ${lastPackageNextVersion}"
|
||||
STABLE_BUNDLE_PATH=$(getBundlePath $CHANNEL)
|
||||
RELEASE_CSV="${STABLE_BUNDLE_PATH}/manifests/che-operator.clusterserviceversion.yaml"
|
||||
RELEASE_CHE_CRD="${STABLE_BUNDLE_PATH}/manifests/org_v1_che_crd.yaml"
|
||||
RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD="${STABLE_BUNDLE_PATH}/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml"
|
||||
RELEASE_CHE_BACKUP_CRD="${STABLE_BUNDLE_PATH}/manifests/org.eclipse.che_checlusterbackups_crd.yaml"
|
||||
RELEASE_CHE_RESTORE_CRD="${STABLE_BUNDLE_PATH}/manifests/org.eclipse.che_checlusterrestores_crd.yaml"
|
||||
|
||||
STABLE_BUNDLE_PATH=$(getBundlePath "${platform}" $CHANNEL)
|
||||
RELEASE_CSV="${STABLE_BUNDLE_PATH}/manifests/che-operator.clusterserviceversion.yaml"
|
||||
RELEASE_CHE_CRD="${STABLE_BUNDLE_PATH}/manifests/org_v1_che_crd.yaml"
|
||||
RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD="${STABLE_BUNDLE_PATH}/manifests/org.eclipse.che_chebackupserverconfigurations_crd.yaml"
|
||||
RELEASE_CHE_BACKUP_CRD="${STABLE_BUNDLE_PATH}/manifests/org.eclipse.che_checlusterbackups_crd.yaml"
|
||||
RELEASE_CHE_RESTORE_CRD="${STABLE_BUNDLE_PATH}/manifests/org.eclipse.che_checlusterrestores_crd.yaml"
|
||||
MANAGER_YAML="${OPERATOR_DIR}/config/manager/manager.yaml"
|
||||
|
||||
MANAGER_YAML="${OPERATOR_DIR}/config/manager/manager.yaml"
|
||||
setLatestReleasedVersion
|
||||
downloadLatestReleasedBundleCRCRD
|
||||
packageName=$(getPackageName)
|
||||
|
||||
setLatestReleasedVersion
|
||||
downloadLatestReleasedBundleCRCRD
|
||||
packageName=$(getPackageName "${platform}")
|
||||
echo "[INFO] Will create release '${RELEASE}' from next version ${lastPackageNextVersion}'"
|
||||
|
||||
echo "[INFO] Will create release '${RELEASE}' from next version ${lastPackageNextVersion}'"
|
||||
sed \
|
||||
-e 's/imagePullPolicy: *Always/imagePullPolicy: IfNotPresent/' \
|
||||
-e 's/"cheImageTag": *"next"/"cheImageTag": ""/' \
|
||||
-e 's|quay.io/eclipse/che-dashboard:next|quay.io/eclipse/che-dashboard:'${RELEASE}'|' \
|
||||
-e 's|"identityProviderImage": *"quay.io/eclipse/che-keycloak:next"|"identityProviderImage": ""|' \
|
||||
-e 's|"devfileRegistryImage": *"quay.io/eclipse/che-devfile-registry:next"|"devfileRegistryImage": ""|' \
|
||||
-e 's|"pluginRegistryImage": *"quay.io/eclipse/che-plugin-registry:next"|"pluginRegistryImage": ""|' \
|
||||
-e "/^ replaces: ${packageName}.v.*/d" \
|
||||
-e "s/^ version: ${lastPackageNextVersion}/ version: ${RELEASE}/" \
|
||||
-e "/^ version: ${RELEASE}/i\ \ replaces: ${packageName}.v${LAST_RELEASE_VERSION}" \
|
||||
-e "s/: next/: ${RELEASE}/" \
|
||||
-e "s/:next/:${RELEASE}/" \
|
||||
-e "s/${lastPackageNextVersion}/${RELEASE}/" \
|
||||
-e "s/createdAt:.*$/createdAt: \"$(date -u +%FT%TZ)\"/" "${LAST_NEXT_CSV}" > "${RELEASE_CSV}"
|
||||
|
||||
sed \
|
||||
-e 's/imagePullPolicy: *Always/imagePullPolicy: IfNotPresent/' \
|
||||
-e 's/"cheImageTag": *"next"/"cheImageTag": ""/' \
|
||||
-e 's|quay.io/eclipse/che-dashboard:next|quay.io/eclipse/che-dashboard:'${RELEASE}'|' \
|
||||
-e 's|"identityProviderImage": *"quay.io/eclipse/che-keycloak:next"|"identityProviderImage": ""|' \
|
||||
-e 's|"devfileRegistryImage": *"quay.io/eclipse/che-devfile-registry:next"|"devfileRegistryImage": ""|' \
|
||||
-e 's|"pluginRegistryImage": *"quay.io/eclipse/che-plugin-registry:next"|"pluginRegistryImage": ""|' \
|
||||
-e "/^ replaces: ${packageName}.v.*/d" \
|
||||
-e "s/^ version: ${lastPackageNextVersion}/ version: ${RELEASE}/" \
|
||||
-e "/^ version: ${RELEASE}/i\ \ replaces: ${packageName}.v${LAST_RELEASE_VERSION}" \
|
||||
-e "s/: next/: ${RELEASE}/" \
|
||||
-e "s/:next/:${RELEASE}/" \
|
||||
-e "s/${lastPackageNextVersion}/${RELEASE}/" \
|
||||
-e "s/createdAt:.*$/createdAt: \"$(date -u +%FT%TZ)\"/" "${LAST_NEXT_CSV}" > "${RELEASE_CSV}"
|
||||
if [[ ${CHANNEL} == "tech-preview-stable-all-namespaces" ]];then
|
||||
# Set tech-preview-stable-all-namespaces versions
|
||||
yq -Yi '.spec.replaces |= "'${packageName}'.v'$LAST_RELEASE_VERSION'-all-namespaces"' ${RELEASE_CSV}
|
||||
yq -Yi '.spec.version |= "'${RELEASE}'-all-namespaces"' ${RELEASE_CSV}
|
||||
yq -Yi '.metadata.name |= "eclipse-che-preview-openshift.v'${RELEASE}'-all-namespaces"' ${RELEASE_CSV}
|
||||
fi
|
||||
|
||||
if [[ ${CHANNEL} == "tech-preview-stable-all-namespaces" ]];then
|
||||
# Set tech-preview-stable-all-namespaces versions
|
||||
yq -Yi '.spec.replaces |= "'${packageName}'.v'$LAST_RELEASE_VERSION'-all-namespaces"' ${RELEASE_CSV}
|
||||
yq -Yi '.spec.version |= "'${RELEASE}'-all-namespaces"' ${RELEASE_CSV}
|
||||
yq -Yi '.metadata.name |= "eclipse-che-preview-openshift.v'${RELEASE}'-all-namespaces"' ${RELEASE_CSV}
|
||||
fi
|
||||
# Remove from devWorkspace in stable channel and hide the value from UI
|
||||
if [[ ${CHANNEL} == "stable" ]];then
|
||||
CR_SAMPLE=$(yq ".metadata.annotations.\"alm-examples\" | fromjson | del( .[] | select(.kind == \"CheCluster\") | .spec.devWorkspace)" "${RELEASE_CSV}" | sed -r 's/"/\\"/g')
|
||||
yq -rY " (.metadata.annotations.\"alm-examples\") = \"${CR_SAMPLE}\"" "${RELEASE_CSV}" > "${RELEASE_CSV}.old"
|
||||
yq -Yi '.spec.customresourcedefinitions.owned[] |= (select(.name == "checlusters.org.eclipse.che").specDescriptors += [{"path":"devWorkspace", "x-descriptors": ["urn:alm:descriptor:com.tectonic.ui:hidden"]}])' "${RELEASE_CSV}.old"
|
||||
mv "${RELEASE_CSV}.old" "${RELEASE_CSV}"
|
||||
yq -rYi "(.spec.install.spec.deployments [] | select(.name == \"che-operator\") | .spec.template.spec.containers[] | select(.name == \"che-operator\").env[] | select(.name == \"ALLOW_DEVWORKSPACE_ENGINE\") | .value ) = \"false\"" ${RELEASE_CSV}
|
||||
fi
|
||||
|
||||
# Remove from devWorkspace in stable channel and hide the value from UI
|
||||
if [[ ${CHANNEL} == "stable" ]];then
|
||||
CR_SAMPLE=$(yq ".metadata.annotations.\"alm-examples\" | fromjson | del( .[] | select(.kind == \"CheCluster\") | .spec.devWorkspace)" "${RELEASE_CSV}" | sed -r 's/"/\\"/g')
|
||||
yq -rY " (.metadata.annotations.\"alm-examples\") = \"${CR_SAMPLE}\"" "${RELEASE_CSV}" > "${RELEASE_CSV}.old"
|
||||
yq -Yi '.spec.customresourcedefinitions.owned[] |= (select(.name == "checlusters.org.eclipse.che").specDescriptors += [{"path":"devWorkspace", "x-descriptors": ["urn:alm:descriptor:com.tectonic.ui:hidden"]}])' "${RELEASE_CSV}.old"
|
||||
mv "${RELEASE_CSV}.old" "${RELEASE_CSV}"
|
||||
cp "${NEXT_BUNDLE_PATH}/manifests/org_v1_che_crd.yaml" "${RELEASE_CHE_CRD}"
|
||||
cp "${NEXT_BUNDLE_PATH}/manifests/org.eclipse.che_chebackupserverconfigurations.yaml" "${RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}"
|
||||
cp "${NEXT_BUNDLE_PATH}/manifests/org.eclipse.che_checlusterbackups.yaml" "${RELEASE_CHE_BACKUP_CRD}"
|
||||
cp "${NEXT_BUNDLE_PATH}/manifests/org.eclipse.che_checlusterrestores.yaml" "${RELEASE_CHE_RESTORE_CRD}"
|
||||
cp -rf "${NEXT_BUNDLE_PATH}/bundle.Dockerfile" "${STABLE_BUNDLE_PATH}"
|
||||
cp -rf "${NEXT_BUNDLE_PATH}/metadata" "${STABLE_BUNDLE_PATH}"
|
||||
cp -rf "${NEXT_BUNDLE_PATH}/tests" "${STABLE_BUNDLE_PATH}"
|
||||
|
||||
if [[ ${platform} == "openshift" ]];then
|
||||
yq -rYi "(.spec.install.spec.deployments [] | select(.name == \"che-operator\") | .spec.template.spec.containers[] | select(.name == \"che-operator\").env[] | select(.name == \"ALLOW_DEVWORKSPACE_ENGINE\") | .value ) = \"false\"" ${RELEASE_CSV}
|
||||
fi
|
||||
fi
|
||||
ANNOTATION_METADATA_YAML="${STABLE_BUNDLE_PATH}/metadata/annotations.yaml"
|
||||
sed \
|
||||
-e 's/operators.operatorframework.io.bundle.channels.v1: .*/operators.operatorframework.io.bundle.channels.v1: '$CHANNEL'/' \
|
||||
-e 's/operators.operatorframework.io.bundle.channel.default.v1: .*/operators.operatorframework.io.bundle.channel.default.v1: '$CHANNEL'/' \
|
||||
-i "${ANNOTATION_METADATA_YAML}"
|
||||
|
||||
cp "${NEXT_BUNDLE_PATH}/manifests/org_v1_che_crd.yaml" "${RELEASE_CHE_CRD}"
|
||||
cp "${NEXT_BUNDLE_PATH}/manifests/org.eclipse.che_chebackupserverconfigurations.yaml" "${RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}"
|
||||
cp "${NEXT_BUNDLE_PATH}/manifests/org.eclipse.che_checlusterbackups.yaml" "${RELEASE_CHE_BACKUP_CRD}"
|
||||
cp "${NEXT_BUNDLE_PATH}/manifests/org.eclipse.che_checlusterrestores.yaml" "${RELEASE_CHE_RESTORE_CRD}"
|
||||
cp -rf "${NEXT_BUNDLE_PATH}/bundle.Dockerfile" "${STABLE_BUNDLE_PATH}"
|
||||
cp -rf "${NEXT_BUNDLE_PATH}/metadata" "${STABLE_BUNDLE_PATH}"
|
||||
cp -rf "${NEXT_BUNDLE_PATH}/tests" "${STABLE_BUNDLE_PATH}"
|
||||
BUNDLE_DOCKERFILE="${STABLE_BUNDLE_PATH}/bundle.Dockerfile"
|
||||
sed \
|
||||
-e 's/LABEL operators.operatorframework.io.bundle.channels.v1=.*/LABEL operators.operatorframework.io.bundle.channels.v1='$CHANNEL'/' \
|
||||
-e 's/LABEL operators.operatorframework.io.bundle.channel.default.v1=.*/LABEL operators.operatorframework.io.bundle.channel.default.v1='$CHANNEL'/' \
|
||||
-i "${BUNDLE_DOCKERFILE}"
|
||||
|
||||
ANNOTATION_METADATA_YAML="${STABLE_BUNDLE_PATH}/metadata/annotations.yaml"
|
||||
sed \
|
||||
-e 's/operators.operatorframework.io.bundle.channels.v1: .*/operators.operatorframework.io.bundle.channels.v1: '$CHANNEL'/' \
|
||||
-e 's/operators.operatorframework.io.bundle.channel.default.v1: .*/operators.operatorframework.io.bundle.channel.default.v1: '$CHANNEL'/' \
|
||||
-i "${ANNOTATION_METADATA_YAML}"
|
||||
pushd "${CURRENT_DIR}" || exit 1
|
||||
source ${BASE_DIR}/addDigests.sh -w ${BASE_DIR} \
|
||||
-t "${RELEASE}" \
|
||||
-s "${RELEASE_CSV}" \
|
||||
-o "${MANAGER_YAML}"
|
||||
popd || exit 1
|
||||
|
||||
BUNDLE_DOCKERFILE="${STABLE_BUNDLE_PATH}/bundle.Dockerfile"
|
||||
sed \
|
||||
-e 's/LABEL operators.operatorframework.io.bundle.channels.v1=.*/LABEL operators.operatorframework.io.bundle.channels.v1='$CHANNEL'/' \
|
||||
-e 's/LABEL operators.operatorframework.io.bundle.channel.default.v1=.*/LABEL operators.operatorframework.io.bundle.channel.default.v1='$CHANNEL'/' \
|
||||
-i "${BUNDLE_DOCKERFILE}"
|
||||
pushd "${OPERATOR_DIR}" || exit 1
|
||||
make add-license "${RELEASE_CSV}"
|
||||
make add-license "${MANAGER_YAML}"
|
||||
popd || exit 1
|
||||
|
||||
pushd "${CURRENT_DIR}" || exit 1
|
||||
source ${BASE_DIR}/addDigests.sh -w ${BASE_DIR} \
|
||||
-t "${RELEASE}" \
|
||||
-s "${RELEASE_CSV}" \
|
||||
-o "${MANAGER_YAML}"
|
||||
popd || exit 1
|
||||
|
||||
pushd "${OPERATOR_DIR}" || exit 1
|
||||
make add-license "${RELEASE_CSV}"
|
||||
make add-license "${MANAGER_YAML}"
|
||||
popd || exit 1
|
||||
|
||||
if [[ -n "${PRE_RELEASE_CSV}" ]] && [[ -n "${PRE_RELEASE_CHE_CRD}" ]]; then
|
||||
diff -u "${PRE_RELEASE_CSV}" "${RELEASE_CSV}" > "${RELEASE_CSV}.diff" || true
|
||||
diff -u "${PRE_RELEASE_CHE_CRD}" "${RELEASE_CHE_CRD}" > "${RELEASE_CHE_CRD}.diff" || true
|
||||
fi
|
||||
if [[ -n "${PRE_RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}" ]]; then
|
||||
diff -u "${PRE_RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}" "${RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}" > "${RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}.diff" || true
|
||||
fi
|
||||
if [[ -n "${PRE_RELEASE_CHE_BACKUP_CRD}" ]]; then
|
||||
diff -u "${PRE_RELEASE_CHE_BACKUP_CRD}" "${RELEASE_CHE_BACKUP_CRD}" > "${RELEASE_CHE_BACKUP_CRD}.diff" || true
|
||||
fi
|
||||
if [[ -n "${PRE_RELEASE_CHE_RESTORE_CRD}" ]]; then
|
||||
diff -u "${PRE_RELEASE_CHE_RESTORE_CRD}" "${RELEASE_CHE_RESTORE_CRD}" > "${RELEASE_CHE_RESTORE_CRD}.diff" || true
|
||||
fi
|
||||
done
|
||||
if [[ -n "${PRE_RELEASE_CSV}" ]] && [[ -n "${PRE_RELEASE_CHE_CRD}" ]]; then
|
||||
diff -u "${PRE_RELEASE_CSV}" "${RELEASE_CSV}" > "${RELEASE_CSV}.diff" || true
|
||||
diff -u "${PRE_RELEASE_CHE_CRD}" "${RELEASE_CHE_CRD}" > "${RELEASE_CHE_CRD}.diff" || true
|
||||
fi
|
||||
if [[ -n "${PRE_RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}" ]]; then
|
||||
diff -u "${PRE_RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}" "${RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}" > "${RELEASE_CHE_BACKUP_SERVER_CONFIGURATION_CRD}.diff" || true
|
||||
fi
|
||||
if [[ -n "${PRE_RELEASE_CHE_BACKUP_CRD}" ]]; then
|
||||
diff -u "${PRE_RELEASE_CHE_BACKUP_CRD}" "${RELEASE_CHE_BACKUP_CRD}" > "${RELEASE_CHE_BACKUP_CRD}.diff" || true
|
||||
fi
|
||||
if [[ -n "${PRE_RELEASE_CHE_RESTORE_CRD}" ]]; then
|
||||
diff -u "${PRE_RELEASE_CHE_RESTORE_CRD}" "${RELEASE_CHE_RESTORE_CRD}" > "${RELEASE_CHE_RESTORE_CRD}.diff" || true
|
||||
fi
|
||||
|
||||
echo "[INFO] Release bundles successfully created."
|
||||
|
|
|
|||
Loading…
Reference in New Issue