You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/thv-operator/api/v1alpha1/mcpremoteproxy_types.go
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,10 @@ type HeaderFromSecret struct {
34
34
}
35
35
36
36
// MCPRemoteProxySpec defines the desired state of MCPRemoteProxy
37
+
//
38
+
// +kubebuilder:validation:XValidation:rule="!(has(self.oidcConfig) && has(self.oidcConfigRef))",message="oidcConfig and oidcConfigRef are mutually exclusive; use oidcConfigRef to reference a shared MCPOIDCConfig"
39
+
//
40
+
//nolint:lll // CEL validation rules exceed line length limit
37
41
typeMCPRemoteProxySpecstruct {
38
42
// RemoteURL is the URL of the remote MCP server to proxy
39
43
// +kubebuilder:validation:Required
@@ -51,10 +55,18 @@ type MCPRemoteProxySpec struct {
51
55
// +kubebuilder:default=streamable-http
52
56
Transportstring`json:"transport,omitempty"`
53
57
54
-
// OIDCConfig defines OIDC authentication configuration for the proxy
55
-
// This validates incoming tokens from clients. Required for proxy mode.
56
-
// +kubebuilder:validation:Required
57
-
OIDCConfigOIDCConfigRef`json:"oidcConfig"`
58
+
// OIDCConfig defines OIDC authentication configuration for the proxy.
59
+
// Deprecated: Use OIDCConfigRef to reference a shared MCPOIDCConfig resource instead.
60
+
// This field will be removed in v1beta1. OIDCConfig and OIDCConfigRef are mutually exclusive.
0 commit comments