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

Error in helm chart. Namespace in role and rolebinding is wrong #454

Closed
oleksiyp opened this issue Oct 12, 2024 · 7 comments
Closed

Error in helm chart. Namespace in role and rolebinding is wrong #454

oleksiyp opened this issue Oct 12, 2024 · 7 comments

Comments

@oleksiyp
Copy link

oleksiyp commented Oct 12, 2024

# Source: trust-manager/templates/rolebinding.yaml
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: trust-manager
  namespace: cert-manager
  labels:
    app.kubernetes.io/name: trust-manager
    helm.sh/chart: trust-manager-v0.12.0
    app.kubernetes.io/instance: trust-manager
    app.kubernetes.io/version: "v0.12.0"
    app.kubernetes.io/managed-by: Helm
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: trust-manager
subjects:
- kind: ServiceAccount
  name: trust-manager
  namespace: infra

image

@oleksiyp oleksiyp changed the title Error in helm chart. Namespace in rolebinding is wrong Error in helm chart. Namespace in role and rolebinding is wrong Oct 12, 2024
@erikgb
Copy link
Contributor

erikgb commented Oct 12, 2024

@oleksiyp Why do you think the namespace is wrong? There are two relevant namespaces for trust-manager:

  • Namespace where trust-manager is installed
  • Namespace where sources to trust bundles are looked up

@oleksiyp
Copy link
Author

oleksiyp commented Oct 13, 2024 via email

@erikgb
Copy link
Contributor

erikgb commented Oct 13, 2024

It is not hard-coded. A user can set both namespaces using values.

Are you ok to close this issue?

@oleksiyp
Copy link
Author

oleksiyp commented Oct 13, 2024 via email

@oleksiyp
Copy link
Author

oleksiyp commented Oct 13, 2024 via email

@erikgb
Copy link
Contributor

erikgb commented Oct 13, 2024

We might do some changes in this area. See #60 (comment). But I am going to close this issue as it is described. A user can select the trust namespace independently of the Helm release namespace.

/close

@cert-manager-prow
Copy link
Contributor

@erikgb: Closing this issue.

In response to this:

We might do some changes in this area. See #60 (comment). But I am going to close this issue as it is described. A user can select the trust namespace independently of the Helm release namespace.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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

No branches or pull requests

2 participants