Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling #385

Merged
merged 1 commit into from
Oct 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy-all-in-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ spec:
name: botkube-configmap
- secret:
name: botkube-communication-secret
# run as non privilaged user
# run as non privileged user
securityContext:
runAsUser: 101
runAsGroup: 101
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func RegisterInformers(c *config.Config, notifiers []notify.Notifier) {
var eventObj coreV1.Event
err := utils.TransformIntoTypedObject(obj.(*unstructured.Unstructured), &eventObj)
if err != nil {
log.Errorf("Unable to tranform object type: %v, into type: %v", reflect.TypeOf(obj), reflect.TypeOf(eventObj))
log.Errorf("Unable to transform object type: %v, into type: %v", reflect.TypeOf(obj), reflect.TypeOf(eventObj))
}
_, err = cache.MetaNamespaceKeyFunc(obj)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func New(object interface{}, eventType config.EventType, resource, clusterName s
var eventObj coreV1.Event
err := utils.TransformIntoTypedObject(object.(*unstructured.Unstructured), &eventObj)
if err != nil {
log.Errorf("Unable to tranform object type: %v, into type: %v", reflect.TypeOf(object), reflect.TypeOf(eventObj))
log.Errorf("Unable to transform object type: %v, into type: %v", reflect.TypeOf(object), reflect.TypeOf(eventObj))
}
event.Reason = eventObj.Reason
event.Messages = append(event.Messages, eventObj.Message)
Expand Down
2 changes: 1 addition & 1 deletion pkg/filterengine/filters/image_tag_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (f ImageTagChecker) Run(object interface{}, event *events.Event) {
var podObj coreV1.Pod
err := utils.TransformIntoTypedObject(object.(*unstructured.Unstructured), &podObj)
if err != nil {
log.Errorf("Unable to tranform object type: %v, into type: %v", reflect.TypeOf(object), reflect.TypeOf(podObj))
log.Errorf("Unable to transform object type: %v, into type: %v", reflect.TypeOf(object), reflect.TypeOf(podObj))
}

// Check image tag in initContainers
Expand Down
2 changes: 1 addition & 1 deletion pkg/filterengine/filters/ingress_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (iv IngressValidator) Run(object interface{}, event *events.Event) {
var ingressObj v1beta1.Ingress
err := utils.TransformIntoTypedObject(object.(*unstructured.Unstructured), &ingressObj)
if err != nil {
log.Errorf("Unable to tranform object type: %v, into type: %v", reflect.TypeOf(object), reflect.TypeOf(ingressObj))
log.Errorf("Unable to transform object type: %v, into type: %v", reflect.TypeOf(object), reflect.TypeOf(ingressObj))
}

ingNs := ingressObj.ObjectMeta.Namespace
Expand Down
2 changes: 1 addition & 1 deletion pkg/filterengine/filters/pod_label_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type PodLabelChecker struct {
// Register filter
func init() {
filterengine.DefaultFilterEngine.Register(PodLabelChecker{
Description: "Checks and adds recommedations if labels are missing in the pod specs.",
Description: "Checks and adds recommendations if labels are missing in the pod specs.",
})
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func GetObjectMetaData(obj interface{}) metaV1.ObjectMeta {
var eventObj coreV1.Event
err := TransformIntoTypedObject(obj.(*unstructured.Unstructured), &eventObj)
if err != nil {
log.Errorf("Unable to tranform object type: %v, into type: %v", reflect.TypeOf(obj), reflect.TypeOf(eventObj))
log.Errorf("Unable to transform object type: %v, into type: %v", reflect.TypeOf(obj), reflect.TypeOf(eventObj))
}
if len(objectMeta.Annotations) == 0 {
objectMeta.Annotations = ExtractAnnotationsFromEvent(&eventObj)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/command/botkube.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (c *context) testBotkubeCommand(t *testing.T) {
"NamespaceChecker true Checks if event belongs to blocklisted namespaces and filter them.\n" +
"NodeEventsChecker true Sends notifications on node level critical events.\n" +
"ObjectAnnotationChecker true Checks if annotations botkube.io/* present in object specs and filters them.\n" +
"PodLabelChecker true Checks and adds recommedations if labels are missing in the pod specs.\n" +
"PodLabelChecker true Checks and adds recommendations if labels are missing in the pod specs.\n" +
"ImageTagChecker true Checks and adds recommendation if 'latest' image tag is used for container image.\n" +
"IngressValidator true Checks if services and tls secrets used in ingress specs are available.\n",
},
Expand Down