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

✨ Add ALM Examples for new CRs #369

Merged
merged 1 commit into from
Jul 24, 2024
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
85 changes: 84 additions & 1 deletion bundle/manifests/konveyor-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,75 @@ metadata:
annotations:
alm-examples: |-
[
{
"apiVersion": "tackle.konveyor.io/v1alpha1",
"kind": "Addon",
"metadata": {
"name": "myaddon",
"namespace": "konveyor-tackle"
},
"spec": {
"container": {
"image": "quay.io/konveyor/tackle2-addon-analyzer:latest",
"imagePullPolicy": "Always",
"name": "myaddon",
"resources": {
"limits": {
"cpu": 1,
"memory": "1Gi"
},
"requests": {
"cpu": 1,
"memory": "512Mi"
}
}
},
"task": "mytask"
}
},
{
"apiVersion": "tackle.konveyor.io/v1alpha1",
"kind": "Extension",
"metadata": {
"name": "myextension",
"namespace": "konveyor-tackle"
},
"spec": {
"addon": "myaddon",
"container": {
"args": [
"--port",
"$(PORT)"
],
"env": [
{
"name": "PORT",
"value": "${seq:8000}"
}
],
"image": "quay.io/konveyor/generic-external-provider:latest",
"imagePullPolicy": "Always",
"name": "myextension",
"resources": {
"limits": {
"cpu": 1,
"memory": "1Gi"
},
"requests": {
"cpu": 1,
"memory": "1Gi"
}
}
},
"metadata": {
"provider": {
"address": "localhost:$(PORT)",
"name": "myextension"
}
},
"selector": "tag:Language=MyLang"
}
},
{
"apiVersion": "tackle.konveyor.io/v1alpha1",
"kind": "Tackle",
Expand All @@ -14,13 +83,27 @@ metadata:
"spec": {
"feature_auth_required": "false"
}
},
{
"apiVersion": "tackle.konveyor.io/v1alpha1",
"kind": "Task",
"metadata": {
"name": "mytask",
"namespace": "konveyor-tackle"
},
"spec": {
"dependencies": [
"myaddon"
],
"priority": 10
}
}
]
capabilities: Seamless Upgrades
categories: Modernization & Migration
certified: "false"
containerImage: quay.io/konveyor/tackle2-operator:latest
createdAt: "2024-07-23T20:30:23Z"
createdAt: "2024-07-24T20:21:03Z"
description: Konveyor is an open-source application modernization platform that
helps organizations safely and predictably modernize applications to Kubernetes
at scale.
Expand Down
20 changes: 20 additions & 0 deletions helm/templates/crds/tackle.konveyor.io_addons.sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ if .Values.olm }}
apiVersion: tackle.konveyor.io/v1alpha1
kind: Addon
metadata:
name: myaddon
namespace: konveyor-tackle
spec:
container:
image: quay.io/konveyor/tackle2-addon-analyzer:latest
imagePullPolicy: Always
name: myaddon
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 1
memory: 512Mi
task: mytask
{{ end }}
31 changes: 31 additions & 0 deletions helm/templates/crds/tackle.konveyor.io_extensions.sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{{ if .Values.olm }}
apiVersion: tackle.konveyor.io/v1alpha1
kind: Extension
metadata:
name: myextension
namespace: konveyor-tackle
spec:
addon: myaddon
container:
args:
- --port
- $(PORT)
env:
- name: PORT
value: ${seq:8000}
image: quay.io/konveyor/generic-external-provider:latest
imagePullPolicy: Always
name: myextension
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 1
memory: 1Gi
metadata:
provider:
address: localhost:$(PORT)
name: myextension
selector: tag:Language=MyLang
{{ end }}
11 changes: 11 additions & 0 deletions helm/templates/crds/tackle.konveyor.io_tasks.sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ if .Values.olm }}
apiVersion: tackle.konveyor.io/v1alpha1
kind: Task
metadata:
name: mytask
namespace: konveyor-tackle
spec:
dependencies:
- myaddon
priority: 10
{{ end }}
Loading