Skip to content

Add cluster-wide indication for network instance of cluster - #150

Merged
eriknordmark merged 2 commits into
lf-edge:mainfrom
naiming-zededa:naiming-ni-cluster
Jul 27, 2026
Merged

Add cluster-wide indication for network instance of cluster#150
eriknordmark merged 2 commits into
lf-edge:mainfrom
naiming-zededa:naiming-ni-cluster

Conversation

@naiming-zededa

Copy link
Copy Markdown
Contributor
  • It can distinguish the device related network instance or the cluster
    wide network instance, maybe needed for the native kubernetes
    applications usage

- It can distinguish the device related network instance or the cluster
  wide network instance, maybe needed for the native kubernetes
  applications usage

Signed-off-by: naiming-zededa <naiming@zededa.com>
…of cluster

- proto generated files.

Signed-off-by: naiming-zededa <naiming@zededa.com>
// logical network instance, which is required e.g. for app instances that
// may be relocated between cluster nodes. This may be useful for native
// kubernetes applications using the network instance.
bool cluster_wide = 53;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does cluster_wide mean that each device gets its own isolated replica of the network instance (with a different UUID but the same configuration)? If so, I'm not sure cluster_wide is the best name, since the network instance doesn't actually provide connectivity between applications running on different devices.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. this will be no different from today's ENC, same UUID to all the nodes. But this is preparing for native kubernetes applications, which does not have any application reference to detail of NI inside pillar. This is to make a difference from device only NI, like those default NI generated.

@milan-zededa

Copy link
Copy Markdown
Contributor

maybe needed for the native kubernetes applications usage

Should we submit this even if we do not know yet if it is needed? We already have enough unused/deprecated fields from the past as it is.

@naiming-zededa

Copy link
Copy Markdown
Contributor Author

maybe needed for the native kubernetes applications usage

Should we submit this even if we do not know yet if it is needed? We already have enough unused/deprecated fields from the past as it is.

I think even w/ the current cluster NI implementation, it is good to know which NI downloaded is 'cluster-wide', today we don't have this.

@eriknordmark eriknordmark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark
eriknordmark merged commit c173ea7 into lf-edge:main Jul 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants