Skip to content

Commit c1e5957

Browse files
authored
Merge branch 'release-1.4' into add-security-fixes-for-release-1.4.2
2 parents 392403e + 27674df commit c1e5957

File tree

5 files changed

+31
-18
lines changed

5 files changed

+31
-18
lines changed

modules/authentication/proc-enabling-authentication-with-github.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ TIP: If you plan to make changes using the GitHub API, ensure that `Read and wri
5555
+
5656
`AUTH_GITHUB_APP_ID`:: Enter the saved **App ID**.
5757
`AUTH_GITHUB_CLIENT_ID`:: Enter the saved **Client ID**.
58-
`GITHUB_HOST_DOMAIN`:: Enter your GitHub host domain: `github.com` unless you are using GitHub Enterprise.
58+
//`GITHUB_HOST_DOMAIN`:: Enter your GitHub host domain: `github.com` unless you are using GitHub Enterprise.
5959
`GITHUB_ORGANIZATION`:: Enter your GitHub organization name, such as `__<your_github_organization_name>__'.
6060
`GITHUB_ORG_URL`:: Enter `$GITHUB_HOST_DOMAIN/$GITHUB_ORGANIZATION`.
6161
`GITHUB_CLIENT_SECRET`:: Enter the saved **Client Secret**.
@@ -145,6 +145,7 @@ auth:
145145
callbackUrl: __<your_intermediate_service_url/handler>__
146146
----
147147

148+
////
148149
`enterpriseInstanceUrl`::
149150
Your GitHub Enterprise URL.
150151
Requires you defined the `GITHUB_HOST_DOMAIN` secret in the previous step.
@@ -158,6 +159,7 @@ auth:
158159
production:
159160
enterpriseInstanceUrl: ${GITHUB_HOST_DOMAIN}
160161
----
162+
////
161163

162164
[TIP]
163165
====

modules/configuring-deployment/proc-configuring-deployment-by-using-the-operator.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[id="configuring-the-deployment"]
22
= Configuring {product} deployment when using the Operator
33

4-
The {product} Operator exposes a `rhdh.redhat.com/v1alpha2` API Version of its custom resource (CR). This CR exposes a generic `spec.deployment.patch` field, which gives you full control over the {product-short} Deployment resource. This field can be a fragment of the standard `apps.Deployment` Kubernetes object.
4+
The {product} Operator exposes a `rhdh.redhat.com/v1alpha3` API Version of its custom resource (CR). This CR exposes a generic `spec.deployment.patch` field, which gives you full control over the {product-short} Deployment resource. This field can be a fragment of the standard `apps.Deployment` Kubernetes object.
55

66
.Procedure
77

@@ -11,7 +11,7 @@ The {product} Operator exposes a `rhdh.redhat.com/v1alpha2` API Version of its c
1111
.Example
1212
[source, yaml]
1313
----
14-
apiVersion: rhdh.redhat.com/v1alpha2
14+
apiVersion: rhdh.redhat.com/v1alpha3
1515
kind: Backstage
1616
metadata:
1717
name: developer-hub
@@ -28,7 +28,7 @@ Add labels to the {product-short} pod.
2828
.Example adding the label `my=true`
2929
[source, yaml]
3030
----
31-
apiVersion: rhdh.redhat.com/v1alpha2
31+
apiVersion: rhdh.redhat.com/v1alpha3
3232
kind: Backstage
3333
metadata:
3434
name: developer-hub
@@ -50,7 +50,7 @@ Add an additional volume named `my-volume` and mount it under `/my/path` in the
5050
.Example additional volume
5151
[source, yaml]
5252
----
53-
apiVersion: rhdh.redhat.com/v1alpha2
53+
apiVersion: rhdh.redhat.com/v1alpha3
5454
kind: Backstage
5555
metadata:
5656
name: developer-hub
@@ -78,7 +78,7 @@ Replace the default `dynamic-plugins-root` volume with a persistent volume claim
7878
.Example `dynamic-plugins-root` volume replacement
7979
[source, yaml]
8080
----
81-
apiVersion: rhdh.redhat.com/v1alpha2
81+
apiVersion: rhdh.redhat.com/v1alpha3
8282
kind: Backstage
8383
metadata:
8484
name: developer-hub
@@ -103,7 +103,7 @@ Set the CPU request for the {product-short} application container to 250m.
103103
.Example CPU request
104104
[source, yaml]
105105
----
106-
apiVersion: rhdh.redhat.com/v1alpha2
106+
apiVersion: rhdh.redhat.com/v1alpha3
107107
kind: Backstage
108108
metadata:
109109
name: developer-hub
@@ -127,7 +127,7 @@ Add a new `my-sidecar` sidecar container into the {product-short} Pod.
127127
.Example side car container
128128
[source, yaml]
129129
----
130-
apiVersion: rhdh.redhat.com/v1alpha2
130+
apiVersion: rhdh.redhat.com/v1alpha3
131131
kind: Backstage
132132
metadata:
133133
name: developer-hub

modules/dynamic-plugins/con-dynamic-plugins-cache.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
3333
---
3434
35-
apiVersion: rhdh.redhat.com/v1alpha2
35+
apiVersion: rhdh.redhat.com/v1alpha3
3636
kind: Backstage
3737
metadata:
3838
name: developer-hub

modules/installation/proc-install-rhdh-airgapped-environment-ocp-operator.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The internal {ocp-short} cluster image registry cannot be used as a target mirro
4545
+
4646
[source,yaml,subs="attributes+"]
4747
----
48-
curl -sSLO https://raw.githubusercontent.com/redhat-developer/rhdh-operator/{product-version}.x/.rhdh/scripts/prepare-restricted-environment.sh
48+
curl -sSLO https://raw.githubusercontent.com/redhat-developer/rhdh-operator/release-{product-version}/.rhdh/scripts/prepare-restricted-environment.sh
4949

5050
# if you do not already have a target mirror registry
5151
# and want the script to create one for you

modules/observe/proc-admin-enabling-metrics-ocp-operator.adoc

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,34 @@ Currently, the {product} Operator does not support creating a `ServiceMonitor` c
2525
apiVersion: monitoring.coreos.com/v1
2626
kind: ServiceMonitor
2727
metadata:
28-
name: <custom_resource_name> # <1>
29-
namespace: {my-product-namespace} # <2>
28+
name: _<developer_hub_service_monitor_name>_ <1>
29+
namespace: _<rhdh_namespace_name>_ <2>
3030
labels:
31-
app.kubernetes.io/instance: <custom_resource_name>
32-
app.kubernetes.io/name: backstage
31+
app.kubernetes.io/instance: _<rhdh_cr_name>_ <3>
32+
app.kubernetes.io/name: {product-custom-resource-type}
3333
spec:
3434
namespaceSelector:
3535
matchNames:
36-
- {my-product-namespace}
36+
- _<rhdh_namespace_name>_ <4>
3737
selector:
3838
matchLabels:
39-
rhdh.redhat.com/app: backstage-<custom_resource_name>
39+
app.kubernetes.io/instance: _<deployment_name>_ <5>
40+
app.kubernetes.io/name: _<rhdh_cr_type>_ <6>
4041
endpoints:
4142
- port: http-metrics
4243
path: '/metrics'
4344
----
44-
<1> Replace `<custom_resource_name>` with the name of your `{product-custom-resource-type}` custom resource.
45-
<2> Replace `<project_name>` with the name of the {ocp-short} project where your {product} instance is running.
45+
<1> The name of your `ServiceMonitor` resource, for example, `developer_hub_service_monitor`.
46+
<2> The namespace where your `ServiceMonitor` will live, for example, `{my-product-namespace}`.
47+
<3> The label name identifying the `ServiceMonitor` CR instance, for example, `{my-product-cr-name}`.
48+
<4> The namespace where your {product-very-short} instance is installed, for example, `{my-product-namespace}`.
49+
<5> The name of your {product-very-short} deployment, for example, `developer-hub`.
50+
<6> The name of your {product-very-short} application, for example, `backstage`.
51+
+
52+
[NOTE]
53+
====
54+
`spec.selector.matchLabels` configuration must match the labels of your {product-very-short} installation.
55+
====
4656

4757
. Apply the `ServiceMonitor` CR by running the following command:
4858
+
@@ -55,3 +65,4 @@ oc apply -f <filename>
5565

5666
. From the *Developer* perspective in the {ocp-short} web console, select the *Observe* view.
5767
. Click the *Metrics* tab to view metrics for {product} pods.
68+
. From the Developer perspective in the {ocp-short} web console, click **Project > Services** and verify the labels for `backstage-developer-hub`.

0 commit comments

Comments
 (0)