https://github.com/windup/windup-operator
Windup Operator for Openshift-Kubernetes
https://github.com/windup/windup-operator
Last synced: about 1 year ago
JSON representation
Windup Operator for Openshift-Kubernetes
- Host: GitHub
- URL: https://github.com/windup/windup-operator
- Owner: windup
- License: epl-2.0
- Created: 2020-09-23T09:52:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-22T11:20:11.000Z (over 2 years ago)
- Last Synced: 2025-04-01T10:11:32.593Z (about 1 year ago)
- Language: Java
- Size: 457 KB
- Stars: 6
- Watchers: 6
- Forks: 11
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Local development
## Minikube
Start minikube
```shell
minikube start --cpus=8 --memory=10g
minikube addons enable ingress
```
## Setup CDRs
```shell
mvn clean package -DskipTests
kubectl apply -f target/kubernetes/windups.windup.jboss.org-v1.yml
```
## Start server in dev mode
```shell
mvn compile quarkus:dev
```
## Instantiate Windup
```shell
kubectl apply -f scripts/windup.yaml
```
At this point the container images will be generated by the operator.
# Test Operator in OCP
Create operator container:
```shell
mvn clean package -DskipTests \
-Dquarkus.native.container-build=true \
-Dquarkus.container-image.build=true \
-Dquarkus.container-image.push=false \
-Dquarkus.container-image.registry=quay.io \
-Dquarkus.container-image.group=$USER \
-Dquarkus.container-image.name=windup-operator \
-Dquarkus.operator-sdk.bundle.package-name=windup-operator \
-Dquarkus.operator-sdk.bundle.channels=alpha \
-Dquarkus.application.version=test \
-P native
podman push quay.io/$USER/windup-operator:test
```
Enrich bundle with cluster permissions (util only if generating a catalog for OCP)
```shell
groovy scripts/enrichCSV.groovy target/bundle/windup-operator/manifests/windup-operator.clusterserviceversion.yaml
```
Create bundle:
```shell
BUNDLE_IMAGE=quay.io/$USER/windup-operator-bundle:test
podman build -t $BUNDLE_IMAGE -f target/bundle/windup-operator/bundle.Dockerfile target/bundle/windup-operator
podman push $BUNDLE_IMAGE
```
Create catalog image:
```shell
CATALOG_IMAGE=quay.io/$USER/windup-operator-catalog:test
opm index add \
--bundles $BUNDLE_IMAGE \
--tag $CATALOG_IMAGE \
--build-tool podman
podman push $CATALOG_IMAGE
```
Create catalog:
```shell
cat <