Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move over the helm chart for the ui from the operator repo #55

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,6 @@ jobs:
tag: ${{ github.event.inputs.tag }}
prev_tag: ${{ github.event.inputs.prev_tag }}
config: releasenotes-config.js
- uses: azure/setup-helm@v1
- run: IMAGE_TAG='${{ github.event.inputs.tag }}' make prepare-for-release
- run: helm package helm-charts/move2kube
- run: mkdir temp/
- run: mv *.tgz temp/
- run: curl -L -o oldindex.yaml https://move2kube.konveyor.io/index.yaml
- run: helm repo index --merge oldindex.yaml --url https://github.com/konveyor/move2kube-operator/releases/download/${{ github.event.inputs.tag }} temp/
- uses: HarikrishnanBalagopal/upload-release-action@v3
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.inputs.tag }}
file: temp/*
file_glob: true
overwrite: true
- name: slack notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,6 @@ bundle: kustomize
bundle-build:
docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .

.PHONY: prepare-for-release
prepare-for-release:
mv helm-charts/move2kube/Chart.yaml old
cat old | sed -E s/version:\ v0.1.0-unreleased/version:\ ${IMAGE_TAG}/ | sed -E s/appVersion:\ latest/appVersion:\ ${IMAGE_TAG}/ > helm-charts/move2kube/Chart.yaml
rm old

.PHONY: helm-install
helm-install:
helm upgrade --install --set image_tag=${IMAGE_TAG} ${RELEASE_NAME} helm-charts/move2kube/
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,19 @@ Operator to orchestrate [Move2Kube UI](https://github.com/konveyor/move2kube-ui)

## Usage

### Helm chart
> A new Golang based operator is in the works

See the instructions given in https://github.com/konveyor/move2kube-operator/blob/main/helm-charts/move2kube/README.md
The instructions below are for installing the current Helm based operator:

1. Deploy the operator either using the OLM tool or directly:
https://sdk.operatorframework.io/docs/building-operators/helm/quickstart/#olm-deployment
https://sdk.operatorframework.io/docs/building-operators/helm/quickstart/#direct-deployment

1. Then we can apply the CR. Make sure to edit the CR yaml with the proper values before applying.
```console
$ kubectl apply -f config/samples/demo_v1alpha1_nginx.yaml
```
For more details check https://github.com/konveyor/move2kube-ui/blob/main/helm-charts/move2kube/README.md

## Discussion

Expand Down
55 changes: 50 additions & 5 deletions config/samples/konveyor.io_v1alpha1_move2kube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,53 @@ metadata:
name: move2kube-sample
spec:
# Default values copied from <project_dir>/helm-charts/move2kube/values.yaml
storageclass: default
storagesize: 1Gi
version: latest


deployment:
api:
replicas: 1
privilegedPods: false
imageTag: ""
memory: "1Gi"
cpu: "300m"
authServer:
enable: false
replicas: 1
memory: "1Gi"
cpu: "300m"
database:
enable: false
replicas: 1
startEmpty: true
memory: "1Gi"
cpu: "300m"
ingress:
enable: true
preferRoute: false
host: mydomain.com
tlsSecretName: myTLSSecret
persistentVolumeClaim:
enable: false
createNew: true
name: ""
storageClassName: ""
storageSize: 1Gi
secret:
api:
enable: false
createNew: true
name: ""
configYAML: ""
authServer:
createNew: true
name: ""
adminUsername: admin
adminPassword: password
databaseUsername: auth-server
databasePassword: password
realmJSON: ""
standaloneHAXML: ""
securityContextContraints:
enable: false
serviceAccount:
enable: false
createNew: true
name: ""