Feature: Add --platform flag for CI/CD platform selection.#3379
Conversation
Add a new --platform flag to the config ci command that allows users to specify which CI/CD platform to generate manifests for. The flag defaults to "github" and is case-insensitive. Currently only GitHub is supported. Using any other value returns a descriptive error message indicating the platform is not yet implemented, preparing the codebase for future platform additions. Issue knative#3256 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
|
/cc @creydr @matejvasek @lkingland Thank you 😸 👍 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3379 +/- ##
==========================================
- Coverage 55.57% 55.48% -0.10%
==========================================
Files 173 173
Lines 20061 20072 +11
==========================================
- Hits 11148 11136 -12
- Misses 7795 7821 +26
+ Partials 1118 1115 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
So IIUC correctly this is at the moment (without having other platforms supported) mostly to make the users aware, that only GH is supported at the moment. Correct? |
cmd/ci/config.go
Outdated
|
|
||
| PathFlag = "path" | ||
|
|
||
| CICDPlatformFlag = "platform" |
There was a problem hiding this comment.
can this be just PlatformFlag ? do we expect another platform to be included in func config ci subcommand?
There was a problem hiding this comment.
yes great. I meant "different platform" as to that new thing would conflict with the naming so that we have to specify the CICD as well. Thanks for simplicifation
This commit will be squashed. Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gauron99, twoGiants The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
--platformflag toconfig cicommand for CI/CD platform selection/kind enhancement
Relates to #3256
Release Note
Docs