Skip to content

Commit

Permalink
Changed ManagedZoneObservation parameters to non-pointers
Browse files Browse the repository at this point in the history
Signed-off-by: danielinclouds <[email protected]>
  • Loading branch information
danielinclouds committed Sep 18, 2022
1 parent 542f994 commit fea3c54
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions apis/dns/v1alpha1/managed_zone_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ type ManagedZoneObservation struct {

// CreationTime: The time that this resource was created on the server.
// This is in RFC3339 text format. Output only.
CreationTime *string `json:"creationTime,omitempty"`
CreationTime string `json:"creationTime,omitempty"`

// Id: Unique identifier for the resource; defined by the server (output only)
ID *uint64 `json:"id,omitempty"`
ID uint64 `json:"id,omitempty"`

// NameServers: Delegate your managed_zone to these virtual name
// servers; defined by the server (output only)
Expand Down
10 changes: 0 additions & 10 deletions apis/dns/v1alpha1/zz_generated.deepcopy.go

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

4 changes: 2 additions & 2 deletions pkg/clients/managedzone/managed_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ func IsUpToDate(name string, spec *v1alpha1.ManagedZoneParameters, observed *dns
// *ManagedZoneObservation.
func GenerateManagedZoneObservation(observed *dns.ManagedZone) v1alpha1.ManagedZoneObservation {
return v1alpha1.ManagedZoneObservation{
CreationTime: &observed.CreationTime,
ID: &observed.Id,
CreationTime: observed.CreationTime,
ID: observed.Id,
NameServers: observed.NameServers,
}
}

0 comments on commit fea3c54

Please sign in to comment.