Skip to content

Conversation

@universal-itengineer
Copy link
Member

@universal-itengineer universal-itengineer commented Mar 24, 2025

Description

Rewrite cloner_startup.sh to golang
Refactor static binaries import and build for cdi controller and cloner:

  • controller needs static bin printFile
  • cloner needs static bin hello

Why do we need it, and what problem does it solve?

Getting rid of bash scripts

What is the expected result?

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: core
type: chore
summary: cloner_startup.sh to go, refactor static binaries build and import
impact_level: low

@universal-itengineer universal-itengineer added this to the v0.18.0 milestone Mar 24, 2025
@universal-itengineer universal-itengineer force-pushed the chore/core/cdi-cloner-bash-to-go branch 4 times, most recently from f07b3f8 to ffef5b6 Compare March 24, 2025 15:23
@universal-itengineer universal-itengineer changed the title chore(core): cdi-cloner cloner_startup.sh to go chore(core): cdi-cloner bash to go Mar 25, 2025
@universal-itengineer universal-itengineer force-pushed the chore/core/cdi-cloner-bash-to-go branch 9 times, most recently from cca4be7 to 0484116 Compare March 25, 2025 13:08
@universal-itengineer universal-itengineer marked this pull request as ready for review March 25, 2025 13:51
Copy link
Contributor

@Isteb4k Isteb4k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's important to add a linter.

@universal-itengineer universal-itengineer force-pushed the chore/core/cdi-cloner-bash-to-go branch 6 times, most recently from b32fc04 to 8689148 Compare March 26, 2025 14:01
universal-itengineer and others added 17 commits March 26, 2025 17:09
Signed-off-by: Nikita Korolev <[email protected]>
Signed-off-by: Nikita Korolev <[email protected]>
Signed-off-by: Nikita Korolev <[email protected]>
Signed-off-by: Nikita Korolev <[email protected]>
Signed-off-by: Nikita Korolev <[email protected]>
Signed-off-by: Nikita Korolev <[email protected]>
Signed-off-by: Nikita Korolev <[email protected]>

fix import hello

Signed-off-by: Nikita Korolev <[email protected]>

remove commented code

Signed-off-by: Nikita Korolev <[email protected]>

rename run to cloner

Signed-off-by: Nikita Korolev <[email protected]>

update anonim func

Signed-off-by: Nikita Korolev <[email protected]>
Signed-off-by: Nikita Korolev <[email protected]>
@universal-itengineer universal-itengineer force-pushed the chore/core/cdi-cloner-bash-to-go branch from 8689148 to 418a5df Compare March 26, 2025 14:09
@universal-itengineer universal-itengineer changed the title chore(core): cdi-cloner bash to go refactor(core): cdi-cloner bash to go Mar 26, 2025
@universal-itengineer universal-itengineer changed the title refactor(core): cdi-cloner bash to go refactor(core): cdi-cloner bash to go and cdi-controller Mar 26, 2025
Signed-off-by: Nikita Korolev <[email protected]>
Isteb4k
Isteb4k previously approved these changes Mar 26, 2025
Signed-off-by: Nikita Korolev <[email protected]>
@universal-itengineer universal-itengineer merged commit ba38be5 into main Mar 26, 2025
16 checks passed
@universal-itengineer universal-itengineer deleted the chore/core/cdi-cloner-bash-to-go branch March 26, 2025 16:00
@Isteb4k Isteb4k modified the milestones: v0.18.0, v0.17.0 Apr 28, 2025
yachmenevas pushed a commit that referenced this pull request Oct 15, 2025
refactor(core): cdi-cloner bash to go and cdi-controller

Rewrite cloner_startup.sh to golang

Refactor static binaries import and build for cdi controller and cloner:
- controller needs static bin printFile
- cloner needs static bin hello
---------

Signed-off-by: Nikita Korolev <[email protected]>
Co-authored-by: Ivan Mikheykin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants