kube-linter errors on object in default namespace #557

Closed
opened 2023-11-06 11:28:32 +00:00 by alexf · 4 comments
alexf commented 2023-11-06 11:28:32 +00:00 (Migrated from gitea.com)

As prevous kube-score issues, found out this "use-namespace" kube-score issue.
Bellow three objects are not guarded on namespace.
Although helm defaults all objects that have no namespace field to install namespace, would be nice to guard these objects and fulfill this check.
Unfortunately this one can't be mitigated through config or umbrella chart changes.

KubeLinter 0.6.4

<standard input>: (object: <no namespace>/release-name-indigo-gitserver-http /v1, Kind=Service) object in default namespace (check: use-namespace, remediation: Create namespaces for objects in your deployment.)

<standard input>: (object: <no namespace>/release-name-indigo-gitserver-ssh /v1, Kind=Service) object in default namespace (check: use-namespace, remediation: Create namespaces for objects in your deployment.)

<standard input>: (object: <no namespace>/release-name-indigo-gitserver apps/v1, Kind=Deployment) object in default namespace (check: use-namespace, remediation: Create namespaces for objects in your deployment.)

Error: found 3 lint errors
As prevous kube-score issues, found out this "use-namespace" kube-score issue. Bellow three objects are not guarded on namespace. Although helm defaults all objects that have no namespace field to install namespace, would be nice to guard these objects and fulfill this check. Unfortunately this one can't be mitigated through config or umbrella chart changes. ``` KubeLinter 0.6.4 <standard input>: (object: <no namespace>/release-name-indigo-gitserver-http /v1, Kind=Service) object in default namespace (check: use-namespace, remediation: Create namespaces for objects in your deployment.) <standard input>: (object: <no namespace>/release-name-indigo-gitserver-ssh /v1, Kind=Service) object in default namespace (check: use-namespace, remediation: Create namespaces for objects in your deployment.) <standard input>: (object: <no namespace>/release-name-indigo-gitserver apps/v1, Kind=Deployment) object in default namespace (check: use-namespace, remediation: Create namespaces for objects in your deployment.) Error: found 3 lint errors ```
justusbunsi commented 2023-11-06 19:15:30 +00:00 (Migrated from gitea.com)

Should be a oneliner in each resource template. Fancy opening a PR for it?

Should be a oneliner in each resource template. Fancy opening a PR for it?
alexf commented 2023-11-07 08:53:06 +00:00 (Migrated from gitea.com)

Sure, I'll log a PR.

Sure, I'll log a PR.
pat-s commented 2024-02-23 07:34:16 +00:00 (Migrated from gitea.com)

@alexf Gentle ping.

@alexf Gentle ping.
justusbunsi commented 2024-05-03 17:18:08 +00:00 (Migrated from gitea.com)

Essentially duplicate of #623 and #630. Although this issues came first, I am closing it in good faith that either #623 and #630 will actually resolve these findings.

EDIT: Whoops, referenced wrong issue. :D

Essentially duplicate of #623 and #630. Although this issues came first, I am closing it in good faith that either #623 and #630 will actually resolve these findings. EDIT: Whoops, referenced wrong issue. :D
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunny/helm-chart#557
No description provided.