-
Notifications
You must be signed in to change notification settings - Fork 205
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
fix: 869, support for non default namespace for adot #873
Conversation
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. @shapirov103 Can you review and run e2e. This is for a issue reported.
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.
Looks great, one minor comment.
lib/addons/adot/index.ts
Outdated
@@ -25,22 +27,37 @@ const defaultProps = { | |||
@supportsALL | |||
export class AdotCollectorAddOn extends CoreAddOn { | |||
|
|||
private namespace: string; |
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.
we try to avoid member variable other than the props, since blueprints can be cloned an reused.
You can drop line 39 and just use in the deploy method this.coreAddOnProps.namespace
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.
Updated the code, was able to test successfully as well
k get all -n adot [10/11/23| 8:47AM]
NAME READY STATUS RESTARTS AGE
pod/otel-collector-amp-collector-748d886bdd-kp6bp 1/1 Running 0 11h
pod/otel-collector-xray-collector-c76d86886-gxmq4 1/1 Running 0 11h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/otel-collector-amp-collector-monitoring ClusterIP 172.20.126.84 <none> 8888/TCP 11h
service/otel-collector-xray-collector ClusterIP 172.20.205.87 <none> 4317/TCP,4318/TCP 11h
service/otel-collector-xray-collector-headless ClusterIP None <none> 4317/TCP,4318/TCP 11h
service/otel-collector-xray-collector-monitoring ClusterIP 172.20.96.232 <none> 8888/TCP 11h
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/otel-collector-amp-collector 1/1 1 1 11h
deployment.apps/otel-collector-xray-collector 1/1 1 1 11h
NAME DESIRED CURRENT READY AGE
replicaset.apps/otel-collector-amp-collector-748d886bdd 1 1 1 11h
replicaset.apps/otel-collector-xray-collector-c76d86886 1 1 1 11h
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. @shapirov103 Please review and run e2e.
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.
Pending e2e
/do-e2e-tests |
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.
end to end tests passed
Issue #: #869
Description of changes:
Adds support for non-default namespace for ADOT deployment.
Tests:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.