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

Duplicate Project keys being recreated #1

Closed
mikebryant opened this issue Dec 7, 2020 · 0 comments · Fixed by #2
Closed

Duplicate Project keys being recreated #1

mikebryant opened this issue Dec 7, 2020 · 0 comments · Fixed by #2

Comments

@mikebryant
Copy link
Contributor

Describe the bug

I create 2 project keys, for different projects. In sentry, one project has the key as expected, but the other project has 2 keys - it's created it twice for some reason.

Steps to reproduce

$ cat miketest.yaml 
---
apiVersion: sentry.kubernetes.jaceys.me/v1alpha1
kind: ProjectKey
metadata:
  name: mt1
spec:
  project: blockexplorer
  name: miketest
---
apiVersion: sentry.kubernetes.jaceys.me/v1alpha1
kind: ProjectKey
metadata:
  name: mt2
spec:
  project: plasma-challenger
  name: miketest2


$ k apply -f miketest.yaml 
projectkey.sentry.kubernetes.jaceys.me/mt1 created
projectkey.sentry.kubernetes.jaceys.me/mt2 created

Expected behavior

For each key to only be created once

Additional context

Using v0.1.0

Logs from the operator:

2020-12-07T19:58:12.363Z	INFO	controllers.ProjectKey	successfully created ProjectKey	{"projectkey": "sentry-operator-system/mt1"}
2020-12-07T19:58:12.363Z	DEBUG	controller-runtime.controller	Successfully Reconciled	{"controller": "projectkey", "request": "sentry-operator-system/mt1"}
2020-12-07T19:58:12.621Z	INFO	controllers.ProjectKey	successfully created ProjectKey	{"projectkey": "sentry-operator-system/mt2"}
2020-12-07T19:58:12.621Z	DEBUG	controller-runtime.controller	Successfully Reconciled	{"controller": "projectkey", "request": "sentry-operator-system/mt2"}
2020-12-07T19:58:13.344Z	INFO	controllers.ProjectKey	successfully updated ProjectKey	{"projectkey": "sentry-operator-system/mt1"}
2020-12-07T19:58:13.344Z	INFO	controllers.ProjectKey	successfully reconciled Secret for ProjectKey	{"projectkey": "sentry-operator-system/mt1"}
2020-12-07T19:58:13.345Z	DEBUG	controller-runtime.controller	Successfully Reconciled	{"controller": "projectkey", "request": "sentry-operator-system/mt1"}
2020-12-07T19:58:13.910Z	INFO	controllers.ProjectKey	successfully recreated ProjectKey	{"projectkey": "sentry-operator-system/mt2"}
2020-12-07T19:58:13.916Z	INFO	controllers.ProjectKey	successfully reconciled Secret for ProjectKey	{"projectkey": "sentry-operator-system/mt2"}
2020-12-07T19:58:13.916Z	DEBUG	controller-runtime.controller	Successfully Reconciled	{"controller": "projectkey", "request": "sentry-operator-system/mt2"}
^C
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.

1 participant