mirror of
https://github.com/netbirdio/netbird-crossplane-provider.git
synced 2026-05-22 18:44:14 -07:00
revert changes
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user