Skip to content

Agengateway plugin statuses refactor #12921

@npolshakova

Description

@npolshakova

Clean up the agentgateway plugin definitions to reuse kclient between plugin and Status, because they are clients for the same API resource.

Examples:

This is similar to the pattern we use in the envoy plugins:

	return sdk.Plugin{
		ContributesPolicies: map[schema.GroupKind]sdk.PolicyPlugin{
			wellknown.TrafficPolicyGVK.GroupKind(): {
                                ....
				GetPolicyStatus:   getPolicyStatusFn(cli),
				PatchPolicyStatus: patchPolicyStatusFn(cli),
			},
		},

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions