Skip to content

Commit c4104ec

Browse files
author
Dimy Jeannot
committed
fix: working on infrastructure with Pulumi
1 parent 3ffb79b commit c4104ec

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

.github/workflows/nightly.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ on:
66
push:
77
branches-ignore:
88
- main
9-
#on:
10-
# schedule:
11-
# - cron: '0 0 * * 2-6' # At 12:00 AM, Tuesday through Saturday
9+
schedule:
10+
- cron: '0 0 * * 2-6' # At 12:00 AM, Tuesday through Saturday
1211

13-
#concurrency:
14-
# group: nightly
15-
# cancel-in-progress: true
12+
concurrency:
13+
group: nightly
14+
cancel-in-progress: true
1615

1716
jobs:
1817
nightly:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
apps/workloads/private/event/v2alpha/event-multiplexer=0.33.1-devel
1+
apps/workloads/private/event/v2alpha/event-multiplexer=0.33.1-devel2

libs/public/go/sdk/v2alpha/setting.go

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ import (
55
"encoding/json"
66
"errors"
77
"fmt"
8-
"libs/protobuf/go/protobuf/gen/platform/spec/v2"
98
"os"
109
"path/filepath"
1110
"reflect"
1211
"strings"
1312
"sync"
1413

14+
"libs/protobuf/go/protobuf/gen/platform/spec/v2"
15+
1516
"dario.cat/mergo"
1617

1718
"github.com/fsnotify/fsnotify"
@@ -185,7 +186,21 @@ func getFileSystemAndConfigurer(platformContext string) (*FileSystem, *viper.Vip
185186
ctx := strings.TrimSpace(string(file))
186187

187188
if ctx == "" {
188-
return nil, nil, errors.New("no context found")
189+
err := fs.WriteFile(DefaultContextFile, []byte(DefaultContextFileName), os.ModePerm)
190+
if err != nil {
191+
return nil, nil, errors.New("internal error: Cannot create default context")
192+
}
193+
194+
fixthis := `
195+
name: default
196+
platform:
197+
dynamicconfigreload: false
198+
`
199+
200+
err = fs.WriteFile(DefaultContextFile+".yaml", []byte(fixthis), os.ModePerm)
201+
if err != nil {
202+
return nil, nil, errors.New("internal error: Cannot create default context")
203+
}
189204
}
190205

191206
configurer.SetFs(ufs)

0 commit comments

Comments
 (0)