-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create stable channel and 1.0.0 release (#44)
* Create stable channel and 1.0.0 release Create a new channel called stable which will host the 1.0.0 release of Smart Gateway Operator. * Set Smart Gateway container image from env var Setting the container image for the Smart Gateway from an environment variable allows for setting a specific version of the Smart Gateway to come up, allowing versions to be tied to the Operator container image itself, and thus a CSV version. Looking at other Operators, any dependent images seem to get set via environment variable on the Operator, and then used for instantiating the desired set of images for that CSV. If the SMARTGATEWAY_IMAGE environment variable is not set, then the default is to use the latest image from quay.io/infrawatch/smart-gateway. * Don't reference beta1 in semver * Only release on tagged versions
- Loading branch information
1 parent
3f80771
commit 2d39f3f
Showing
24 changed files
with
677 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
scorecard: | ||
# Setting a global scorecard option | ||
version: v1alpha2 | ||
output: text | ||
bundle: deploy/olm-catalog/smart-gateway-operator/1.0.0/metadata | ||
plugins: | ||
- basic: | ||
cr-manifest: | ||
- "deploy/crds/smartgateway.infra.watch_v2alpha1_smartgateway.metrics_cr.yaml" | ||
csv-path: "deploy/olm-catalog/smart-gateway-operator/1.0.0/smart-gateway-operator.v1.0.0.clusterserviceversion.yaml" | ||
- olm: | ||
cr-manifest: | ||
- "deploy/crds/smartgateway.infra.watch_v2alpha1_smartgateway.metrics_cr.yaml" | ||
csv-path: "deploy/olm-catalog/smart-gateway-operator/0.2.0/smart-gateway-operator.v0.2.0.clusterserviceversion.yaml" | ||
csv-path: "deploy/olm-catalog/smart-gateway-operator/1.0.0/smart-gateway-operator.v1.0.0.clusterserviceversion.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM quay.io/operator-framework/ansible-operator:v0.12.0 | ||
FROM quay.io/operator-framework/ansible-operator:v0.14.1 | ||
|
||
COPY roles/ ${HOME}/roles/ | ||
COPY watches.yaml ${HOME}/watches.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
CSV_VERSION=${CSV_VERSION:-1.0.0} | ||
UNIXDATE=$(date +%s) | ||
ORGANIZATION=${ORGANIZATION:-infrawatch} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ -z "$CSV_VERSION" ]; then | ||
echo -n "CSV version to create [e.g. 1.1.0]: " | ||
read CSV_VERSION | ||
fi | ||
|
||
if [ -z "$FROM_VERSION" ]; then | ||
echo -n "CSV version to upgrade from [e.g. 1.0.0]: " | ||
read FROM_VERSION | ||
fi | ||
|
||
if [ -z "$CSV_CHANNEL" ]; then | ||
echo -n "CSV channel to publish to [e.g. stable]: " | ||
read CSV_CHANNEL | ||
fi | ||
|
||
|
||
operator-sdk generate csv --csv-version=${CSV_VERSION} \ | ||
--from-version=${FROM_VERSION} \ | ||
--operator-name smart-gateway-operator \ | ||
--update-crds \ | ||
--csv-channel="${CSV_CHANNEL}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#!/usr/bin/env sh | ||
operator-sdk generate csv --csv-version 0.2.0 --operator-name smart-gateway-operator --update-crds | ||
set -e | ||
REL=$(dirname "$0"); source "${REL}/metadata.sh" | ||
operator-sdk generate csv --csv-version=${CSV_VERSION} --operator-name smart-gateway-operator --update-crds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,7 +281,7 @@ spec: | |
name: smart-gateway-operator | ||
links: | ||
- name: Source Code | ||
url: https://github.com/infrawatch/smart-gateway-operator.0.2.0 | ||
url: https://github.com/infrawatch/smart-gateway-operator | ||
maintainers: | ||
- email: [email protected] | ||
name: Red Hat CloudOps DFG | ||
|
6 changes: 3 additions & 3 deletions
6
...catalog/smart-gateway-operator/Dockerfile → ...g/smart-gateway-operator/1.0.0/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM scratch | ||
|
||
LABEL operators.operatorframework.io.bundle.mediatype.v1=plain | ||
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=smart-gateway-operator | ||
LABEL operators.operatorframework.io.bundle.channels.v1=alpha | ||
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha | ||
LABEL operators.operatorframework.io.bundle.channels.v1=stable | ||
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable | ||
|
||
COPY /*.yaml /manifests/ | ||
COPY /metadata/annotations.yaml /metadata/annotations.yaml |
6 changes: 3 additions & 3 deletions
6
...ateway-operator/metadata/annotations.yaml → ...-operator/1.0.0/metadata/annotations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
annotations: | ||
operators.operatorframework.io.bundle.channel.default.v1: alpha | ||
operators.operatorframework.io.bundle.channels.v1: alpha | ||
operators.operatorframework.io.bundle.channel.default.v1: stable | ||
operators.operatorframework.io.bundle.channels.v1: stable | ||
operators.operatorframework.io.bundle.manifests.v1: manifests/ | ||
operators.operatorframework.io.bundle.mediatype.v1: plain | ||
operators.operatorframework.io.bundle.mediatype.v1: registry+v1 | ||
operators.operatorframework.io.bundle.metadata.v1: metadata/ | ||
operators.operatorframework.io.bundle.package.v1: smart-gateway-operator |
Oops, something went wrong.