Skip to content

Commit

Permalink
updated to reflect component key changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xadhatter committed Feb 2, 2024
1 parent 64c335f commit b0f279e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion efs/hello-world/components/frontend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() {
k := kit.New()

backend = k.Component("backend")
k.Route("Path(`/{{.Env.subPath}}/hello`)", sayHello)
k.Route("Path(`/{{.Vars.subPath}}/hello`)", sayHello)

k.Start()
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.18.2
github.com/xigxog/kubefox v0.4.0-alpha.0.20240201172225-6ca281a7189a
github.com/xigxog/kubefox v0.4.0-alpha.0.20240202230452-ce5b66032744
gopkg.in/yaml.v2 v2.4.0
k8s.io/api v0.29.1
k8s.io/apimachinery v0.29.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
github.com/xigxog/kubefox v0.4.0-alpha.0.20240201172225-6ca281a7189a h1:T1EeEsFCQeFUCjV66ffiDKl7lcBqyKngtYXutaQq+/Y=
github.com/xigxog/kubefox v0.4.0-alpha.0.20240201172225-6ca281a7189a/go.mod h1:yAM9kmrDh2o+ynzpKsLavRwYrS36L5MYBmUxXjYrjIw=
github.com/xigxog/kubefox v0.4.0-alpha.0.20240202230452-ce5b66032744 h1:zmpKUxVMLGg3JY3TprP/BPv7C4LXHSjnmrOfUTS0b3o=
github.com/xigxog/kubefox v0.4.0-alpha.0.20240202230452-ce5b66032744/go.mod h1:yAM9kmrDh2o+ynzpKsLavRwYrS36L5MYBmUxXjYrjIw=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
Expand Down
6 changes: 3 additions & 3 deletions internal/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,13 @@ func (c *Client) CreatePlatform(namespace, name string) *v1alpha1.Platform {

func (c *Client) WaitPlatformReady(ctx context.Context, p *v1alpha1.Platform, spec *v1alpha1.AppDeploymentSpec) {
log.Info("Waiting for KubeFox Platform '%s' to be ready...", p.Name)
if err := c.WaitPodReady(ctx, p, "nats", ""); err != nil {
if err := c.WaitPodReady(ctx, p, api.PlatformComponentNATS, ""); err != nil {
log.Fatal("Error while waiting: %v", err)
}
if err := c.WaitPodReady(ctx, p, "broker", ""); err != nil {
if err := c.WaitPodReady(ctx, p, api.PlatformComponentBroker, ""); err != nil {
log.Fatal("Error while waiting: %v", err)
}
if err := c.WaitPodReady(ctx, p, "httpsrv", ""); err != nil {
if err := c.WaitPodReady(ctx, p, api.PlatformComponentHTTPSrv, ""); err != nil {
log.Fatal("Error while waiting: %v", err)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (r *repo) GetCompImageFromDir(compDirName string) string {
}

func (r *repo) GetCompImage(name, commit string) string {
return fmt.Sprintf("%s/%s:%s", r.cfg.ContainerRegistry.Address, name, commit)
return fmt.Sprintf("%s/%s/%s:%s", r.cfg.ContainerRegistry.Address, r.app.Name, name, commit)
}

func (r *repo) GetRepoURL() string {
Expand Down

0 comments on commit b0f279e

Please sign in to comment.