-
Notifications
You must be signed in to change notification settings - Fork 345
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
Changed Operator to set ownership of the instances it manages #571
Changed Operator to set ownership of the instances it manages #571
Conversation
I tested this by deploying the same code in two namespaces (one via Operator $ make run
INFO[0000] Versions arch=amd64 identity=default.jaeger-operator jaeger=1.13.1 jaeger-operator=v1.13.1-37-g5190c6c4 operator-sdk=v0.8.1 os=linux version=go1.12.5
...
INFO[0067] Storage type not provided. Falling back to 'memory' instance=simplest namespace=default Operator $ kubectl logs -n observability jaeger-operator-67f8c7b5ff-tj9x6 -f
time="2019-07-30T16:16:22Z" level=info msg=Versions arch=amd64 identity=observability.jaeger-operator jaeger=1.13.1 jaeger-operator=v1.13.1-37-g5190c6c4 operator-sdk=v0.8.1 os=linux version=go1.12.5
...
time="2019-07-30T16:18:21Z" level=error msg="failed to set this operator's instance as the manager of the instance" error="Operation cannot be fulfilled on jaegers.jaegertracing.io \"simplest\": the object has been modified; please apply your changes to the latest version and try again" execution="2019-07-30 16:18:21.313172318 +0000 UTC" instance=simplest namespace=default operator-identity=observability.jaeger-operator And this is the resulting CR after it has been stored by one of the operators: apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"jaegertracing.io/v1","kind":"Jaeger","metadata":{"annotations":{},"name":"simplest","namespace":"default"}}
creationTimestamp: 2019-07-30T16:18:21Z
finalizers:
- finalizer.jaegertracing.io
generation: 3
labels:
app.kubernetes.io/managed-by: default.jaeger-operator
name: simplest
namespace: default
resourceVersion: "5173"
selfLink: /apis/jaegertracing.io/v1/namespaces/default/jaegers/simplest
uid: f81bfb19-33cf-4703-b3f4-778eb47edb39
spec:
agent:
options: {}
resources: {}
allInOne:
options: {}
resources: {}
collector:
options: {}
resources: {}
ingester:
options: {}
resources: {}
ingress:
openshift: {}
resources: {}
security: none
query:
options: {}
resources: {}
resources: {}
sampling:
options: {}
storage:
cassandraCreateSchema: {}
dependencies:
image: jaegertracing/spark-dependencies
schedule: 55 23 * * *
elasticsearch:
nodeCount: 1
redundancyPolicy: ZeroRedundancy
resources: {}
storage: {}
esIndexCleaner:
image: jaegertracing/jaeger-es-index-cleaner
numberOfDays: 7
schedule: 55 23 * * *
esRollover:
image: jaegertracing/jaeger-es-rollover
schedule: '*/30 * * * *'
options: {}
type: memory
strategy: allInOne
ui:
options: {}
status:
version: 1.13.1 |
@jpkrohling Will take a closer look tomorrow, but noticed the |
Codecov Report
@@ Coverage Diff @@
## master #571 +/- ##
==========================================
- Coverage 91.56% 91.25% -0.31%
==========================================
Files 73 73
Lines 3615 3648 +33
==========================================
+ Hits 3310 3329 +19
- Misses 213 227 +14
Partials 92 92
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #571 +/- ##
==========================================
- Coverage 91.56% 91.25% -0.31%
==========================================
Files 73 73
Lines 3615 3647 +32
==========================================
+ Hits 3310 3328 +18
- Misses 213 227 +14
Partials 92 92
Continue to review full report at Codecov.
|
CSV and the test's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - just one minor change.
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
ba2b2a4
to
984c0d2
Compare
PR updated and squashed. |
Fixes #567 by setting a
managed-by
value with thenamespace.name
of the operator that manages the instance.Signed-off-by: Juraci Paixão Kröhling juraci@kroehling.de