-
Notifications
You must be signed in to change notification settings - Fork 140
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
Mount telemetryService.TlsRefName secret to OtelC POD #4412
base: main
Are you sure you want to change the base?
Conversation
e20e9b2
to
91eb61e
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #4412 +/- ##
==========================================
+ Coverage 64.37% 64.43% +0.05%
==========================================
Files 402 402
Lines 26562 26602 +40
==========================================
+ Hits 17100 17141 +41
+ Misses 8151 8148 -3
- Partials 1311 1313 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
91eb61e
to
f38b4b0
Compare
f38b4b0
to
a64df72
Compare
RawTag = "raw" | ||
InternalFlagPrefix = "internal.operator.dynatrace.com/" | ||
AnnotationSecretHash = InternalFlagPrefix + "secret-hash" | ||
AnnotationTelemetryServiceSecretHash = InternalFlagPrefix + "ts-secret-hash" |
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.
AnnotationTelemetryServiceSecretHash = InternalFlagPrefix + "ts-secret-hash" | |
AnnotationTelemetryServiceSecretHash = InternalFlagPrefix + "telemetry-service-secret-hash" |
@@ -127,24 +127,42 @@ func (r *Reconciler) buildTemplateAnnotations(ctx context.Context) (map[string]s | |||
templateAnnotations = r.dk.Spec.Templates.OpenTelemetryCollector.Annotations | |||
} | |||
|
|||
tlsSecretHash, err := r.calculateSecretHash(ctx, r.dk.ExtensionsTLSSecretName()) |
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.
Should this be also conditional, only if extension are enabled?
LatestTag = "latest" | ||
RawTag = "raw" | ||
InternalFlagPrefix = "internal.operator.dynatrace.com/" | ||
AnnotationSecretHash = InternalFlagPrefix + "secret-hash" |
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.
AnnotationSecretHash = InternalFlagPrefix + "secret-hash" | |
AnnotationExtensionsSecretHash = InternalFlagPrefix + "extensions-secret-hash" |
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.
+1 to this, as it is only used for extensions
maybe the location of the const
is not the best(veeery general location)
JIRA
Description
Mounts TLS secret to OtelC POD.
extensions-collector
POD is restarted if the secret is changed (addedts-secret-hash
template annotation).How can this be tested?
create secret
deploy dynakube
check
dynakube-extensions-collector-0
spec.volumes