Make pkg/chart use expandybird-service

pull/573/head
jackgr 9 years ago
parent edcf783f65
commit a3fefbb0b7

@ -61,7 +61,7 @@ type EnvConstraint struct {
// Expander controls how template/ is evaluated. // Expander controls how template/ is evaluated.
type Expander struct { type Expander struct {
// Currently just Expandybird or GoTemplate // Kubernetes service name to look up in DNS.
Name string `json:"name"` Name string `json:"name"`
// During evaluation, which file to start from. // During evaluation, which file to start from.
Entrypoint string `json:"entrypoint"` Entrypoint string `json:"entrypoint"`

@ -55,8 +55,8 @@ func TestLoadChartfile(t *testing.T) {
if expander == nil { if expander == nil {
t.Errorf("No expander found in %s", testfile) t.Errorf("No expander found in %s", testfile)
} else { } else {
if expander.Name != "Expandybird" { if expander.Name != "expandybird-service" {
t.Errorf("Expected expander name Expandybird, got %s", expander.Name) t.Errorf("Expected expander name expandybird-service, got %s", expander.Name)
} }
if expander.Entrypoint != "templates/wordpress.jinja" { if expander.Entrypoint != "templates/wordpress.jinja" {

Binary file not shown.

@ -27,7 +27,7 @@ environment:
apiGroups: apiGroups:
- 3rdParty - 3rdParty
expander: expander:
name: Expandybird name: expandybird-service
entrypoint: templates/wordpress.jinja entrypoint: templates/wordpress.jinja
schema: wordpress.jinja.schema schema: wordpress.jinja.schema
Loading…
Cancel
Save