This file contains various callout patterns to test the converter.
apiVersion: v1
kind: Secret
metadata:
name: <my-secret> (1)
data:
key: <my-key> (2)-
The secret name
-
The secret key value
cat <<EOF | oc -n <namespace> create -f - (1)
apiVersion: v1
kind: ConfigMap
metadata:
name: <config-name> (2)
labels:
app: <app-label> (3)
EOF-
The namespace where resources are created
-
Optional. The name of the ConfigMap
-
Optional: Application label for filtering
cat <<EOF | oc -n {my-product-namespace} create -f -
apiVersion: v1
kind: Secret
metadata:
name: <my-product-database-certificates-secrets> (1)
type: Opaque
stringData:
postgres-ca.pem: |-
-----BEGIN CERTIFICATE-----
<ca-certificate-key> (2)
postgres-key.key: |-
-----BEGIN CERTIFICATE-----
<tls-private-key> (3)
postgres-crt.pem: |-
-----BEGIN CERTIFICATE-----
<tls-certificate-key> (4)
# ...
EOF-
Specifies the name of the certificate secret.
-
Specifies the CA certificate key.
-
Optional. Specifies the TLS private key.
-
Optional. Specifies the TLS certificate key.
public class Example {
private String name = "<user-name>"; (1)
private int port = <port-number>; (3)
private String host = "<hostname>"; (5)
}-
The user’s name
-
The port number for connections
-
The target hostname
List<String> items = new ArrayList<>();
Map<String, Object> config = new HashMap<>();This block has no callouts, so it should remain unchanged.
Some text before the code block.
quarkus.datasource.db-kind=<db-type> (1)
quarkus.datasource.username=<db-user> (2)
quarkus.datasource.password=<db-password> (3)-
Database type (postgresql, mysql, etc.)
-
Database username
-
Database password
Some text after the code block.
Configuration:
server: <server-url> (1)
timeout: <timeout-value> (2)-
The server URL
-
Optional. Timeout in seconds
Step 1: Configure <setting-name> (1)
Step 2: Verify <output-value> (2)-
The setting to configure
-
Expected output value
export VAR=<value> (1)-
Environment variable value
echo <message> (1)-
Message to display