Skip to content

Commit 32b9348

Browse files
jmagakGitHub Actionsclaude
authored
Update additional capabilities title structure (#2081) (#2095)
* Rename additional-rhdh-capabilities.adoc to ref-rhdh-capabilities.adoc and add REFERENCE content type metadata This change applies the same CQA compliance fixes from PR 2080: - Rename additional-rhdh-capabilities.adoc to ref-rhdh-capabilities.adoc - Add :_mod-docs-content-type: REFERENCE metadata - Update master.adoc to reference the renamed file * Apply CQA compliance fixes to ref-rhdh-capabilities.adoc Apply the same CQA fixes as in PR 2080: - Change block titles to plain text with colons (.Overview → Overview:) - Replace "Backstage" with {backstage} attribute throughout - Fix Example section formatting These changes ensure CQA compliance for DITA conversion. * Fix additional CQA violations in ref-rhdh-capabilities.adoc - Replace "Technology Preview" with {technology-preview} attribute - Replace "Developer Preview" with {developer-preview} attribute - Replace "The Backstage entity reference" with "The {backstage} entity reference" * Apply new updates * Update titles * Fix CQA violations in additional capabilities title - Rename directory to titles/additional_title-additional-rhdh-capabilities (CQA-00b compliance) - Add [role="_abstract"] marker to ref-rhdh-capabilities.adoc (CQA-09) - Add [id="{context}"] to master.adoc (CQA-02) - Auto-fix nested section levels and conditional code (CQA-01) * Remove self-referential language from abstract Replace "This document includes" with "Includes" to comply with CQA-08. * Apply CQA suggestion * Trigger preview rebuild Empty commit to re-trigger the PR preview build workflow. * Fix PR preview deployment to use correct event context Changed all instances of `github.event.number` to `github.event.pull_request.number` in the PR workflow. For pull_request_target events, `github.event.number` may be undefined, causing the build script to default to branch "main" instead of "pr-{number}", resulting in preview deployments going to the wrong directory. This fixes the issue where PR previews were being deployed to `main/` instead of `pr-{number}/`, making preview URLs return 404. * Revert "Fix PR preview deployment to use correct event context" This reverts commit 1863b4a. * Minor fix * Update sections --------- Co-authored-by: GitHub Actions <github-actions@github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 7b1b900 commit 32b9348

2 files changed

Lines changed: 31 additions & 35 deletions

File tree

titles/additional_title-additional-rhdh-capabilities/additional-capabilities/additional-rhdh-capabilities.adoc renamed to titles/additional_title-additional-rhdh-capabilities/additional-capabilities/ref-rhdh-capabilities.adoc

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1+
:_mod-docs-content-type: REFERENCE
12
[id='additional-rhdh-capabilities_{context}']
23

3-
*DISCLAIMER:* This document includes early, evolving, or supplemental content related to {product-very-short} capabilities. It may cover newly introduced features, features that are still maturing, or supported functionality that is not yet fully documented in the official product documentation. This content is authored by {company-name} experts, but has not yet been tested on every supported configuration.
4+
[role="_abstract"]
5+
*DISCLAIMER:* This is an early, evolving, or supplemental content related to {product} capabilities. Content may cover newly introduced features, features that are still maturing, or supported functionality that is not yet fully documented in the official product documentation.
46

5-
The content in this document describes preview or early-stage capabilities that are provided to offer early guidance and improve discoverability while the documentation continues to evolve. As a result, the structure, depth, and level of detail might vary. Information may be updated, reorganized, or removed based on product changes and user feedback.
6-
7-
Where applicable, individual features retain their respective support status (for example, Supported, Technology Preview, or Developer Preview). Refer to the feature-specific documentation for details about the link:https://access.redhat.com/support[support] scope.
8-
9-
include::../artifacts/snip-technology-preview.adoc[]
10-
11-
include::../artifacts/snip-developer-preview.adoc[]
7+
Content is authored by {company-name} experts, but has not yet been tested on every supported configuration. Preview or early-stage capabilities are provided to offer early guidance and improve discoverability while the documentation continues to evolve. As a result, the structure, depth, and level of detail might vary. Information may be updated, reorganized, or removed based on product changes and user feedback. Individual features retain their respective support status as documented. Refer to the feature-specific documentation for details about the link:https://access.redhat.com/support[support] scope.
128

139
== Integrate Argo CD notifications with {product}
1410

@@ -24,9 +20,10 @@ This guide explains how to configure Argo CD to send notifications directly to t
2420
_This task is intended for Platform Engineers; it involves cluster-wide runtime changes_.
2521
====
2622

27-
.Overview
23+
Overview:
2824

2925
The following diagram illustrates the flow from an Argo CD event in the cluster to the {product-very-short} user interface.
26+
[subs="+attributes,+quotes"]
3027
----
3128
┌────────────────────────────────────────────────────────────────────┐
3229
│ Kubernetes / OpenShift Cluster │
@@ -42,14 +39,14 @@ The following diagram illustrates the flow from an Argo CD event in the cluster
4239
│ (with auth token)
4340
4441
┌────────────────────────────────────────────┐
45-
Backstage
42+
{backstage}
4643
│ Endpoint: /api/notifications/notifications│
4744
│ ──────────────────────────────────────────│
4845
│ Shows notifications to users in the UI │
4946
└────────────────────────────────────────────┘
5047
----
5148

52-
.Prerequisites
49+
Prerequisites:
5350

5451
Before you begin, make sure you have the following:
5552

@@ -59,7 +56,7 @@ Before you begin, make sure you have the following:
5956

6057
---
6158

62-
.Part 1: Enable the notifications plugin in {product-very-short}
59+
Part 1: Enable the notifications plugin in {product-very-short}:
6360

6461
*Environment*: {product-very-short} Configuration.
6562

@@ -99,7 +96,7 @@ backend:
9996

10097
---
10198

102-
.Part 2: Argo CD configuration
99+
Part 2: Argo CD configuration:
103100

104101
*Environment*: OpenShift Cluster (executing `oc` commands).
105102

@@ -414,7 +411,7 @@ kubectl apply -f argocd-notifications-cm.yaml
414411

415412
---
416413

417-
.Part 3: Enable notifications for your application
414+
Part 3: Enable notifications for your application:
418415

419416
*Environment*: OpenShift Cluster (Argo CD Application manifests).
420417

@@ -424,23 +421,23 @@ Update individual Argo CD `Application` manifests to enable the notifications fo
424421

425422
Each Argo CD Application that should send notifications needs two things:
426423

427-
1. **The Backstage entity reference** - tells Argo CD which {backstage} entity should receive notifications.
424+
1. **The {backstage} entity reference** - tells Argo CD which {backstage} entity should receive notifications.
428425
2. **Trigger subscriptions** - tells Argo CD which events to notify about.
429426

430427
[IMPORTANT]
431428
====
432429
The subscription annotation format is `notifications.argoproj.io/subscribe.<trigger-name>.<service>`. The trigger name must match exactly what you configured (with the `-backstage` suffix).
433430
====
434431

435-
[source,yaml]
432+
[source,yaml,subs="+attributes,+quotes"]
436433
----
437434
apiVersion: argoproj.io/v1alpha1
438435
kind: Application
439436
metadata:
440437
name: my-application
441438
namespace: openshift-gitops
442439
annotations:
443-
# 1. Map to Backstage entity (REQUIRED)
440+
# 1. Map to {backstage} entity (REQUIRED)
444441
backstage.io/entity-ref: 'component:default/my-application'
445442
446443
# 2. Subscribe to notification triggers (add the ones you want)
@@ -454,7 +451,7 @@ spec:
454451

455452
---
456453

457-
.Example: Complete Setup Flow
454+
Example: Complete Setup Flow:
458455
**Scenario**
459456

460457
You have a service called `order-service` managed by Argo CD, and you want the team to receive {backstage} notifications on sync events.
@@ -479,7 +476,7 @@ spec:
479476

480477
. *Argo CD Application*
481478
+
482-
[source,yaml]
479+
[source,yaml,subs="+attributes,+quotes"]
483480
----
484481
# argocd/order-service-app.yaml
485482
apiVersion: argoproj.io/v1alpha1
@@ -488,7 +485,7 @@ metadata:
488485
name: order-service
489486
namespace: openshift-gitops
490487
annotations:
491-
# Link to Backstage entity
488+
# Link to {backstage} entity
492489
backstage.io/entity-ref: 'component:default/order-service'
493490
# Subscribe to notifications (note the -backstage suffix in trigger names)
494491
notifications.argoproj.io/subscribe.on-deployed-backstage.backstage: ''
@@ -513,14 +510,14 @@ spec:
513510

514511
1. **Developer pushes code** → Argo CD detects change and syncs.
515512
2. **Sync succeeds** → Argo CD notifications controller fires `on-deployed-backstage` trigger.
516-
3. **Webhook sent** → POST to Backstage `/api/notifications/notifications`.
517-
4. **Notification appears** → Team sees "🚀 order-service - Deployed" in Backstage with a link to Argo CD.
513+
3. **Webhook sent** → POST to {backstage} `/api/notifications/notifications`.
514+
4. **Notification appears** → Team sees "🚀 order-service - Deployed" in {backstage} with a link to Argo CD.
518515

519516
---
520517

521518
=== Troubleshooting
522519

523-
=== Notifications not appearing in {product-very-short}
520+
*Notifications not appearing in {product-very-short}*
524521

525522
1. **Check notifications controller is running:**
526523
+
@@ -557,7 +554,7 @@ kubectl get configmap argocd-notifications-cm -n openshift-gitops -o jsonpath='{
557554
kubectl get application my-app -n openshift-gitops -o jsonpath='{.metadata.annotations}' | jq .
558555
----
559556

560-
=== "notification service 'backstage' is not supported"
557+
*"notification service 'backstage' is not supported"*
561558

562559
This error means the webhook service is not configured.
563560

@@ -568,7 +565,7 @@ Common causes include the following:
568565

569566
**Solution:** Use the `NotificationsConfiguration` CR for OpenShift GitOps (see Part 2).
570567

571-
=== Webhook Returns 400 Bad Request / "not valid JSON"
568+
*Webhook Returns 400 Bad Request / "not valid JSON"*
572569

573570
This means the trigger is using the wrong template format (text instead of JSON).
574571

@@ -583,7 +580,7 @@ Common causes include the following:
583580
* Trigger: `trigger.on-sync-succeeded-backstage`
584581
* Subscription: `notifications.argoproj.io/subscribe.on-sync-succeeded-backstage.backstage`
585582

586-
=== Link Shows *<no value>* or Broken URL
583+
*Link Shows *<no value>* or Broken URL*
587584

588585
The `{{.context.argocdUrl}}` template variable is not configured.
589586

@@ -610,11 +607,11 @@ data:
610607
argocdUrl: https://your-argocd-url.com
611608
----
612609

613-
=== Authentication Errors
610+
*Authentication Errors*
614611

615612
If you see `401 Unauthorized` or token errors:
616613

617-
1. Verify the token in `argocd-notifications-secret` matches your Backstage config.
614+
1. Verify the token in `argocd-notifications-secret` matches your {backstage} config.
618615
2. Check the Authorization header format: `Bearer $backstage-token`.
619616
3. Restart the notifications controller after secret changes:
620617
+
@@ -628,14 +625,14 @@ kubectl rollout restart deployment -n openshift-gitops -l app.kubernetes.io/name
628625
=== Security Considerations
629626

630627
1. **Use strong tokens** - Generate random tokens with sufficient entropy.
631-
2. **Rotate tokens periodically** - Update both Argo CD secret and Backstage config.
632-
3. **Use HTTPS** - Ensure Backstage is accessible over HTTPS in production.
628+
2. **Rotate tokens periodically** - Update both Argo CD secret and {backstage} config.
629+
3. **Use HTTPS** - Ensure {backstage} is accessible over HTTPS in production.
633630
4. **Network policies** - Consider restricting which pods can reach {backstage}.
634631

635632
---
636633

637634
=== Additional Resources
638635

639636
* link:https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/[Argo CD Notifications Documentation]
640-
* link:https://backstage.io/docs/notifications/[Backstage Notifications Plugin]
637+
* link:https://backstage.io/docs/notifications/[{backstage} Notifications Plugin]
641638
* link:https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/services/webhook/[Argo CD Webhook Service Configuration]

titles/additional_title-additional-rhdh-capabilities/master.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ include::artifacts/attributes.adoc[]
88
:abstract: Explore emerging, evolving, and supplemental capabilities in {product}, including new features and supported functionality not yet fully covered in the core documentation.
99
:imagesdir: images
1010

11+
[id="{context}"]
1112
= {title}
1213

1314
[role="_abstract"]
14-
{abstract}
15+
Explore emerging, evolving, and supplemental capabilities in {product}. This content covers new features, preview technologies, and supported functionality not yet fully documented in the core documentation.
1516

16-
include::artifacts/snip-developer-preview.adoc[]
17-
18-
include::additional-capabilities/additional-rhdh-capabilities.adoc[]
17+
include::additional-capabilities/ref-rhdh-capabilities.adoc[]

0 commit comments

Comments
 (0)