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

Add support for archived plugins #1202

Merged
merged 7 commits into from
Aug 24, 2023
Merged

Conversation

mszostok
Copy link
Collaborator

@mszostok mszostok commented Aug 21, 2023

Description

Changes proposed in this pull request:

  • Add support for archived plugins

Testing

Integration test are already using archives. However, you can test that also locally by running botkube with local plugins in the same way as you did before.

Related issue(s)

@mszostok mszostok added the enhancement New feature or request label Aug 21, 2023
@mszostok mszostok added this to the v1.4.0 milestone Aug 21, 2023
@mszostok mszostok marked this pull request as ready for review August 21, 2023 17:35
@mszostok mszostok requested a review from PrasadG193 as a code owner August 21, 2023 17:35
@mszostok mszostok requested review from a team and pkosiec August 21, 2023 17:35
@mszostok mszostok marked this pull request as draft August 21, 2023 18:33

func main() {
pluginTargets := flag.String("plugin-targets", getEnv("PLUGIN_TARGETS", ""), "Comma separated list of specific targets to build. If empty, all targets are built.")
outputMode := flag.String("output-mode", getEnv("OUTPUT_MODE", "archive"), "Output format. Allowed values: binary or archive.")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

in the next PR I can revert that and bring the default value to binary. However now the OUTPUT_MODE set in the workflow file is ignored so I need to do it in the code instead.

Copy link
Collaborator

Choose a reason for hiding this comment

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

No, I think it makes sense to have it as default value 👍

@mszostok mszostok marked this pull request as ready for review August 22, 2023 11:53
@@ -251,3 +252,7 @@ jobs:
run: |
KUBECONFIG=$(k3d kubeconfig write ${{ matrix.integration }}-test-cluster) \
make test-integration-${{ matrix.integration }}

- name: Dump cluster
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can add the same in other places, WDYT?

Copy link
Collaborator

@pkosiec pkosiec left a comment

Choose a reason for hiding this comment

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

LGTM, but please see the comments before merge 👍

.github/workflows/pr-build.yaml Show resolved Hide resolved

func main() {
pluginTargets := flag.String("plugin-targets", getEnv("PLUGIN_TARGETS", ""), "Comma separated list of specific targets to build. If empty, all targets are built.")
outputMode := flag.String("output-mode", getEnv("OUTPUT_MODE", "archive"), "Output format. Allowed values: binary or archive.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

No, I think it makes sense to have it as default value 👍

internal/plugin/downloader.go Show resolved Hide resolved
internal/plugin/index_builder.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@pkosiec pkosiec left a comment

Choose a reason for hiding this comment

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

👌

@mszostok mszostok force-pushed the plugin-archive branch 2 times, most recently from 3613d44 to c8d4e6c Compare August 23, 2023 10:41
@mszostok mszostok enabled auto-merge (squash) August 23, 2023 10:50
@mszostok mszostok merged commit 83aa24e into kubeshop:main Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants