-
Can someone explain it to me? I can make a pull request with that information. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Nodefilter starts with one of the existing roles (group). Regex used to match: And then you can define a subset in brackets
But using list as:
Why? |
Beta Was this translation helpful? Give feedback.
-
I landed on this page while trying to understand nodefilter. I hadn't seen that used elsewhere in Docker or Kubernetes. It appears to be a k3d-specific feature. It makes a little more sense to me, especially after looking at the links @bukowa posted. But I do think it would be a good idea to have a doc page that explains nodefilter clearly. |
Beta Was this translation helpful? Give feedback.
Nodefilter starts with one of the existing roles (group).
https://github.com/rancher/k3d/blob/601bef45d7c9ed70be4afb534aa780ac6ecef7fd/pkg/types/types.go#L79-L85
Or
all
:https://github.com/rancher/k3d/blob/092f26a4e27eaf9d3a5bc32b249f897f448bc1ce/pkg/util/filter.go#L76-L77
Regex used to match:
https://github.com/rancher/k3d/blob/092f26a4e27eaf9d3a5bc32b249f897f448bc1ce/pkg/util/filter.go#L35
And then you can define a subset in brackets
[]
:server[0,1,2]
https://github.com/rancher/k3d/blob/092f26a4e27eaf9d3a5bc32b249f897f448bc1ce/pkg/util/filter.go#L98-L99
agent[0:3]
https://github.com/rancher/k3d/blob/092f26a4e27eaf9d3a5bc32b249f897f448bc1ce/pkg/util/filter.go#L116-L117
all[*]
https://git…