mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
Add AllowExtraDnsLabels to setupKey CRD (#277)
This option was hardcoded to false. It is now configurable in the SetupKey CRD with a default false value. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * New allowExtraDnsLabels setting for Setup Keys to control whether peers may include extra DNS labels (disabled by default, immutable after creation). * **Documentation** * API reference updated to document the new allowExtraDnsLabels field and its default/behavior. <!-- review_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/netbirdio/kubernetes-operator/pull/277?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -125,7 +125,7 @@ func (r *SetupKeyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
|
||||
expiresIn = int(setupKey.Spec.Duration.Seconds())
|
||||
}
|
||||
setupKeyReq := api.PostApiSetupKeysJSONRequestBody{
|
||||
AllowExtraDnsLabels: new(false),
|
||||
AllowExtraDnsLabels: &setupKey.Spec.AllowExtraDnsLabels,
|
||||
AutoGroups: autoGroupIDs,
|
||||
Ephemeral: new(setupKey.Spec.Ephemeral),
|
||||
ExpiresIn: expiresIn,
|
||||
|
||||
Reference in New Issue
Block a user