Skip to content

Commit

Permalink
skip kubelet-enabled tests until fluent#134 is resolved
Browse files Browse the repository at this point in the history
Signed-off-by: ryanohnemus <[email protected]>
  • Loading branch information
ryanohnemus committed Jan 25, 2024
1 parent c725d35 commit 97d5441
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
14 changes: 7 additions & 7 deletions tests/kubernetes-plugins/full.bats
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +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" {
# 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
#}
@test "test fluent-bit adds kubernetes pod and namespace labels to records - kubelet enabled" {
skip "kubelet-enabled test skipped until https://github.com/fluent/fluent-bit-ci/issues/134 is resolved"
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
}
31 changes: 15 additions & 16 deletions tests/kubernetes-plugins/resources/fluentbit-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +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: |
[OUTPUT]
Expand Down

0 comments on commit 97d5441

Please sign in to comment.