From 8a8f6d03a3373573a367c811e37b78f19ae07977 Mon Sep 17 00:00:00 2001 From: Wantong Date: Tue, 7 Jan 2025 19:31:04 -0800 Subject: [PATCH] fix stagedUpdateRun examples to use v1beta1 (#1012) --- examples/stagedupdaterun/approvalRequest.yaml | 10 +++++----- examples/stagedupdaterun/clusterStagedUpdateRun.yaml | 4 ++-- examples/stagedupdaterun/example-crp.yaml | 2 +- examples/stagedupdaterun/updateStrategy.yaml | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/stagedupdaterun/approvalRequest.yaml b/examples/stagedupdaterun/approvalRequest.yaml index ea25b959b..5bc22e184 100644 --- a/examples/stagedupdaterun/approvalRequest.yaml +++ b/examples/stagedupdaterun/approvalRequest.yaml @@ -1,15 +1,15 @@ -apiVersion: placement.kubernetes-fleet.io/v1alpha1 +apiVersion: placement.kubernetes-fleet.io/v1beta1 kind: ClusterApprovalRequest metadata: name: example-approvalrequest labels: - TargetUpdateRun: example-clusterstagedupdaterun - TargetStage: stage1 - IsLatestUpdateRunApproval: "true" + kubernetes-fleet.io/targetupdaterun: example-run + kubernetes-fleet.io/targetUpdatingStage: canary + kubernetes-fleet.io/isLatestUpdateRunApproval: "true" spec: parentStageRollout: example-run targetStage: canary status: conditions: - type: Approved - status: "True" \ No newline at end of file + status: "True" diff --git a/examples/stagedupdaterun/clusterStagedUpdateRun.yaml b/examples/stagedupdaterun/clusterStagedUpdateRun.yaml index 3e96a1280..a3ad1c0a1 100644 --- a/examples/stagedupdaterun/clusterStagedUpdateRun.yaml +++ b/examples/stagedupdaterun/clusterStagedUpdateRun.yaml @@ -1,4 +1,4 @@ -apiVersion: placement.kubernetes-fleet.io/v1alpha1 +apiVersion: placement.kubernetes-fleet.io/v1beta1 kind: ClusterStagedUpdateRun metadata: name: example-run @@ -39,4 +39,4 @@ status: - type: Progressing status: "True" - type: Succeeded - status: "False" \ No newline at end of file + status: "False" diff --git a/examples/stagedupdaterun/example-crp.yaml b/examples/stagedupdaterun/example-crp.yaml index aff076417..c38dd6e33 100644 --- a/examples/stagedupdaterun/example-crp.yaml +++ b/examples/stagedupdaterun/example-crp.yaml @@ -14,4 +14,4 @@ spec: - key: gpu-workload operator: Exists strategy: - type: External \ No newline at end of file + type: External diff --git a/examples/stagedupdaterun/updateStrategy.yaml b/examples/stagedupdaterun/updateStrategy.yaml index 452ec5190..9c34c96d1 100644 --- a/examples/stagedupdaterun/updateStrategy.yaml +++ b/examples/stagedupdaterun/updateStrategy.yaml @@ -1,4 +1,4 @@ -apiVersion: placement.kubernetes-fleet.io/v1alpha1 +apiVersion: placement.kubernetes-fleet.io/v1beta1 kind: ClusterStagedUpdateStrategy metadata: name: example-strategy @@ -26,4 +26,4 @@ spec: afterStageTasks: - type: Approval - type: TimedWait - waitTime: 1h \ No newline at end of file + waitTime: 1h