Skip to content

Commit

Permalink
Fix operator protobug type definitions (#3579)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukclivecox authored Sep 13, 2021
1 parent c5f9904 commit e833451
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ type SeldonDeploymentSpec struct {
Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,6,opt,name=protocol"`
Transport Transport `json:"transport,omitempty" protobuf:"bytes,7,opt,name=transport"`
Replicas *int32 `json:"replicas,omitempty" protobuf:"bytes,8,opt,name=replicas"`
ServerType ServerType `json:"serverType,omitempty" protobuf:"bytes,8,opt,name=serverType"`
ServerType ServerType `json:"serverType,omitempty" protobuf:"bytes,9,opt,name=serverType"`
}

type SSL struct {
Expand All @@ -233,7 +233,7 @@ type PredictorSpec struct {
Traffic int32 `json:"traffic,omitempty" protobuf:"bytes,9,opt,name=traffic"`
Explainer *Explainer `json:"explainer,omitempty" protobuf:"bytes,10,opt,name=explainer"`
Shadow bool `json:"shadow,omitempty" protobuf:"bytes,11,opt,name=shadow"`
SSL *SSL `json:"ssl,omitempty" protobuf:"bytes,11,opt,name=ssl"`
SSL *SSL `json:"ssl,omitempty" protobuf:"bytes,12,opt,name=ssl"`
}

type Protocol string
Expand Down Expand Up @@ -287,7 +287,7 @@ type Explainer struct {
Endpoint *Endpoint `json:"endpoint,omitempty" protobuf:"bytes,6,opt,name=endpoint"`
EnvSecretRefName string `json:"envSecretRefName,omitempty" protobuf:"bytes,7,opt,name=envSecretRefName"`
StorageInitializerImage string `json:"storageInitializerImage,omitempty" protobuf:"bytes,8,opt,name=storageInitializerImage"`
Replicas *int32 `json:"replicas,omitempty" protobuf:"string,4,opt,name=replicas"`
Replicas *int32 `json:"replicas,omitempty" protobuf:"string,9,opt,name=replicas"`
}

// ObjectMeta is a copy of the "k8s.io/apimachinery/pkg/apis/meta/v1" ObjectMeta.
Expand Down Expand Up @@ -581,8 +581,7 @@ type PredictiveUnit struct {
ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,9,opt,name=serviceAccountName"`
EnvSecretRefName string `json:"envSecretRefName,omitempty" protobuf:"bytes,10,opt,name=envSecretRefName"`
StorageInitializerImage string `json:"storageInitializerImage,omitempty" protobuf:"bytes,11,opt,name=storageInitializerImage"`
// Request/response payload logging. v2alpha1 feature that is added to v1 for backwards compatibility while v1 is the storage version.
Logger *Logger `json:"logger,omitempty"`
Logger *Logger `json:"logger,omitempty" protobuf:"bytes,12,opt,name=logger"`
}

type LoggerMode string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9360,9 +9360,8 @@ spec:
implementation:
type: string
logger:
description: Request/response payload logging. v2alpha1 feature
that is added to v1 for backwards compatibility while v1
is the storage version.
description: Logger provides optional payload logging for
all endpoints
properties:
mode:
description: What payloads to log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9636,9 +9636,8 @@ spec:
implementation:
type: string
logger:
description: Request/response payload logging. v2alpha1
feature that is added to v1 for backwards compatibility
while v1 is the storage version.
description: Logger provides optional payload logging for
all endpoints
properties:
mode:
description: What payloads to log
Expand Down Expand Up @@ -19585,9 +19584,8 @@ spec:
implementation:
type: string
logger:
description: Request/response payload logging. v2alpha1
feature that is added to v1 for backwards compatibility
while v1 is the storage version.
description: Logger provides optional payload logging for
all endpoints
properties:
mode:
description: What payloads to log
Expand Down Expand Up @@ -29534,9 +29532,8 @@ spec:
implementation:
type: string
logger:
description: Request/response payload logging. v2alpha1
feature that is added to v1 for backwards compatibility
while v1 is the storage version.
description: Logger provides optional payload logging for
all endpoints
properties:
mode:
description: What payloads to log
Expand Down

0 comments on commit e833451

Please sign in to comment.