-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* broker link * add operator docs * operatorhub screenshot * fix operator docs * update
- Loading branch information
Showing
73 changed files
with
5,156 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
== Apicurio Registry Operator Documentation | ||
|
||
The Apicurio Registry Operator documentation is created using https://asciidoc.org/[AsciiDoc] and https://antora.org/[Antora] site generator. | ||
|
||
You can perform a local build of the documentation for test purposes using the `antora` tool (https://antora.org/): | ||
|
||
. Install the `antora` tool using the following steps: https://docs.antora.org/antora/2.3/install-and-run-quickstart/ | ||
. In the `apicurio-registry-operator/docs` directory, enter the following command: | ||
+ | ||
---- | ||
$ antora local-test-playbook.yml | ||
---- | ||
+ | ||
. Change to the `./target/dist/apicurio-registry-operator` directory. | ||
. Open the generated `index.html` file in your browser. | ||
|
||
NOTE: See `docs/modules/ROOT/partials/shared/attributes.adoc` for configurable parameters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: apicurio-registry-operator | ||
title: Apicurio Registry Operator | ||
version: '3.0.0-dev-v1.x' | ||
start_ROOT: ROOT:index.adoc | ||
nav: | ||
- modules/ROOT/nav.adoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
site: | ||
title: Apicurio Registry Operator PREVIEW | ||
url: https://www.apicur.io/registry/docs | ||
start_page: apicurio-registry-operator::index.adoc | ||
content: | ||
edit_url: https://github.com/Apicurio/apicurio-registry/tree/main/docs | ||
sources: | ||
- url: ../../ | ||
branches: HEAD | ||
start_path: operator/docs | ||
|
||
ui: | ||
bundle: | ||
url: https://raw.githubusercontent.com/Apicurio/apicurio-docs-ui/main/dist/ui-bundle.zip | ||
snapshot: true | ||
|
||
runtime: | ||
cache_dir: ./target/antora-cache | ||
|
||
output: | ||
dir: ./target/dist | ||
|
||
asciidoc: | ||
attributes: | ||
plantuml-server-url: https://www.plantuml.com/plantuml | ||
plantuml-fetch-diagram: true | ||
mod-loc: partial$ |
9 changes: 9 additions & 0 deletions
9
operator/docs/modules/ROOT/examples/apicurioregistry_kafkasql_plain_cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: registry.apicur.io/v1 | ||
kind: ApicurioRegistry | ||
metadata: | ||
name: example-apicurioregistry-kafkasql | ||
spec: | ||
configuration: | ||
persistence: "kafkasql" | ||
kafkasql: | ||
bootstrapServers: "my-cluster-kafka-bootstrap.registry-example-kafkasql-plain.svc:9092" |
14 changes: 14 additions & 0 deletions
14
operator/docs/modules/ROOT/examples/apicurioregistry_kafkasql_scram_cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: registry.apicur.io/v1 | ||
kind: ApicurioRegistry | ||
metadata: | ||
name: example-apicurioregistry-kafkasql-scram | ||
spec: | ||
configuration: | ||
persistence: "kafkasql" | ||
kafkasql: | ||
bootstrapServers: "my-cluster-kafka-bootstrap.registry-example-kafkasql-scram.svc:9093" | ||
security: | ||
scram: | ||
truststoreSecretName: my-cluster-cluster-ca-cert | ||
user: my-user | ||
passwordSecretName: my-user |
13 changes: 13 additions & 0 deletions
13
operator/docs/modules/ROOT/examples/apicurioregistry_kafkasql_tls_cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: registry.apicur.io/v1 | ||
kind: ApicurioRegistry | ||
metadata: | ||
name: example-apicurioregistry-kafkasql-tls | ||
spec: | ||
configuration: | ||
persistence: "kafkasql" | ||
kafkasql: | ||
bootstrapServers: "my-cluster-kafka-bootstrap.registry-example-kafkasql-tls.svc:9093" | ||
security: | ||
tls: | ||
keystoreSecretName: my-user | ||
truststoreSecretName: my-cluster-cluster-ca-cert |
8 changes: 8 additions & 0 deletions
8
operator/docs/modules/ROOT/examples/apicurioregistry_mem_cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: registry.apicur.io/v1 | ||
kind: ApicurioRegistry | ||
metadata: | ||
name: example-apicurioregistry-mem | ||
spec: | ||
configuration: | ||
persistence: "mem" # Optional (default value) | ||
# NOTE: No additional configuration required for *dev* deployment |
12 changes: 12 additions & 0 deletions
12
operator/docs/modules/ROOT/examples/apicurioregistry_sql_cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: registry.apicur.io/v1 | ||
kind: ApicurioRegistry | ||
metadata: | ||
name: example-apicurioregistry-sql | ||
spec: | ||
configuration: | ||
persistence: "sql" | ||
sql: | ||
dataSource: | ||
url: "jdbc:postgresql://<service name>.<namespace>.svc:5432/<database name>" | ||
userName: "postgres" | ||
password: "<password>" # Optional |
19 changes: 19 additions & 0 deletions
19
operator/docs/modules/ROOT/examples/keycloak/apicurioregistry_kafkasql_keycloak_cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: registry.apicur.io/v1 | ||
kind: ApicurioRegistry | ||
metadata: | ||
name: example-apicurioregistry-kafkasql-keycloak | ||
spec: | ||
configuration: | ||
security: | ||
keycloak: | ||
url: "http://keycloak-http-<namespace>.apps.<cluster host>" | ||
# ^ Required | ||
# Use an HTTP URL in development. | ||
realm: "registry" | ||
# apiClientId: "registry-client-api" | ||
# ^ Optional (default value) | ||
# uiClientId: "registry-client-ui" | ||
# ^ Optional (default value) | ||
persistence: 'kafkasql' | ||
kafkasql: | ||
bootstrapServers: '<my-cluster>-kafka-bootstrap.<my-namespace>.svc:9092' |
16 changes: 16 additions & 0 deletions
16
operator/docs/modules/ROOT/examples/keycloak/apicurioregistry_mem_keycloak_cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: registry.apicur.io/v1 | ||
kind: ApicurioRegistry | ||
metadata: | ||
name: example-apicurioregistry-keycloak | ||
spec: | ||
configuration: | ||
security: | ||
keycloak: | ||
url: "http://keycloak-http-<namespace>.apps.<cluster host>" | ||
# ^ Required | ||
# Use an HTTP URL in development. | ||
realm: "registry" | ||
# apiClientId: "registry-client-api" | ||
# ^ Optional (default value) | ||
# uiClientId: "registry-client-ui" | ||
# ^ Optional (default value) |
23 changes: 23 additions & 0 deletions
23
operator/docs/modules/ROOT/examples/keycloak/apicurioregistry_sql_keycloak_cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: registry.apicur.io/v1 | ||
kind: ApicurioRegistry | ||
metadata: | ||
name: example-apicurioregistry-sql-keycloak | ||
spec: | ||
configuration: | ||
persistence: "sql" | ||
sql: | ||
dataSource: | ||
url: "jdbc:postgresql://<service name>.<namespace>.svc:5432/<database name>" | ||
userName: "postgres" | ||
password: "<password>" | ||
# ^ Optional | ||
security: | ||
keycloak: | ||
url: "http://keycloak-http-<namespace>.apps.<cluster host>" | ||
# ^ Required | ||
# Use an HTTP URL in development. | ||
realm: "registry" | ||
# apiClientId: "registry-client-api" | ||
# ^ Optional (default value) | ||
# uiClientId: "registry-client-ui" | ||
# ^ Optional (default value) |
12 changes: 12 additions & 0 deletions
12
operator/docs/modules/ROOT/examples/keycloak/keycloak.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: keycloak.org/v1alpha1 | ||
kind: Keycloak | ||
metadata: | ||
name: example-keycloak | ||
labels: | ||
app: sso | ||
spec: | ||
instances: 1 | ||
externalAccess: | ||
enabled: True | ||
podDisruptionBudget: | ||
enabled: True |
18 changes: 18 additions & 0 deletions
18
operator/docs/modules/ROOT/examples/keycloak/keycloak_http_ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: keycloak-http | ||
labels: | ||
app: keycloak | ||
spec: | ||
rules: | ||
- host: KEYCLOAK_HTTP_HOST | ||
http: | ||
paths: | ||
- path: / | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: keycloak-http | ||
port: | ||
number: 8080 |
15 changes: 15 additions & 0 deletions
15
operator/docs/modules/ROOT/examples/keycloak/keycloak_http_route.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
name: keycloak-http | ||
labels: | ||
app: keycloak | ||
spec: | ||
path: / | ||
to: | ||
kind: Service | ||
name: keycloak-http | ||
weight: 100 | ||
port: | ||
targetPort: keycloak-http | ||
wildcardPolicy: None |
19 changes: 19 additions & 0 deletions
19
operator/docs/modules/ROOT/examples/keycloak/keycloak_http_service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: keycloak-http | ||
labels: | ||
app: keycloak | ||
spec: | ||
ports: | ||
- name: keycloak-http | ||
protocol: TCP | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
app: keycloak | ||
component: keycloak | ||
type: ClusterIP | ||
sessionAffinity: None | ||
status: | ||
loadBalancer: {} |
63 changes: 63 additions & 0 deletions
63
operator/docs/modules/ROOT/examples/keycloak/keycloak_realm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
apiVersion: keycloak.org/v1alpha1 | ||
kind: KeycloakRealm | ||
metadata: | ||
name: registry-keycloakrealm | ||
labels: | ||
app: sso | ||
spec: | ||
instanceSelector: | ||
matchLabels: | ||
app: sso | ||
realm: | ||
displayName: Registry | ||
enabled: true | ||
id: registry | ||
realm: registry | ||
sslRequired: none | ||
roles: | ||
realm: | ||
- name: sr-admin | ||
- name: sr-developer | ||
- name: sr-readonly | ||
clients: | ||
- clientId: registry-client-ui | ||
implicitFlowEnabled: true | ||
redirectUris: | ||
- '*' | ||
standardFlowEnabled: true | ||
webOrigins: | ||
- '*' | ||
publicClient: true | ||
- clientId: registry-client-api | ||
implicitFlowEnabled: true | ||
redirectUris: | ||
- '*' | ||
standardFlowEnabled: true | ||
webOrigins: | ||
- '*' | ||
publicClient: true | ||
users: | ||
- credentials: | ||
- temporary: false | ||
type: password | ||
value: changeme | ||
enabled: true | ||
realmRoles: | ||
- sr-admin | ||
username: registry-admin | ||
- credentials: | ||
- temporary: false | ||
type: password | ||
value: changeme | ||
enabled: true | ||
realmRoles: | ||
- sr-developer | ||
username: registry-developer | ||
- credentials: | ||
- temporary: false | ||
type: password | ||
value: changeme | ||
enabled: true | ||
realmRoles: | ||
- sr-readonly | ||
username: registry-user |
61 changes: 61 additions & 0 deletions
61
operator/docs/modules/ROOT/examples/keycloak/keycloak_realm_import.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
apiVersion: k8s.keycloak.org/v2alpha1 | ||
kind: KeycloakRealmImport | ||
metadata: | ||
name: registry-keycloakrealm | ||
labels: | ||
app: keycloak | ||
spec: | ||
keycloakCRName: example-keycloak | ||
realm: | ||
displayName: Registry | ||
enabled: true | ||
id: registry | ||
realm: registry | ||
sslRequired: none | ||
roles: | ||
realm: | ||
- name: sr-admin | ||
- name: sr-developer | ||
- name: sr-readonly | ||
clients: | ||
- clientId: registry-client-ui | ||
implicitFlowEnabled: true | ||
redirectUris: | ||
- '*' | ||
standardFlowEnabled: true | ||
webOrigins: | ||
- '*' | ||
publicClient: true | ||
- clientId: registry-client-api | ||
implicitFlowEnabled: true | ||
redirectUris: | ||
- '*' | ||
standardFlowEnabled: true | ||
webOrigins: | ||
- '*' | ||
publicClient: true | ||
users: | ||
- credentials: | ||
- temporary: false | ||
type: password | ||
value: changeme | ||
enabled: true | ||
realmRoles: | ||
- sr-admin | ||
username: registry-admin | ||
- credentials: | ||
- temporary: false | ||
type: password | ||
value: changeme | ||
enabled: true | ||
realmRoles: | ||
- sr-developer | ||
username: registry-developer | ||
- credentials: | ||
- temporary: false | ||
type: password | ||
value: changeme | ||
enabled: true | ||
realmRoles: | ||
- sr-readonly | ||
username: registry-user |
21 changes: 21 additions & 0 deletions
21
operator/docs/modules/ROOT/examples/templates/https/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
This collection of OpenShift templates provides examples of how to configure Red Hat Integration - Service Registry to use HTTPS. Each template contains comments with instructions and details. | ||
|
||
We suggest you read the examples in the following order of increasing complexity: | ||
|
||
Edge termination: | ||
|
||
- registry-default-edge | ||
- registry-certmanager-edge | ||
- registry-certmanager-letsencrypt-edge | ||
- registry-certmanager-letsencrypt-custom-domain-edge | ||
|
||
Passthrough termination: | ||
|
||
- registry-certmanager-passthrough | ||
|
||
In addition, there is a collection of examples on how to configure Red Hat Single Sign-On (Keycloak) to use HTTPS, and integrate it with Service Registry: | ||
|
||
- registry-keycloak-default-edge | ||
- registry-keycloak-certmanager-letsencrypt-edge | ||
|
||
You can merge multiple examples together to configure HTTPS for both Service Registry and Red Hat Single Sign-On. |
Oops, something went wrong.