forked from minio/operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add Discovery addons and tasks (minio#341)
See also: konveyor/tackle2-addon-analyzer#99 konveyor/tackle2-hub#671 --------- Signed-off-by: Sam Lucidi <slucidi@redhat.com>
- Loading branch information
Showing
10 changed files
with
203 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,3 +110,4 @@ metadata: | |
name: {{ analyzer_name }} | ||
spec: | ||
priority: 10 | ||
dependencies: [ {{ language_discovery_name }} ] |
35 changes: 35 additions & 0 deletions
35
roles/tackle/templates/customresource-addon-language-discovery.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
kind: Addon | ||
apiVersion: tackle.konveyor.io/v1alpha2 | ||
metadata: | ||
name: {{ language_discovery_name }} | ||
namespace: {{ app_namespace }} | ||
labels: | ||
app.kubernetes.io/name: {{ language_discovery_service_name }} | ||
app.kubernetes.io/component: {{ language_discovery_component_name }} | ||
app.kubernetes.io/part-of: {{ app_name }} | ||
spec: | ||
task: {{ language_discovery_name }} | ||
container: | ||
name: {{ language_discovery_component_name }} | ||
image: {{ language_discovery_fqin }} | ||
imagePullPolicy: {{ image_pull_policy }} | ||
resources: | ||
limits: | ||
cpu: {{ language_discovery_container_limits_cpu }} | ||
memory: {{ language_discovery_container_limits_memory }} | ||
requests: | ||
cpu: {{ language_discovery_container_requests_cpu }} | ||
memory: {{ language_discovery_container_requests_memory }} | ||
--- | ||
kind: Task | ||
apiVersion: tackle.konveyor.io/v1alpha2 | ||
metadata: | ||
namespace: {{ app_namespace }} | ||
name: {{ language_discovery_name }} | ||
labels: | ||
konveyor.io/discovery: "language" | ||
spec: | ||
priority: 10 | ||
data: | ||
source: language-discovery |
124 changes: 124 additions & 0 deletions
124
roles/tackle/templates/customresource-addon-tech-discovery.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
--- | ||
kind: Addon | ||
apiVersion: tackle.konveyor.io/v1alpha2 | ||
metadata: | ||
name: {{ tech_discovery_name }} | ||
namespace: {{ app_namespace }} | ||
labels: | ||
app.kubernetes.io/name: {{ tech_discovery_service_name }} | ||
app.kubernetes.io/component: {{ tech_discovery_component_name }} | ||
app.kubernetes.io/part-of: {{ app_name }} | ||
spec: | ||
task: {{ tech_discovery_name }} | ||
container: | ||
name: {{ tech_discovery_component_name }} | ||
image: {{ tech_discovery_fqin }} | ||
imagePullPolicy: {{ image_pull_policy }} | ||
resources: | ||
limits: | ||
cpu: {{ tech_discovery_container_limits_cpu }} | ||
memory: {{ tech_discovery_container_limits_memory }} | ||
requests: | ||
cpu: {{ tech_discovery_container_requests_cpu }} | ||
memory: {{ tech_discovery_container_requests_memory }} | ||
--- | ||
kind: Extension | ||
apiVersion: tackle.konveyor.io/v1alpha2 | ||
metadata: | ||
name: {{ tech_discovery_provider_java_name }} | ||
namespace: {{ app_namespace }} | ||
labels: | ||
app.kubernetes.io/name: {{ provider_java_service_name }} | ||
app.kubernetes.io/component: {{ provider_java_component_name }} | ||
app.kubernetes.io/part-of: {{ app_name }} | ||
spec: | ||
addon: {{ tech_discovery_name }} | ||
selector: tag:Language=Java || !tag:Language | ||
container: | ||
name: {{ provider_java_name }} | ||
image: {{ provider_java_image_fqin }} | ||
imagePullPolicy: {{ image_pull_policy }} | ||
args: | ||
- --port | ||
- $(PORT) | ||
env: | ||
- name: PORT | ||
value: ${seq:8000} | ||
resources: | ||
limits: | ||
cpu: {{ provider_java_container_limits_cpu }} | ||
memory: {{ provider_java_container_limits_memory }} | ||
requests: | ||
cpu: {{ provider_java_container_requests_cpu }} | ||
memory: {{ provider_java_container_requests_memory }} | ||
metadata: | ||
resources: | ||
- selector: identity:kind=maven | ||
fields: | ||
- name: settings | ||
path: /shared/creds/maven/settings.xml | ||
key: maven.settings.path | ||
provider: | ||
name: {{ provider_java_name }} | ||
address: localhost:$(PORT) | ||
initConfig: | ||
- providerSpecificConfig: | ||
bundles: /jdtls/java-analyzer-bundle/java-analyzer-bundle.core/target/java-analyzer-bundle.core-1.0.0-SNAPSHOT.jar | ||
depOpenSourceLabelsFile: /usr/local/etc/maven.default.index | ||
lspServerPath: /jdtls/bin/jdtls | ||
mavenSettingsFile: $(maven.settings.path) | ||
--- | ||
kind: Extension | ||
apiVersion: tackle.konveyor.io/v1alpha2 | ||
metadata: | ||
name: {{ tech_discovery_provider_generic_name }} | ||
namespace: {{ app_namespace }} | ||
labels: | ||
app.kubernetes.io/name: {{ provider_generic_service_name }} | ||
app.kubernetes.io/component: {{ provider_generic_component_name }} | ||
app.kubernetes.io/part-of: {{ app_name }} | ||
spec: | ||
addon: {{ tech_discovery_name }} | ||
selector: tag:Language=Golang || tag:Language=Python | ||
container: | ||
name: {{ provider_generic_name }} | ||
image: {{ provider_generic_image_fqin }} | ||
imagePullPolicy: {{ image_pull_policy }} | ||
args: | ||
- --port | ||
- $(PORT) | ||
env: | ||
- name: PORT | ||
value: ${seq:8000} | ||
resources: | ||
limits: | ||
cpu: {{ provider_generic_container_limits_cpu }} | ||
memory: {{ provider_generic_container_limits_memory }} | ||
requests: | ||
cpu: {{ provider_generic_container_requests_cpu }} | ||
memory: {{ provider_generic_container_requests_memory }} | ||
metadata: | ||
provider: | ||
name: {{ provider_generic_name }} | ||
address: localhost:$(PORT) | ||
initConfig: | ||
--- | ||
kind: Task | ||
apiVersion: tackle.konveyor.io/v1alpha2 | ||
metadata: | ||
namespace: {{ app_namespace }} | ||
name: {{ tech_discovery_name }} | ||
labels: | ||
konveyor.io/discovery: "technology" | ||
spec: | ||
priority: 10 | ||
dependencies: [ {{ language_discovery_name }} ] | ||
data: | ||
mode: | ||
discovery: true | ||
tagger: | ||
enabled: true | ||
source: tech-discovery | ||
rules: | ||
labels: | ||
included: ["discovery"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters