Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set deployment status to inactive on missing status #731

Merged
merged 9 commits into from
Sep 22, 2022
Merged

Conversation

int128
Copy link
Owner

@int128 int128 commented Sep 22, 2022

Problem to solve

When an actual resource has been deleted by the Application finalizer, the deployment is still success (Active).

How to solve

Application health status becomes Missing when the finalizer cleans up. It sets the deployment status to inactive (Destroyed).

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@int128 int128 changed the title Set deployment to inactive on terminating Set deployment to inactive on missing status Sep 22, 2022
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

diff

  • e2e_test/applications/argoproj.io_v1alpha1_application_app1.yaml
  • e2e_test/applications/argoproj.io_v1alpha1_application_app2.yaml
  • e2e_test/applications/argoproj.io_v1alpha1_application_app3.yaml

e2e_test/applications/argoproj.io_v1alpha1_application_app1.yaml

--- a/tmp/kustomize-action-YLcz5y/e2e_test/applications/argoproj.io_v1alpha1_application_app1.yaml
+++ b/tmp/kustomize-action-hIWSDB/e2e_test/applications/argoproj.io_v1alpha1_application_app1.yaml
@@ -1,6 +1,10 @@
 apiVersion: argoproj.io/v1alpha1
 kind: Application
 metadata:
+  finalizers:
+  - resources-finalizer.argocd.argoproj.io
+  labels:
+    int128.github.io/e2e-test: fixture
   name: app1
   namespace: argocd
 spec:

e2e_test/applications/argoproj.io_v1alpha1_application_app2.yaml

--- a/tmp/kustomize-action-YLcz5y/e2e_test/applications/argoproj.io_v1alpha1_application_app2.yaml
+++ b/tmp/kustomize-action-hIWSDB/e2e_test/applications/argoproj.io_v1alpha1_application_app2.yaml
@@ -1,6 +1,10 @@
 apiVersion: argoproj.io/v1alpha1
 kind: Application
 metadata:
+  finalizers:
+  - resources-finalizer.argocd.argoproj.io
+  labels:
+    int128.github.io/e2e-test: fixture
   name: app2
   namespace: argocd
 spec:

e2e_test/applications/argoproj.io_v1alpha1_application_app3.yaml

--- a/tmp/kustomize-action-YLcz5y/e2e_test/applications/argoproj.io_v1alpha1_application_app3.yaml
+++ b/tmp/kustomize-action-hIWSDB/e2e_test/applications/argoproj.io_v1alpha1_application_app3.yaml
@@ -1,6 +1,10 @@
 apiVersion: argoproj.io/v1alpha1
 kind: Application
 metadata:
+  finalizers:
+  - resources-finalizer.argocd.argoproj.io
+  labels:
+    int128.github.io/e2e-test: fixture
   name: app3
   namespace: argocd
 spec:

@int128 int128 marked this pull request as ready for review September 22, 2022 05:04
@int128 int128 changed the title Set deployment to inactive on missing status Set deployment status to inactive on missing status Sep 22, 2022
@int128 int128 merged commit 068af28 into master Sep 22, 2022
@int128 int128 deleted the set-inactive branch September 22, 2022 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant