Skip to content

Commit

Permalink
change viewer write key env var name to fix telemetry.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Valdron <[email protected]>
  • Loading branch information
michael-valdron committed Feb 17, 2023
1 parent 3fabf1b commit 5a38f1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/registry/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ http:
path: /metrics`

viewerEnvfile := fmt.Sprintf(`
ANALYTICS_WRITE_KEY=%s
NEXT_PUBLIC_ANALYTICS_WRITE_KEY=%s
DEVFILE_REGISTRIES=[{"name":"Community","url":"http://localhost:8080","fqdn":"%s"}]`,
cr.Spec.Telemetry.RegistryViewerWriteKey, cr.Status.URL)

Expand Down
2 changes: 1 addition & 1 deletion pkg/registry/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func GenerateDeployment(cr *registryv1alpha1.DevfileRegistry, scheme *runtime.Sc
},
Env: []corev1.EnvVar{
{
Name: "ANALYTICS_WRITE_KEY",
Name: "NEXT_PUBLIC_ANALYTICS_WRITE_KEY",
Value: cr.Spec.Telemetry.RegistryViewerWriteKey,
},
{
Expand Down

0 comments on commit 5a38f1c

Please sign in to comment.