Skip to content

Commit aa0369b

Browse files
fix codefresh-cm not exists (#63)
1 parent a43a1cc commit aa0369b

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.63
1+
VERSION=v0.0.64
22
OUT_DIR=dist
33
YEAR?=$(shell date +"%Y")
44

cmd/commands/runtime.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,19 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
224224
return fmt.Errorf("failed to create project: %w", err)
225225
}
226226

227+
// persists codefresh-cm, this must be created before events-reporter eventsource
228+
// otherwise it will not start and no events will get to the platform.
229+
if err = persistRuntime(ctx, opts.insCloneOpts, rt, opts.commonConfig); err != nil {
230+
return fmt.Errorf("failed to create codefresh-cm: %w", err)
231+
}
232+
227233
for _, component := range rt.Spec.Components {
228234
log.G(ctx).Infof("creating component '%s'", component.Name)
229235
if err = component.CreateApp(ctx, opts.KubeFactory, opts.insCloneOpts, opts.RuntimeName, store.Get().CFComponentType, rt.Spec.Version); err != nil {
230236
return fmt.Errorf("failed to create '%s' application: %w", component.Name, err)
231237
}
232238
}
233239

234-
if err = persistRuntime(ctx, opts.insCloneOpts, rt, opts.commonConfig); err != nil {
235-
return fmt.Errorf("failed to create codefresh-cm: %w", err)
236-
}
237-
238240
if err = createEventsReporter(ctx, opts.insCloneOpts, opts); err != nil {
239241
return fmt.Errorf("failed to create events-reporter: %w", err)
240242
}

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cf version
2020
### Linux
2121
```bash
2222
# download and extract the binary
23-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.63/cf-linux-amd64.tar.gz | tar zx
23+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.64/cf-linux-amd64.tar.gz | tar zx
2424

2525
# move the binary to your $PATH
2626
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -32,7 +32,7 @@ cf version
3232
### Mac
3333
```bash
3434
# download and extract the binary
35-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.63/cf-darwin-amd64.tar.gz | tar zx
35+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.64/cf-darwin-amd64.tar.gz | tar zx
3636

3737
# move the binary to your $PATH
3838
mv ./cf-darwin-amd64 /usr/local/bin/cf

manifests/runtime.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: "{{ namespace }}"
66
spec:
77
defVersion: 1.0.0
8-
version: 0.0.63
8+
version: 0.0.64
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

0 commit comments

Comments
 (0)