Skip to content

Commit

Permalink
smartstate poc using a container in the agent
Browse files Browse the repository at this point in the history
the container exposes a service that recieves the cluster credentials, runs
the smartstate and will return the results as a bulk when done.

Signed-off-by: borod108 <[email protected]>
  • Loading branch information
borod108 committed Jan 13, 2025
1 parent bbf9e82 commit fcbc9c1
Show file tree
Hide file tree
Showing 15 changed files with 824 additions and 66 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ GO_FILES := $(shell find ./ -name ".go" -not -path "./bin" -not -path "./packagi
GO_CACHE := -v $${HOME}/go/migration-planner-go-cache:/opt/app-root/src/go:Z -v $${HOME}/go/migration-planner-go-cache/.cache:/opt/app-root/src/.cache:Z
TIMEOUT ?= 30m
VERBOSE ?= false
MIGRATION_PLANNER_AGENT_IMAGE ?= quay.io/kubev2v/migration-planner-agent
MIGRATION_PLANNER_API_IMAGE ?= quay.io/kubev2v/migration-planner-api
MIGRATION_PLANNER_AGENT_IMAGE ?= quay.io/bodnopoz/migration-planner-agent
MIGRATION_PLANNER_API_IMAGE ?= quay.io/bodnopoz/migration-planner-api
MIGRATION_PLANNER_API_IMAGE_PULL_POLICY ?= Always
MIGRATION_PLANNER_UI_IMAGE ?= quay.io/kubev2v/migration-planner-ui
MIGRATION_PLANNER_NAMESPACE ?= assisted-migration
Expand Down
44 changes: 22 additions & 22 deletions api/v1alpha1/agent/spec.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion api/v1alpha1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ components:
infra:
type: object
$ref: '#/components/schemas/Infra'

smartState:
type: object
$ref: '#/components/schemas/SmartState'
VCenter:
type: object
required:
Expand Down Expand Up @@ -440,6 +442,12 @@ components:
type: object
$ref: '#/components/schemas/MigrationIssues'

SmartState:
type: array
items:
type: object
additionalProperties: true

Infra:
type: object
required:
Expand Down
50 changes: 25 additions & 25 deletions api/v1alpha1/spec.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions api/v1alpha1/types.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions data/ignition.template
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,27 @@ storage:
name: core
group:
name: core

- path: /home/core/.config/containers/systemd/manageiq-service.container
mode: 0644
contents:
inline: |
[Unit]
Description=ManageIQ SmartState Service

[Container]
ContainerName=manageiq-service
Image=quay.io/bodnopoz/manageiq-service:latest
PublishPort=3334:3334
Network=host
UserNS=keep-id:uid=1001

[Service]
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target default.target
- path: /home/core/.config/containers/systemd/planner-agent.container
mode: 0644
contents:
Expand Down
Loading

0 comments on commit fcbc9c1

Please sign in to comment.