allow customization of the `description` field

Open
#352 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
backend

Research direction

No files or tests are named. Locate the code that builds the description sent to NetBox and trace how resource configuration is provided; define a customization path while preserving the current message by default. Verify that customized descriptions and backward-compatible defaults are applied when resources are pushed.

Written by the indexing model from the issue text.

Description

feature
What would you like to be added?

The description field when pushed to netbox is currently hardcoded to be the resourcce name followed by the spec.description followed by a hardcoded warning, e.g. my-namespace/my-prefix my description // managed by netbox-operator, please don't edit it in Netbox unless you know what you're doing.

Add support for this message to be customized.

Why is this needed?

When viewing from the netbox UI and there dozens or hundreds of resources, it can be hard to find the description you are looking for because there is a lot of visual clutter due to the resource name and the hard coded warning. This feature would allow users to remove parts of the message while maintaining backward compatibility with the default behavior.

Dominant language
Go
Stars
157
Forks
28
Avg merge
18h 57m
Merged PRs (30d)
13

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from netbox-community/netbox-operator

All issues in netbox-community/netbox-operator

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.