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

use all statuses, add fallback annotation for app #296

Merged
merged 1 commit into from
May 27, 2024
Merged

use all statuses, add fallback annotation for app #296

merged 1 commit into from
May 27, 2024

Conversation

matthyx
Copy link
Contributor

@matthyx matthyx commented May 27, 2024

fixing nits from previous PR

@matthyx matthyx requested a review from dwertent May 27, 2024 06:06
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
@@ -48,15 +45,15 @@ func (k *IGK8sClientMock) GetNonRunningContainers(pod *corev1.Pod) []string {

// GetRunningContainers returns a list of the containers of a given Pod that are running.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't even check if the status is running here @dwertent


labels := map[string]string{}
for k, v := range pod.ObjectMeta.Labels {
labels[k] = v
}

containerStatuses := append([]v1.Container{}, pod.Spec.InitContainers...)
containerStatuses = append(containerStatuses, pod.Spec.Containers...)
containerStatuses := slices.Concat(pod.Spec.InitContainers,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very fancy 😉

Copy link

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx matthyx merged commit 789d536 into main May 27, 2024
16 checks passed
@matthyx matthyx deleted the profiles branch May 27, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants