Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Shipyard to be consumable by other projects #1497

Merged
merged 11 commits into from
Jan 23, 2024

Conversation

mkolesnik
Copy link
Collaborator

@mkolesnik mkolesnik commented Dec 6, 2023

These commits refactor Shipyard and break it down into smaller more basic components which are Submariner agnostic.
This allows it to be used in projects outside the Submariner org, i.e. skupperproject/skupper#1317

@mkolesnik mkolesnik added the e2e-projects Run E2E tests in each consuming project label Dec 6, 2023
@submariner-bot
Copy link

🤖 Created branch: z_pr1497/mkolesnik/remixed

@mkolesnik mkolesnik added the lint-projects Lint consuming projects label Dec 6, 2023
@mkolesnik mkolesnik force-pushed the remixed branch 6 times, most recently from bca49e5 to 4a9aa75 Compare December 12, 2023 12:54
@mkolesnik mkolesnik force-pushed the remixed branch 2 times, most recently from 90b7d99 to 45a6dd9 Compare December 18, 2023 10:23
@mkolesnik mkolesnik changed the title Genericize base dapper logic Refactoring Shipyard to be consumable by other projects Dec 18, 2023
@mkolesnik mkolesnik changed the title Refactoring Shipyard to be consumable by other projects Refactor Shipyard to be consumable by other projects Dec 18, 2023
@mkolesnik mkolesnik marked this pull request as ready for review December 18, 2023 14:44
scripts/shared/deploy.sh Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 6, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further
activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 6, 2024
Make base dapper logic project agnostic so that it can be consumed by
projects outside the submariner org.
This mainly involves moving out basic dapper functions out to
`Makefile.dapper.base` and adding an `ORG` argument to specify the
organization.
References to `submariner-io` have been removed where possible.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
To make it easy for other projects to consume, split out linting to a
`Makefile.linting` file that can be included by other projects that
desire these capabilities.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
To make it easy for other projects to consume, split out cluster
creation and cleanup to a `Makefile.clusters` file that can be
included by other projects that desire these capabilities.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
To better support external projects, rename the flag to a more neutral
one which actually reflects the type of deployment.

The old flag (when sent via `using=`) is still respected, to not break
existing Submariner projects.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
For easier consumption from other projects, and for easier POCs, make
the URL and image locations dynamic so that we can specify where to take base
Shipyard files and images from.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
Since the workaround is Submariner specific, it should be part of the
deploy stage and not part of the cluster creation stage which is
agnostic to Submariner.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
Add the option to run just Shipyard's goals inside the container, to
not interfere with consuming project's goals.

Currently, this only covers the basic clusters and Go linting goals, but
more goals can be added in the future.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
mkolesnik and others added 2 commits January 18, 2024 13:23
Add an ability to specify custom config in the cluster config file,
which will be provider specific, and allow consuming projects to
customize the provider's configuration before deploying.

Currently, only 'kind' will be supported.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
@tpantelis tpantelis merged commit 88783a9 into submariner-io:devel Jan 23, 2024
56 checks passed
@submariner-bot
Copy link

🤖 Closed branches: [z_pr1497/mkolesnik/remixed]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-projects Run E2E tests in each consuming project lint-projects Lint consuming projects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants