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 tutorial message template for x plugin #1127

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

mszostok
Copy link
Contributor

@mszostok mszostok commented Jul 6, 2023

Description

Changes proposed in this pull request:

  • Add tutorial message template for x plugin

Testing

  1. Create k3d cluster

  2. Start plugin server: env PLUGIN_SERVER_HOST=http://host.k3d.internal go run test/helpers/plugin_server.go

  3. Build x plugin: PLUGIN_TARGETS="x" make build-plugins

  4. Install Botkube with such example config:

    config yaml

    communications:
      default-group:
        socketSlack:
          enabled: true
          channels:
            default:
              name: general
              bindings:
                sources: [ ]
                executors:
                  - bins-management
          appToken: "xapp-1"
          botToken: "xoxb-"
    
    executors:
      bins-management:
        local-repo/x:
          enabled: true
          context:
            rbac:
              group:
                type: Static
                static:
                  values: [ "system:masters" ]
          config:
            templates:
              - ref: github.com/mszostok/botkube//cmd/executor/x/templates?ref=334eb4321e793a5d7107d000cba4a2c39da286c3
    
    extraEnv:
      - name: LOG_LEVEL_EXECUTOR_LOCAL-REPO_X
        value: "debug"
    
    plugins:
      repositories:
        local-repo:
          url: http://host.k3d.internal:3000/botkube.yaml
    
    settings:
      log:
        level: "debug"
      clusterName: "labs"
      upgradeNotifier: false
    
    analytics:
      disable: true
    
    configWatcher:
      enabled: false

Example Flux

  1. Install Flux CLI
    @Botkube x install github.com/fluxcd/flux2
    
  2. Click Quickstart
  3. Follow tutorial steps.

You can do the same for Helm by running: @Botkube x install https://get.helm.sh/helm-v3.10.3-linux-amd64.tar.gz --file helm

Demo

Screen.Recording.2023-07-07.at.02.05.00.mov

Related issue(s)

@mszostok mszostok added the enhancement New feature or request label Jul 6, 2023
@mszostok mszostok marked this pull request as ready for review July 7, 2023 00:06
@mszostok mszostok requested review from a team and PrasadG193 as code owners July 7, 2023 00:06
@mszostok mszostok force-pushed the x-plugin/tutorial-tpl branch 4 times, most recently from 856592e to 91929b0 Compare July 9, 2023 11:46
@mszostok mszostok mentioned this pull request Jul 10, 2023
cmd/executor/x/main.go Outdated Show resolved Hide resolved
@mszostok mszostok enabled auto-merge (squash) July 10, 2023 18:04
@mszostok mszostok merged commit 8882882 into kubeshop:main Jul 10, 2023
13 checks passed
@mszostok mszostok deleted the x-plugin/tutorial-tpl branch July 10, 2023 18:24
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants