Skip to content

Commit b9746bf

Browse files
authored
fix(ci): docker/metadata-action (#5)
1 parent f32f5da commit b9746bf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: docker/metadata-action@v4
4343
with:
4444
images: tensorfusion/tensor-fusion-operator
45-
tags: type=semver,pattern=${{needs.release.outputs.version}}
45+
tags: type=semver,pattern={{version}},value=${{needs.release.outputs.version}}
4646
- name: Login to DockerHub
4747
uses: docker/login-action@v2
4848
with:

internal/controller/tensorfusionconnection_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (r *TensorFusionConnectionReconciler) Reconcile(ctx context.Context, req ct
128128
}
129129
// TODO: Handle PodFailure
130130

131-
if err := r.MustUpdateStatus(ctx, connection, gpu); err != nil {
131+
if err := r.mustUpdateStatus(ctx, connection, gpu); err != nil {
132132
return ctrl.Result{}, err
133133
}
134134

@@ -180,7 +180,7 @@ func (r *TensorFusionConnectionReconciler) handleDeletion(ctx context.Context, c
180180
return err
181181
}
182182

183-
return r.MustUpdateStatus(ctx, connection, gpu)
183+
return r.mustUpdateStatus(ctx, connection, gpu)
184184
}
185185

186186
// Helper functions to handle finalizers
@@ -203,7 +203,7 @@ func removeString(slice []string, s string) []string {
203203
return result
204204
}
205205

206-
func (r *TensorFusionConnectionReconciler) MustUpdateStatus(ctx context.Context, connection *tfv1.TensorFusionConnection, gpu *tfv1.GPU) error {
206+
func (r *TensorFusionConnectionReconciler) mustUpdateStatus(ctx context.Context, connection *tfv1.TensorFusionConnection, gpu *tfv1.GPU) error {
207207
return retry.RetryOnConflict(retry.DefaultBackoff, func() error {
208208
// Get the latest version of the connection
209209
latestConnection := &tfv1.TensorFusionConnection{}

0 commit comments

Comments
 (0)