Skip to content

Commit

Permalink
chore: add label to ignore in webhook (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Kocjan authored Mar 14, 2022
1 parent 19d82bc commit 01ca92b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions deploy/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,16 @@ webhooks:
namespace: telegraf-operator
path: "/mutate-v1-pod"
caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZwRENDQTR5Z0F3SUJBZ0lVZHZzQTlwWGRxZ2xBWk9hem9LUVdNM1VwRlRFd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1ZERUxNQWtHQTFVRUJoTUNWVk14Q3pBSkJnTlZCQWdNQWtOQk1SWXdGQVlEVlFRSERBMVRZVzRnUm5KaApibU5wYzJOdk1STXdFUVlEVlFRS0RBcEpibVpzZFhoRVlYUmhNUXN3Q1FZRFZRUUxEQUpKVkRBZUZ3MHlNVEV4Ck1EVXhOVEF6TkROYUZ3MHpNVEV4TURNeE5UQXpORE5hTUZReEN6QUpCZ05WQkFZVEFsVlRNUXN3Q1FZRFZRUUkKREFKRFFURVdNQlFHQTFVRUJ3d05VMkZ1SUVaeVlXNWphWE5qYnpFVE1CRUdBMVVFQ2d3S1NXNW1iSFY0UkdGMApZVEVMTUFrR0ExVUVDd3dDU1ZRd2dnSWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUURiCitiL1pNNWpJL1hoejdQckk4MGk3VnhpOGtXdElzREF5QnBvOTFYdzJ4V2pEYW9QTG1Gd2lmaXo4OGdWNVB2Q20KVUhkd3FtR3R3ek1lMHlHUndJcUErbTFYRUI4UEhvUHpLMU5qZmgrRHkzRThxTFhxdWpyOFdORElLZjVBT1JZWAp4UEZuMExqSUFNQUtTcDFXSkFyaTdNS09YU0tOSTVSRFIwMDIrTkg1WStsa1dJU3BHMEVGUU9zeWM1UTZm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VwZ0VGaHRVeFdmMTlMSFp4c3NOcHU1Mk5PSzJEc2s2L0t0ZmZNMUN6aGhGUzVMVTJkQVA4bmt6czNwWTcKS0VmaFFkRHcxVlZuYkxlRzVOdGtDY2hsRG9HUTlobmkwT29zK296Y0oybFR1b1F0bm9xdXZ5YjQzdTUyRnl6aApUS2lWcFpyd0VuN2ZLdUZFdmExTVhIUS9aSXNjNXJ0bFpqeXBMY2o0RS95aHM5M3dsZVdCVnY4cmNoUTdzd3duCjZNaWQwY3lJTGR2bThCQm1nYUtvdmFqc2g2dWNubGkrWGxsTFYyWDNEaUg5aFBmd1phS2FIT0ptYldWenhsa2IKNXNvamFqYXVqMWxXeXEwRjZoZVIvb2RlekJEV2xKTnlBTW9rY3FTUXhGbERnR0RldDd1dktiVVlXYkkzQ2NjQgpYY2YrZSt5a1FRaEg4YStoakw5QVFiN2hBVVBwN3NmY2FVQW4xSWcwQzFaOWxmZ21GTXRMMmY1UDgyYWhVUGkvCnhOalUrZ2RSUmcwdjJFbGRjTlZKUXA1RzluSllEdjBncGdkbHZCUDB3SU9vSXB4Y0cwSTJrcU8wVkxsWVpkVXQKOFlaWXJYL1d4THJpbDhNVng0YkZURFd6bWt6Lzh0S0dNcFBueU5qVXNLaWR1amdpdFhOeTRaWEpLK3NaWFdLUwpDYmJRZXI5aTVVa0tSK0VZOUhkY3lCbCtHdGFHNGhvMEVVMTg2VkNkWmlBQW5mZ0FldW15UHhVMWNSYlBXVjFCCkpqNi9scWdMdVZVPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
objectSelector:
matchExpressions:
- key: "telegraf.influxdata.com/ignore"
operator: DoesNotExist
rules:
- operations: ["CREATE", "DELETE"]
apiGroups: ["*"]
apiVersions: ["*"]
apiGroups: [""]
apiVersions: ["v1"]
resources: ["pods"]
failurePolicy: Ignore
failurePolicy: Fail
reinvocationPolicy: IfNeeded
---
apiVersion: apps/v1
Expand All @@ -88,6 +92,7 @@ spec:
metadata:
labels:
app: telegraf-operator
telegraf.influxdata.com/ignore: "true"
spec:
serviceAccountName: telegraf-operator
containers:
Expand Down

0 comments on commit 01ca92b

Please sign in to comment.