Skip to content

Commit

Permalink
Merge pull request #25 from huhouhua/dev
Browse files Browse the repository at this point in the history
fix k8s resource patch for test
  • Loading branch information
huhouhua authored Oct 24, 2023
2 parents 1202e79 + 20ca220 commit 359bbab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ArgoCD.Client.Test/Utilities/ArgoCDKubernetesFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private async Task ApplyForKubernetesAsync( IKubernetesObject<V1ObjectMeta> obje
else
{
var oldStatefulSet = statefulSetList.Items.First();
_ = await kubernetes.AppsV1.PatchNamespacedStatefulSetAsync(new V1Patch(CreatePathData(newStatefulSet, newStatefulSet), V1Patch.PatchType.JsonPatch), oldStatefulSet.Name(), oldStatefulSet.Namespace());
_ = await kubernetes.AppsV1.PatchNamespacedStatefulSetAsync(new V1Patch(CreatePathData(newStatefulSet,oldStatefulSet), V1Patch.PatchType.JsonPatch), oldStatefulSet.Name(), oldStatefulSet.Namespace());
}
break;
case V1NetworkPolicy.KubeKind:
Expand All @@ -300,7 +300,7 @@ private async Task ApplyForKubernetesAsync( IKubernetesObject<V1ObjectMeta> obje
else
{
var oldNetworkPolicy = networkPolicyList.Items.First();
_ = await kubernetes.NetworkingV1.PatchNamespacedNetworkPolicyAsync(new V1Patch(CreatePathData(newNetworkPolicy, newNetworkPolicy), V1Patch.PatchType.JsonPatch), oldNetworkPolicy.Name(), oldNetworkPolicy.Namespace());
_ = await kubernetes.NetworkingV1.PatchNamespacedNetworkPolicyAsync(new V1Patch(CreatePathData(newNetworkPolicy, oldNetworkPolicy), V1Patch.PatchType.JsonPatch), oldNetworkPolicy.Name(), oldNetworkPolicy.Namespace());
}
break;
default:
Expand Down

0 comments on commit 359bbab

Please sign in to comment.