Skip to content

Make IsNetworkFilterConfig exported#3252

Merged
istio-merge-robot merged 2 commits intoistio:masterfrom
spikecurtis:IsNetworkFilterConfig
Feb 16, 2018
Merged

Make IsNetworkFilterConfig exported#3252
istio-merge-robot merged 2 commits intoistio:masterfrom
spikecurtis:IsNetworkFilterConfig

Conversation

@spikecurtis
Copy link
Copy Markdown
Member

Before this change, it is hard to import the v1 API structures and define
a new custom NetworkFilterConfig in an external module. A NetworkFilterConfig
needs to implement isNetworkFilterConfig, but that method is private to the v1
module. This change makes it exported.

This is useful for people who want to write Pilot webhooks that mutate
the xDS data---the relevant data structures are already defined.

Signed-off-by: Spike Curtis spike@tigera.io

Before this change, it is hard to import the v1 API structures and define
a new custom NetworkFilterConfig in an external module.  A NetworkFilterConfig
needs to implement isNetworkFilterConfig, but that method is private to the v1
module.  This change makes it exported.

This is useful for people who want to write Pilot webhooks that mutate
the xDS data---the relevant data structures are already defined.

Signed-off-by: Spike Curtis <spike@tigera.io>
@kyessenov
Copy link
Copy Markdown
Contributor

Due to the poor linter subtyping inference, you need to add a comment on every IstNetworkFilterConfig implementation.

Signed-off-by: Spike Curtis <spike@tigera.io>
@spikecurtis
Copy link
Copy Markdown
Member Author

@kyessenov fixed!

@kyessenov
Copy link
Copy Markdown
Contributor

kyessenov commented Feb 15, 2018 via email

@istio-merge-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kyessenov

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@istio-merge-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@istio-merge-robot
Copy link
Copy Markdown

Automatic merge from submit-queue.

@istio-merge-robot istio-merge-robot merged commit 1def36a into istio:master Feb 16, 2018
PetrMc pushed a commit to PetrMc/istio-petrmc-upstream-fork that referenced this pull request Jan 14, 2026
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.

6 participants