Skip to content

Commit

Permalink
fix: variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
highpon committed Oct 20, 2024
1 parent 1f684d0 commit 3bdb7cf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/index/job/deletion/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ server_config:
cert: /path/to/cert
enabled: false
key: /path/to/key
deletor:
deleter:
index_id: "sample"
agent_port: 8081
agent_name: "vald-agent-ngt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
// limitations under the License.
package config

// IndexDeletor represents the configurations for index deletion.
type IndexDeletor struct {
// IndexDeleter represents the configurations for index deletion.
type IndexDeleter struct {
// IndexID represent target delete ID
IndexID string `json:"index_id" yaml:"index_id"`

Expand Down Expand Up @@ -46,7 +46,7 @@ type IndexDeletor struct {
Discoverer *DiscovererClient `json:"discoverer" yaml:"discoverer"`
}

func (ic *IndexDeletor) Bind() *IndexDeletor {
func (ic *IndexDeleter) Bind() *IndexDeleter {
ic.IndexID = GetActualValue(ic.IndexID)
ic.AgentName = GetActualValue(ic.AgentName)
ic.AgentNamespace = GetActualValue(ic.AgentNamespace)
Expand Down
2 changes: 1 addition & 1 deletion k8s/index/job/deletion/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ data:
- algorithm_info
trace:
enabled: false
deletor:
deleter:
index_id: "sample"
agent_port: 8081
agent_name: "vald-agent"
Expand Down
2 changes: 1 addition & 1 deletion pkg/index/job/deletion/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Data struct {
Observability *config.Observability `json:"observability" yaml:"observability"`

// Deletion represents auto indexing service configurations.
Deletion *config.IndexDeletor `json:"deletor" yaml:"deletor"`
Deletion *config.IndexDeleter `json:"deleter" yaml:"deleter"`
}

// NewConfig load configurations from file path.
Expand Down

0 comments on commit 3bdb7cf

Please sign in to comment.