Skip to content

Commit

Permalink
fix indentation in YAML codeblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyzanchi committed Oct 31, 2024
1 parent 833e94d commit 72d751b
Showing 1 changed file with 53 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,73 +317,73 @@ When you install it, a <InlinePopover type="licenseKey"/> is created and it's th
title="Python agent: Pods with a specific label and value and overriding app name"
>

```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-python
namespace: newrelic
spec:
agent:
language: python
image: newrelic/newrelic-python-init:latest
env:
- name: NEW_RELIC_APP_NAME
valueFrom:
fieldRef:
fieldPath: metadata.labels['app']
podLabelSelector:
matchExpressions:
- key: "app"
operator: "In"
values: ["flask-hello-world","flask-hello-world-v2"]
```
```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-python
namespace: newrelic
spec:
agent:
language: python
image: newrelic/newrelic-python-init:latest
env:
- name: NEW_RELIC_APP_NAME
valueFrom:
fieldRef:
fieldPath: metadata.labels['app']
podLabelSelector:
matchExpressions:
- key: "app"
operator: "In"
values: ["flask-hello-world","flask-hello-world-v2"]
```
</Collapser>

<Collapser
id="label-selector-java"
title="Java agent: Pods of a specific namespace"
>

```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-java
namespace: newrelic
spec:
agent:
language: java
image: newrelic/newrelic-java-init:latest
namespaceLabelSelector:
matchExpressions:
- key: "kubernetes.io/metadata.name"
operator: "In"
values: ["java"]
```
```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-java
namespace: newrelic
spec:
agent:
language: java
image: newrelic/newrelic-java-init:latest
namespaceLabelSelector:
matchExpressions:
- key: "kubernetes.io/metadata.name"
operator: "In"
values: ["java"]
```
</Collapser>

<Collapser
id="label-selector-ruby"
title="Ruby agent: Any namespace containing the Ruby label and sending data to a different account"
>

```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-ruby
namespace: newrelic
spec:
agent:
language: java
image: newrelic/newrelic-ruby-init:latest
namespaceLabelSelector:
matchExpressions:
- key: "Ruby"
operator: "Exists"
licenseKeySecret: the-name-of-the-custom-secret
```
```yaml
apiVersion: newrelic.com/v1alpha2
kind: Instrumentation
metadata:
name: newrelic-instrumentation-ruby
namespace: newrelic
spec:
agent:
language: java
image: newrelic/newrelic-ruby-init:latest
namespaceLabelSelector:
matchExpressions:
- key: "Ruby"
operator: "Exists"
licenseKeySecret: the-name-of-the-custom-secret
```
</Collapser>
</CollapserGroup>

Expand Down

0 comments on commit 72d751b

Please sign in to comment.