Skip to content

Commit

Permalink
fix #108
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Apr 3, 2021
1 parent 0f899c2 commit dbf82c1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/kubernetes/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ func (c *Cluster) GetConfig(ctx context.Context, namespace string) (model.Config
}
}

fmt.Println(result)

result.Exists = true

return result, nil
Expand Down
9 changes: 9 additions & 0 deletions deployment/k8s/incluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,13 @@ $ curl -X POST \
-H "X-API-KEY: 1234" \
-d '{"version":"0.2.4","strategy":"recreate"}' \
http://example.com/beetle/api/v1/cluster/production/namespace/default/app/toad/deployment

# Get application `toad` version
$ curl http://example.com/beetle/api/v1/cluster/production/namespace/default/app/toad -H "X-API-KEY: 1234" -s | jq .

# Another deployment with ramped strategy
$ curl -X POST \
-H "X-API-KEY: 1234" \
-d '{"version":"0.2.3","strategy":"ramped", "maxSurge": "1", "maxUnavailable": "0"}' \
http://example.com/beetle/api/v1/cluster/production/namespace/default/app/toad/deployment
```
3 changes: 1 addition & 2 deletions deployment/k8s/incluster/beetle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ data:
# App configs
app:
# Env mode (dev or prod)
mode: ${BEETLE_APP_MODE:-dev}
mode: ${BEETLE_APP_MODE:-prod}
# HTTP port
port: ${BEETLE_API_PORT:-8080}
# App URL
Expand Down Expand Up @@ -110,7 +110,6 @@ data:
name: ${BEETLE_KUBE_CLUSTER_01_NAME:-production}
inCluster: ${BEETLE_KUBE_CLUSTER_01_IN_CLUSTER:-true}
kubeconfig: ${BEETLE_KUBE_CLUSTER_01_CONFIG_FILE:- }
configMapName: ${BEETLE_KUBE_CLUSTER_01_CONFIG_MAP:-beetle-applications-configs}
# HTTP Webhook
webhook:
Expand Down

0 comments on commit dbf82c1

Please sign in to comment.