Skip to content

Commit

Permalink
Add KCC specific message for instanceTypeRef
Browse files Browse the repository at this point in the history
  • Loading branch information
199201shubhamsahu committed Mar 11, 2024
1 parent 3feb83e commit fbfb6cc
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ spec:
the instance.
type: string
instanceTypeRef:
description: "\"(Required) The type of instance.\nPossible values:
[\"PRIMARY\", \"READ_POOL\", \"SECONDARY\"]\nFor PRIMARY and SECONDARY
instances, set the value to refer to the name of the associated
cluster.\ninstanceTypeRef: \n name: clusterName\nFor instance of
type READ_POOL, set the value using external keyword.\nExample:\ninstanceTypeRef:\n
\ external: READ_POOL\""
oneOf:
- not:
required:
Expand Down Expand Up @@ -357,6 +363,12 @@ spec:
the instance.
type: string
instanceTypeRef:
description: "\"(Required) The type of instance.\nPossible values:
[\"PRIMARY\", \"READ_POOL\", \"SECONDARY\"]\nFor PRIMARY and SECONDARY
instances, set the value to refer to the name of the associated
cluster.\ninstanceTypeRef: \n name: clusterName\nFor instance of
type READ_POOL, set the value using external keyword.\nExample:\ninstanceTypeRef:\n
\ external: READ_POOL\""
oneOf:
- not:
required:
Expand Down
10 changes: 10 additions & 0 deletions config/servicemappings/alloydb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,16 @@ spec:
kind: AlloyDBCluster
parent: true
- tfField: instance_type
description: |-
"(Required) The type of instance.
Possible values: ["PRIMARY", "READ_POOL", "SECONDARY"]
For PRIMARY and SECONDARY instances, set the value to refer to the name of the associated cluster.
instanceTypeRef:
name: clusterName
For instance of type READ_POOL, set the value using external keyword.
Example:
instanceTypeRef:
external: READ_POOL"
key: instanceTypeRef
targetField: cluster_type
gvk:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,15 @@ can have regional availability (nodes are present in 2 or more zones in a region
</td>
<td>
<p><code class="apitype">object</code></p>
<p>{% verbatim %}{% endverbatim %}</p>
<p>{% verbatim %}"(Required) The type of instance.
Possible values: ["PRIMARY", "READ_POOL", "SECONDARY"]
For PRIMARY and SECONDARY instances, set the value to refer to the name of the associated cluster.
instanceTypeRef:
name: clusterName
For instance of type READ_POOL, set the value using external keyword.
Example:
instanceTypeRef:
external: READ_POOL"{% endverbatim %}</p>
</td>
</tr>
<tr>
Expand Down

0 comments on commit fbfb6cc

Please sign in to comment.