Skip to content

Commit

Permalink
Bootstrap cog addon
Browse files Browse the repository at this point in the history
  • Loading branch information
bchatelard committed Nov 28, 2024
1 parent daec4b2 commit 87eaf24
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/koyeb/deploy_addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ type Addon interface {

func (h *addonsHandler) RegisterAddon(name string) error {
switch name {
case "cog":
h.addons = append(h.addons, &cogAddon{})
default:
return fmt.Errorf("unknown addon: %s", name)
}
Expand Down
21 changes: 21 additions & 0 deletions pkg/koyeb/deploy_addons_cog.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package koyeb

import "github.com/koyeb/koyeb-api-client-go/api/v1/koyeb"

type cogAddon struct{}

func (c *cogAddon) PreDeploy(ctx *CLIContext, definition *koyeb.DeploymentDefinition) error {
return nil
}

func (c *cogAddon) PostDeploy(ctx *CLIContext, definition *koyeb.DeploymentDefinition) error {
return nil
}

func (c *cogAddon) Setup(ctx *CLIContext) error {
return nil
}

func (c *cogAddon) Cleanup(ctx *CLIContext) error {
return nil
}

0 comments on commit 87eaf24

Please sign in to comment.