Skip to content

Commit 34c5954

Browse files
authored
CR-9668 app proxy on timeout (#279)
* add git integration + user PAT even when wait for runtime sync is timed out * replaced network-tester job with pod * display right message at the end of the installation * change to 8m timeout, and exit-code to 0
1 parent fcf98de commit 34c5954

File tree

14 files changed

+188
-274
lines changed

14 files changed

+188
-274
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Changelog:
22

3-
* updated to cap-app-proxy:0.0.27 (fix [CR-9420](https://codefresh-io.atlassian.net/browse/CR-9420))
3+
* Create git integration and user PAT even when installation check times out
4+
* Replace pre-install network check Job with a simple Pod

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.255
1+
VERSION=v0.0.256
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

cmd/commands/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func RunConfigCreateContext(ctx context.Context, context, apiKey, url string) er
9292
if err := cfConfig.CreateContext(ctx, context, apiKey, url); err != nil {
9393
return err
9494
}
95-
log.G().Infof("New context created: '%s'", context)
95+
log.G().Infof("New context created: \"%s\"", context)
9696
return RunConfigUseContext(ctx, context)
9797
}
9898

cmd/commands/git-source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func RunGitSourceCreate(ctx context.Context, opts *GitSourceCreateOptions) error
230230
return fmt.Errorf("failed to create git-source application. Err: %w", err)
231231
}
232232

233-
log.G(ctx).Infof("Successfully created git-source: '%s'", opts.GsName)
233+
log.G(ctx).Infof("Successfully created git-source: \"%s\"", opts.GsName)
234234

235235
return nil
236236
}
@@ -656,7 +656,7 @@ func RunGitSourceEdit(ctx context.Context, opts *GitSourceEditOptions) error {
656656
}
657657

658658
log.G(ctx).Info("Pushing updated GitSource to the installation repo")
659-
if err := apu.PushWithMessage(ctx, repo, fmt.Sprintf("Persisted an updated git-source '%s'", opts.GsName)); err != nil {
659+
if err := apu.PushWithMessage(ctx, repo, fmt.Sprintf("Persisted an updated git-source \"%s\"", opts.GsName)); err != nil {
660660
return fmt.Errorf("failed to persist the updated git-source: %s. Err: %w", opts.GsName, err)
661661
}
662662

cmd/commands/integrations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ func verifyOutputFormat(format string, allowedFormats ...string) error {
440440
func parseGitProvider(provider string) (model.GitProviders, error) {
441441
p, ok := gitProvidersByName[provider]
442442
if !ok {
443-
return model.GitProviders(""), fmt.Errorf("provider '%s' is not a valid provider name", provider)
443+
return model.GitProviders(""), fmt.Errorf("provider \"%s\" is not a valid provider name", provider)
444444
}
445445
return p, nil
446446
}

0 commit comments

Comments
 (0)