Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Commit b766201

Browse files
authored
Merge pull request #79 from dexhorthy/dex/chxxxx/cleanup
clean up example app.yml so it works, gitignore some things
2 parents d64b9d0 + a68a26e commit b766201

File tree

4 files changed

+16
-26
lines changed

4 files changed

+16
-26
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ state.json
55

66
.idea
77
.vscode
8+
installer/

app.yml

+4-22
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,16 @@
22
---
33
assets:
44
v1:
5-
- github:
6-
repo: github.com/replicatedhq/superbigtool-k8s
7-
ref: 8fcaebe55af67fe6789fa678faaa76fa867fbc
8-
path: '**/*.yml'
9-
dest: ./k8s/
10-
private: true
11-
- github:
12-
repo: github.com/replicatedhq/superbigtool-enterprise
13-
ref: aef8fe5afe5af67fe6789fa678fe876fa867fbc
14-
path: release/k8s/*.sh
15-
dest: ./scripts/
16-
private: true
175
- inline:
186
contents: |
197
#!/bin/sh
208
kubectl delete ns {{repl ConfigOption "namespace" }}
21-
dest: ./uninstall.sh
9+
dest: ./installer/scripts/uninstall.sh
2210
mode: 0777
23-
- docker:
24-
image: quay.io/superbigtool/api:2.1.0
25-
private: true
26-
dest: docker/api.tar
27-
no_template: true
2811
- docker:
2912
image: postgres:10.1
30-
dest: docker/postgres.tar
31-
private: false
32-
no_template: true
13+
dest: installer/docker/postgres.tar
14+
source: public
3315

3416
config:
3517
v1:
@@ -71,5 +53,5 @@ lifecycle:
7153
- message:
7254
level: warn
7355
contents: |
74-
A state file has been written to {{repl context "state_file_path" }} -- please store it
56+
A state file has been written to {{repl Installation "state_file_path" }} -- please store it
7557
somewhere safe, you'll need it if you want to update or recover this installation of SuperBigTool.

e2e-retraced/ship-retraced.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,11 @@ config:
142142

143143
lifecycle:
144144
v1:
145-
- render:
146-
skip_state_warning: true
145+
- message:
146+
level: info
147+
contents: |
148+
This script will prepare retraced to deploy to your cluster.
149+
- render: {}
147150
- message:
148151
level: info
149152
contents: |

pkg/lifecycle/message/api.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ func (m *DaemonMessenger) Execute(ctx context.Context, release *api.Release, ste
2929

3030
daemonExitedChan := m.Daemon.EnsureStarted(ctx, release)
3131

32-
m.Daemon.PushStep(ctx, "message", api.Step{Message: step})
32+
m.Daemon.PushStep(ctx, "message", api.Step{
33+
Message: &api.Message{
34+
Contents: step.Contents,
35+
Level: step.Level,
36+
}})
3337
debug.Log("event", "step.pushed")
3438
return m.awaitMessageConfirmed(ctx, daemonExitedChan)
3539
}
@@ -71,7 +75,7 @@ func (m *DaemonMessenger) funcMap() template.FuncMap {
7175
return map[string]interface{}{
7276
"config": configFunc,
7377
"ConfigOption": configFunc,
74-
"context": func(name string) interface{} {
78+
"Installation": func(name string) interface{} {
7579
switch name {
7680
case "state_file_path":
7781
return state.Path

0 commit comments

Comments
 (0)