Skip to content

remove: delete namespace definition for controller-manager#56

Merged
iasthc merged 1 commit intomainfrom
remove-namespace
Mar 31, 2026
Merged

remove: delete namespace definition for controller-manager#56
iasthc merged 1 commit intomainfrom
remove-namespace

Conversation

@iasthc
Copy link
Copy Markdown
Member

@iasthc iasthc commented Mar 31, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 31, 2026 14:22
@iasthc iasthc merged commit b69fa68 into main Mar 31, 2026
11 checks passed
@iasthc iasthc deleted the remove-namespace branch March 31, 2026 14:23
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the Namespace resource definition from the manager configuration. Feedback indicates that this change could lead to deployment failures if the target namespace is not already present in the cluster, as Kustomize does not automatically create the namespace object.

I am having trouble creating individual review comments. Click here to see my feedback.

config/manager/manager.yaml (1-9)

medium

Removing the Namespace resource definition will prevent the namespace from being created during deployment. While config/default/kustomization.yaml specifies a target namespace (otterscale-system), Kustomize does not automatically generate a Namespace object; it only updates the namespace field of other resources. This change will cause kubectl apply -k to fail if the namespace does not already exist in the cluster. If the intention is to keep the manifests self-contained, this resource should be retained or moved to a separate file (e.g., config/default/namespace.yaml) and included in the kustomization resources.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the Namespace resource previously embedded in the controller manager manifest, leaving only the Deployment in config/manager/manager.yaml.

Changes:

  • Removed the Namespace manifest from config/manager/manager.yaml so the file no longer creates the controller manager namespace.
Comments suppressed due to low confidence (1)

config/manager/manager.yaml:5

  • Removing the Namespace manifest means make deploy (Makefile pipes kustomize build config/default into kubectl apply) will fail on a fresh cluster unless the target namespace already exists. Consider either (a) adding a Namespace resource for otterscale-system (matching config/default/kustomization.yaml) into the rendered manifests, or (b) updating the deploy/install flow/docs to create the namespace before applying resources.
apiVersion: apps/v1
kind: Deployment
metadata:
  name: controller-manager
  namespace: system

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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