add webhooks to the rollout plan and use AC as App snapshot (#1031)

* add webhooks

* app controller change

* add component revision and appconfig revision and test

* solidify the component revision logic and fix component revisoin bugs

* fix command cli e2e failure

* fix the bug caused by rawExtention

* fix UT test

* retry on component not found

* lint

* revert component revision create order
This commit is contained in:
Ryan Zhang
2021-02-19 12:11:26 -08:00
committed by GitHub
parent 9f38b02b1c
commit d3511415c2
49 changed files with 1926 additions and 484 deletions

View File

@@ -166,7 +166,8 @@ var _ = Describe("Versioning mechanism of components", func() {
revisionNameV1 := cmpV1.Status.LatestRevision.Name
By("Get corresponding ControllerRevision of Component v1")
cr := &appsv1.ControllerRevision{}
Expect(k8sClient.Get(ctx, client.ObjectKey{Namespace: namespace, Name: revisionNameV1}, cr)).Should(Succeed())
Expect(k8sClient.Get(ctx,
client.ObjectKey{Namespace: namespace, Name: revisionNameV1}, cr)).ShouldNot(HaveOccurred())
By("Check revision seq number")
Expect(cr.Revision).Should(Equal(int64(1)))