Skip to content

Commit

Permalink
disable kubelet test
Browse files Browse the repository at this point in the history
Signed-off-by: ryanohnemus <[email protected]>
  • Loading branch information
ryanohnemus committed Jan 23, 2024
1 parent 843743e commit c725d35
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
13 changes: 7 additions & 6 deletions tests/kubernetes-plugins/full.bats
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ function check_fluent_output_has_namespace_labels() {
check_fluent_output_has_namespace_labels true
}

@test "test fluent-bit adds kubernetes pod and namespace labels to records - kubelet enabled" {
set_fluent_bit_pod_name
create_test_pod "k8s-pod-and-namespace-label-kubelet-tester"
check_fluent_output_has_pod_labels true
check_fluent_output_has_namespace_labels true
}
#@test "test fluent-bit adds kubernetes pod and namespace labels to records - kubelet enabled" {
# run kubectl get
# set_fluent_bit_pod_name
# create_test_pod "k8s-pod-and-namespace-label-kubelet-tester"
# check_fluent_output_has_pod_labels true
# check_fluent_output_has_namespace_labels true
#}
30 changes: 15 additions & 15 deletions tests/kubernetes-plugins/resources/fluentbit-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@ config:
Labels On
Namespace_labels On
[FILTER]
Name kubernetes
Alias k8s_namespace_and_pod_labels_with_kubelet
Match kube.*k8s-pod-and-namespace-label-kubelet-tester*
Kube_URL https://kubernetes.default.svc:443
Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token
Kube_Tag_Prefix kube.var.log.containers.
Merge_Log Off
Annotations Off
Labels On
Use_Kubelet On
Kubelet_Host ${NODE_IP}
tls.verify Off
Namespace_labels On
#[FILTER]
# Name kubernetes
# Alias k8s_namespace_and_pod_labels_with_kubelet
# Match kube.*k8s-pod-and-namespace-label-kubelet-tester*
# Kube_URL https://kubernetes.default.svc:443
# Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
# Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token
# Kube_Tag_Prefix kube.var.log.containers.
# Merge_Log Off
# Annotations Off
# Labels On
# Use_Kubelet On
# Kubelet_Host ${NODE_IP}
# tls.verify Off
# Namespace_labels On
outputs: |
Expand Down

0 comments on commit c725d35

Please sign in to comment.