Skip to content

Commit

Permalink
✨ Add ALM Examples for new CRs (#369)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Montleon <jmontleo@redhat.com>
  • Loading branch information
jmontleon authored Jul 24, 2024
1 parent b68cba6 commit 9d41c5a
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 1 deletion.
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 }}

0 comments on commit 9d41c5a

Please sign in to comment.