revert changes

This commit is contained in:
David Fry
2025-05-26 16:45:24 +01:00
parent 87c4aac4cd
commit 90ce664308
3 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ type NbSetupKeyObservation struct {
AllowExtraDnsLabels bool `json:"allow_extra_dns_labels"`
// AutoGroups List of group IDs to auto-assign to peers registered with this key
AutoGroups *[]string `json:"auto_groups,omitempty"`
AutoGroups []string `json:"auto_groups,omitempty"`
// Ephemeral Indicate that the peer will be ephemeral or not
Ephemeral bool `json:"ephemeral"`
+2 -6
View File
@@ -1510,12 +1510,8 @@ func (in *NbSetupKeyObservation) DeepCopyInto(out *NbSetupKeyObservation) {
*out = *in
if in.AutoGroups != nil {
in, out := &in.AutoGroups, &out.AutoGroups
*out = new([]string)
if **in != nil {
in, out := *in, *out
*out = make([]string, len(*in))
copy(*out, *in)
}
*out = make([]string, len(*in))
copy(*out, *in)
}
}
+1 -1
View File
@@ -187,7 +187,7 @@ func (c *external) Observe(ctx context.Context, mg resource.Managed) (managed.Ex
cr.Status.AtProvider = v1alpha1.NbSetupKeyObservation{
Id: setupkey.Id,
AllowExtraDnsLabels: setupkey.AllowExtraDnsLabels,
AutoGroups: &setupkey.AutoGroups,
AutoGroups: setupkey.AutoGroups,
Ephemeral: setupkey.Ephemeral,
Expires: setupkey.Expires.String(),
LastUsed: setupkey.LastUsed.String(),