diff --git a/bundle/manifests/konveyor-operator.clusterserviceversion.yaml b/bundle/manifests/konveyor-operator.clusterserviceversion.yaml index 56c2b94..6af743a 100644 --- a/bundle/manifests/konveyor-operator.clusterserviceversion.yaml +++ b/bundle/manifests/konveyor-operator.clusterserviceversion.yaml @@ -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", @@ -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. diff --git a/helm/templates/crds/tackle.konveyor.io_addons.sample.yaml b/helm/templates/crds/tackle.konveyor.io_addons.sample.yaml new file mode 100644 index 0000000..7179cb0 --- /dev/null +++ b/helm/templates/crds/tackle.konveyor.io_addons.sample.yaml @@ -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 }} diff --git a/helm/templates/crds/tackle.konveyor.io_extensions.sample.yaml b/helm/templates/crds/tackle.konveyor.io_extensions.sample.yaml new file mode 100644 index 0000000..3f31896 --- /dev/null +++ b/helm/templates/crds/tackle.konveyor.io_extensions.sample.yaml @@ -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 }} diff --git a/helm/templates/crds/tackle.konveyor.io_tasks.sample.yaml b/helm/templates/crds/tackle.konveyor.io_tasks.sample.yaml new file mode 100644 index 0000000..d42c8bd --- /dev/null +++ b/helm/templates/crds/tackle.konveyor.io_tasks.sample.yaml @@ -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 }}