Skip to content

Commit

Permalink
Automated Config Connector import.
Browse files Browse the repository at this point in the history
  - 9a5d9f87e64d0177b3bc4ac332567724dc9ee938 Adding immutable field to bootDisk fields. by Config Connector Team <[email protected]>

GitOrigin-RevId: 9a5d9f87e64d0177b3bc4ac332567724dc9ee938
  • Loading branch information
Config Connector Team authored and copybara-github committed May 23, 2023
1 parent a2a51eb commit d2d65ca
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ spec:
description: Immutable. The size of the image in gigabytes.
type: integer
sourceImageRef:
description: Immutable. The image from which to initialize
this disk.
oneOf:
- not:
required:
Expand Down Expand Up @@ -335,6 +337,7 @@ spec:
or "READ_WRITE".
type: string
sourceDiskRef:
description: Immutable. The source disk used to create this disk.
oneOf:
- not:
required:
Expand Down
8 changes: 8 additions & 0 deletions config/servicemappings/compute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,17 @@ spec:
targetField: self_link
- key: sourceDiskRef
tfField: boot_disk.source
description: |-
Immutable. The source disk used to create this disk.
gvk:
kind: ComputeDisk
version: v1beta1
group: compute.cnrm.cloud.google.com
targetField: self_link
- key: sourceImageRef # prefix with "source" as that's how it is in the underlying API
tfField: boot_disk.initialize_params.image
description: |-
Immutable. The image from which to initialize this disk.
gvk:
kind: ComputeImage
version: v1beta1
Expand Down Expand Up @@ -933,13 +937,17 @@ spec:
targetField: self_link
- key: sourceDiskRef
tfField: boot_disk.source
description: |-
Immutable. The source disk used to create this disk.
gvk:
kind: ComputeDisk
version: v1beta1
group: compute.cnrm.cloud.google.com
targetField: self_link
- key: sourceImageRef # prefix with "source" as that's how it is in the underlying API
tfField: boot_disk.initialize_params.image
description: |-
Immutable. The image from which to initialize this disk.
gvk:
kind: ComputeImage
version: v1beta1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ type InstanceBootDisk struct {
// +optional
Mode *string `json:"mode,omitempty"`

/* Immutable. The source disk used to create this disk. */
// +optional
SourceDiskRef *v1alpha1.ResourceRef `json:"sourceDiskRef,omitempty"`
}
Expand Down Expand Up @@ -158,6 +159,7 @@ type InstanceInitializeParams struct {
// +optional
Size *int `json:"size,omitempty"`

/* Immutable. The image from which to initialize this disk. */
// +optional
SourceImageRef *v1alpha1.ResourceRef `json:"sourceImageRef,omitempty"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ zone: string
</td>
<td>
<p><code class="apitype">object</code></p>
<p>{% verbatim %}{% endverbatim %}</p>
<p>{% verbatim %}Immutable. The image from which to initialize this disk.{% endverbatim %}</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -726,7 +726,7 @@ zone: string
</td>
<td>
<p><code class="apitype">object</code></p>
<p>{% verbatim %}{% endverbatim %}</p>
<p>{% verbatim %}Immutable. The source disk used to create this disk.{% endverbatim %}</p>
</td>
</tr>
<tr>
Expand Down

0 comments on commit d2d65ca

Please sign in to comment.