Skip to content

Support Name and Property on licenseKeySecret #203

@pragmaticivan

Description

@pragmaticivan

Summary

Given a namespace have a secret newrelic-credentials I want to be able to use this secret but pull the ingestion key from the property ingest-key inside the secret.

This is useful for multi-tenant environments where each namespace has a set of Secrets they can use provided by a platform engineering team.

Desired Behavior

apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
  labels:
    app.kubernetes.io/name: newrelic-instrumentation-nodejs
  name: newrelic-instrumentation-nodejs
spec:
  agent:
    language: nodejs
    image: newrelic/newrelic-node-init:12
  podLabelSelector:
    matchExpressions:
    - key: app.newrelic.instrumentation
      operator: In
      values: [nodejs]
  licenseKeySecret: 
     name: newrelic-creds
     key: ingest-key

Possible Solution

Support name and key in the CRD, but make key optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions