Skip to content

Commit

Permalink
feat(persistentevent): allow es user and passowrd; update image versi…
Browse files Browse the repository at this point in the history
…on (tkestack#903)

[+] add domain regex, es auth

add(logc): es password base64

add(persistentevent): UI support ES Auth

 add(persistentevent): psw encode, %{} to fluentd

add(persistentevent): fixed input style width

ES: es detection

add(web): logc es detection, http request timeout

add(web): persistentEvent es detection

add(web): ES detection button disabled

add(web): es host and index required

feat(es auth): update pb

Co-authored-by: yiwenshao <[email protected]>
  • Loading branch information
breakliu and yiwenshao committed Nov 17, 2020
1 parent 627ed57 commit 02b5b3b
Show file tree
Hide file tree
Showing 49 changed files with 1,688 additions and 438 deletions.
1 change: 1 addition & 0 deletions api/logagent/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&LogFileTree{},
&LogFileContent{},
&LogFileProxyOptions{},
&LogEsDetection{},
&ConfigMap{},
&ConfigMapList{},
)
Expand Down
11 changes: 11 additions & 0 deletions api/logagent/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,18 @@ type LogFileProxyOptions struct {
Container string `json:"container,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// LogEsDetection
type LogEsDetection struct {
metav1.TypeMeta `json:",inline"`

Scheme string `json:"scheme,omitempty"`
IP string `json:"ip,omitempty"`
Port string `json:"port,omitempty"`
User string `json:"user,omitempty"`
Password string `json:"password,omitempty"`
}

// +genclient
// +genclient:nonNamespaced
Expand Down
463 changes: 396 additions & 67 deletions api/logagent/v1/generated.pb.go

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions api/logagent/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/logagent/v1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&LogFileTree{},
&LogFileContent{},
&LogFileProxyOptions{},
&LogEsDetection{},
&ConfigMap{},
&ConfigMapList{},
)
Expand Down
13 changes: 13 additions & 0 deletions api/logagent/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,19 @@ type LogFileProxyOptions struct {
Container string `json:"container,omitempty" protobuf:"bytes,3,opt,name=container"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// LogEsDetection
type LogEsDetection struct {
metav1.TypeMeta `json:",inline"`

Scheme string `json:"scheme,omitempty" protobuf:"bytes,1,opt,name=scheme"`
IP string `json:"ip,omitempty" protobuf:"bytes,2,opt,name=ip"`
Port string `json:"port,omitempty" protobuf:"bytes,3,opt,name=port"`
User string `json:"user,omitempty" protobuf:"bytes,4,opt,name=user"`
Password string `json:"password,omitempty" protobuf:"bytes,5,opt,name=password"`
}

// +genclient
// +genclient:nonNamespaced
// +genclient:skipVerbs=deleteCollection
Expand Down
8 changes: 8 additions & 0 deletions api/logagent/v1/types_swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions api/logagent/v1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions api/logagent/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions api/logagent/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions api/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/platform/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,9 @@ type StorageBackEndES struct {
Port int32
Scheme string
IndexName string
User string
Password string
ReserveDays int32
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
Loading

0 comments on commit 02b5b3b

Please sign in to comment.