Skip to content

Commit

Permalink
feat: Add infrastructure features labels (#973)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha authored Jul 29, 2021
1 parent ae276a4 commit 10f18a9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ bundle: generate manifests kustomize ## Generate bundle manifests and metadata,
done
fi

# Fix sample
# Fix CSV
if [ "$${platform}" = "openshift" ]; then
echo "[INFO] Fix openshift sample"
sample=$$(yq -r ".metadata.annotations.\"alm-examples\"" "$${NEW_CSV}")
Expand All @@ -653,6 +653,10 @@ bundle: generate manifests kustomize ## Generate bundle manifests and metadata,
# Update sample in the CSV
yq -rY " (.metadata.annotations.\"alm-examples\") = \"$${fixedSample}\"" "$${NEW_CSV}" > "$${NEW_CSV}.old"
mv "$${NEW_CSV}.old" "$${NEW_CSV}"

# Update annotations
echo "[INFO] Update kubernetes annotations"
yq -rYi "del(.metadata.annotations.\"operators.openshift.io/infrastructure-features\")" "$${NEW_CSV}"
fi

# set `app.kubernetes.io/managed-by` label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,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-kubernetes.v7.34.0-269.nightly
name: eclipse-che-preview-kubernetes.v7.34.0-270.nightly
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -1300,4 +1300,4 @@ spec:
maturity: stable
provider:
name: Eclipse Foundation
version: 7.34.0-269.nightly
version: 7.34.0-270.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ metadata:
description: A Kube-native development solution that delivers portable and collaborative
developer workspaces.
operatorframework.io/suggested-namespace: eclipse-che
operators.openshift.io/infrastructure-features: '["disconnected", "proxy-aware"]'
operators.operatorframework.io/builder: operator-sdk-v1.6.1+git
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.34.0-269.nightly
name: eclipse-che-preview-openshift.v7.34.0-270.nightly
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -1364,4 +1365,4 @@ spec:
maturity: stable
provider:
name: Eclipse Foundation
version: 7.34.0-269.nightly
version: 7.34.0-270.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ metadata:
createdAt: "2021-05-11T18:38:31Z"
description: A Kube-native development solution that delivers portable and collaborative developer workspaces.
operatorframework.io/suggested-namespace: eclipse-che
operators.openshift.io/infrastructure-features: '["disconnected", "proxy-aware"]'
repository: https://github.com/eclipse-che/che-operator
support: Eclipse Foundation
name: eclipse-che-preview-.v0.0.0
Expand Down

0 comments on commit 10f18a9

Please sign in to comment.