Skip to content

Commit

Permalink
✨ Add ALM Examples for new CRs
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Montleon <jmontleo@redhat.com>
  • Loading branch information
jmontleon committed Jul 24, 2024
1 parent 9731fc0 commit 716cc17
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 2 deletions.
87 changes: 85 additions & 2 deletions bundle/manifests/konveyor-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,76 @@ metadata:
alm-examples: |-
[
{
"apiVersion": "tackle.konveyor.io/v1alpha2",
"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",
"metadata": {
"name": "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-16T17:45:16Z"
createdAt: "2024-07-23T19:13: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 }}

0 comments on commit 716cc17

Please sign in to comment.