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

Deleting a deployment #638

Closed
lueenavarro opened this issue May 5, 2020 · 1 comment · Fixed by #1041
Closed

Deleting a deployment #638

lueenavarro opened this issue May 5, 2020 · 1 comment · Fixed by #1041

Comments

@lueenavarro
Copy link

lueenavarro commented May 5, 2020

So i was a able to create a deployment using argo-events, but I could not find any example on how to delete a deployment and if it is even possible. Do you have examples? I believe I just have to add a few lines on the yaml config below but I do not know what to add.

Lets say what if I want to delete example-deployment in the default namespace

apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
  name: webhook-sensor-http
spec:
  template:
    spec:
      containers:
        - name: sensor
          image: argoproj/sensor:v0.13.0
          imagePullPolicy: Always
      serviceAccountName: argo-events-sa
  dependencies:
    - name: test-dep
      gatewayName: webhook-gateway
      eventName: example
  subscription:
    http:
      port: 9300
  triggers:
    - template:
        name: webhook-deployment-trigger
        k8s:
          group: apps
          version: v1
          resource: deployments
          operation: delete
@lueenavarro lueenavarro changed the title Deleting a deployment? Deleting a deployment May 5, 2020
@VaibhavPage
Copy link
Contributor

delete operation is currently not supported.

whynowy pushed a commit that referenced this issue Jan 29, 2021
* feat: implement delete function for k8s objects

This implements `delete` functionality for the standard-k8s trigger.

resolves #1040
fixes #638

Signed-off-by: tinkerborg <[email protected]>
juliev0 pushed a commit to juliev0/argo-events that referenced this issue Mar 29, 2022
* feat: implement delete function for k8s objects

This implements `delete` functionality for the standard-k8s trigger.

resolves argoproj#1040
fixes argoproj#638

Signed-off-by: tinkerborg <[email protected]>
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 a pull request may close this issue.

3 participants