Skip to content

Commit af8dc01

Browse files
Revert "Revert "skip agent restart if pod doesn't exist (#324)" (#325)" (#326)
This reverts commit 9eae4c5.
1 parent 9eae4c5 commit af8dc01

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.deploy/cf-runtime/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: cf-runtime
33
description: A Helm chart for Codefresh Runner
44
type: application
5-
version: 1.9.5
6-
appVersion: "1.9.5"
5+
version: 1.9.6
6+
appVersion: "1.9.6"

.deploy/cf-runtime/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dockerRegistry: "quay.io" # Registry prefix for the runtime images (default quay
2424
newRelicLicense: "" # NEWRELIC_LICENSE_KEY (for app-proxy and runner deployments)
2525

2626
runner: # Runner Deployment
27-
image: "codefresh/venona:1.9.2"
27+
image: "codefresh/venona:1.9.6"
2828
env: {}
2929
## e.g:
3030
# env:

venona/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.5
1+
1.9.6

venonactl/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.5
1+
1.9.6

venonactl/pkg/plugins/runtime-attach.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ func (u *runtimeAttachPlugin) Install(ctx context.Context, opt *InstallOptions,
236236
u.logger.Error(fmt.Sprintf("Cannot find agent pod: %v ", err))
237237
return nil, err
238238
}
239+
if (len(list.Items) == 0) {
240+
u.logger.Debug("Agent pod not created yet. skipping restart...")
241+
return v, nil
242+
}
239243
podName := list.Items[0].ObjectMeta.Name
240244
err = cs.CoreV1().Pods(opt.ClusterNamespace).Delete(ctx, podName, metav1.DeleteOptions{})
241245
if err != nil {

0 commit comments

Comments
 (0)