Skip to content

Commit

Permalink
Generated files after make ready-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
199201shubhamsahu committed Feb 29, 2024
1 parent 509c89e commit 2de86ec
Show file tree
Hide file tree
Showing 9 changed files with 574 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ spec:
- startTimes
type: object
type: object
clusterType:
description: 'The type of cluster. If not set, defaults to PRIMARY.
Default value: "PRIMARY" Possible values: ["PRIMARY", "SECONDARY"].'
type: string
continuousBackupConfig:
description: |-
The continuous backup config for this cluster.
Expand Down Expand Up @@ -231,6 +235,12 @@ spec:
If not set, defaults to 14 days.
type: integer
type: object
deletionPolicy:
description: |-
Policy to determine if the cluster should be deleted forcefully.
Deleting a cluster forcefully, deletes the cluster and all its associated instances within the cluster.
Deleting a Secondary cluster with a secondary instance REQUIRES setting deletion_policy = "FORCE" otherwise an error is returned. This is needed as there is no support to delete just the secondary instance, and the only way to delete secondary instance is to delete the associated secondary cluster forcefully which also deletes the secondary instance.
type: string
displayName:
description: User-settable and human-readable display name for the
Cluster.
Expand Down Expand Up @@ -505,6 +515,44 @@ spec:
- clusterRef
- pointInTime
type: object
secondaryConfig:
description: Configuration of the secondary cluster for Cross Region
Replication. This should be set if and only if the cluster is of
type SECONDARY.
properties:
primaryClusterNameRef:
description: (Optional) Configuration of the secondary cluster
for Cross Region Replication. This should be set if and only
if the cluster is of type SECONDARY.
oneOf:
- not:
required:
- external
required:
- name
- not:
anyOf:
- required:
- name
- required:
- namespace
required:
- external
properties:
external:
description: 'Allowed value: The `name` field of an `AlloyDBCluster`
resource.'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
type: object
required:
- primaryClusterNameRef
type: object
required:
- location
- projectRef
Expand Down Expand Up @@ -796,6 +844,10 @@ spec:
- startTimes
type: object
type: object
clusterType:
description: 'The type of cluster. If not set, defaults to PRIMARY.
Default value: "PRIMARY" Possible values: ["PRIMARY", "SECONDARY"].'
type: string
continuousBackupConfig:
description: |-
The continuous backup config for this cluster.
Expand Down Expand Up @@ -849,6 +901,12 @@ spec:
If not set, defaults to 14 days.
type: integer
type: object
deletionPolicy:
description: |-
Policy to determine if the cluster should be deleted forcefully.
Deleting a cluster forcefully, deletes the cluster and all its associated instances within the cluster.
Deleting a Secondary cluster with a secondary instance REQUIRES setting deletion_policy = "FORCE" otherwise an error is returned. This is needed as there is no support to delete just the secondary instance, and the only way to delete secondary instance is to delete the associated secondary cluster forcefully which also deletes the secondary instance.
type: string
displayName:
description: User-settable and human-readable display name for the
Cluster.
Expand Down Expand Up @@ -1123,6 +1181,44 @@ spec:
- clusterRef
- pointInTime
type: object
secondaryConfig:
description: Configuration of the secondary cluster for Cross Region
Replication. This should be set if and only if the cluster is of
type SECONDARY.
properties:
primaryClusterNameRef:
description: (Optional) Configuration of the secondary cluster
for Cross Region Replication. This should be set if and only
if the cluster is of type SECONDARY.
oneOf:
- not:
required:
- external
required:
- name
- not:
anyOf:
- required:
- name
- required:
- namespace
required:
- external
properties:
external:
description: 'Allowed value: The `name` field of an `AlloyDBCluster`
resource.'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
type: object
required:
- primaryClusterNameRef
type: object
required:
- location
- projectRef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,33 @@ spec:
instance, an error will be thrown. If this is absent for a ZONAL
instance, instance is created in a random zone with available capacity.
type: string
instanceType:
description: 'Immutable. The type of the instance. If the instance
type is READ_POOL, provide the associated PRIMARY instance in the
''depends_on'' meta-data attribute. Possible values: ["PRIMARY",
"READ_POOL"].'
type: string
instanceTypeRef:
oneOf:
- not:
required:
- external
required:
- name
- not:
anyOf:
- required:
- name
- required:
- namespace
required:
- external
properties:
external:
description: 'Allowed value: The `clusterType` field of an `AlloyDBCluster`
resource.'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
type: object
machineConfig:
description: Configurations for the machines that host the underlying
database engine.
Expand All @@ -150,7 +171,7 @@ spec:
type: string
required:
- clusterRef
- instanceType
- instanceTypeRef
type: object
status:
properties:
Expand Down Expand Up @@ -316,12 +337,33 @@ spec:
instance, an error will be thrown. If this is absent for a ZONAL
instance, instance is created in a random zone with available capacity.
type: string
instanceType:
description: 'Immutable. The type of the instance. If the instance
type is READ_POOL, provide the associated PRIMARY instance in the
''depends_on'' meta-data attribute. Possible values: ["PRIMARY",
"READ_POOL"].'
type: string
instanceTypeRef:
oneOf:
- not:
required:
- external
required:
- name
- not:
anyOf:
- required:
- name
- required:
- namespace
required:
- external
properties:
external:
description: 'Allowed value: The `clusterType` field of an `AlloyDBCluster`
resource.'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
type: object
machineConfig:
description: Configurations for the machines that host the underlying
database engine.
Expand All @@ -346,7 +388,7 @@ spec:
type: string
required:
- clusterRef
- instanceType
- instanceTypeRef
type: object
status:
properties:
Expand Down
19 changes: 19 additions & 0 deletions pkg/clients/generated/apis/alloydb/v1beta1/alloydbcluster_types.go

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

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

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 @@ -457,8 +457,9 @@ metadata:
name: alloydbbackup-dep
spec:
clusterRef:
external: projects/${PROJECT_ID?}/locations/us-central1/clusters/alloydbbackup-dep
instanceType: PRIMARY
name: alloydbbackup-dep
instanceTypeRef:
name: alloydbbackup-dep
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
Expand Down
Loading

0 comments on commit 2de86ec

Please sign in to comment.