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

Deploying helm v3 charts with multiple resources defined results in constant deletion + recreation of resources #881

Open
glentakahashi opened this issue Jul 29, 2020 · 0 comments

Comments

@glentakahashi
Copy link

glentakahashi commented Jul 29, 2020

When using helm v3 (doesn't happen with v2) with multiple resources defined per yaml, kots will continuously try to recreate and destroy resources in those yaml files.
https://kubernetes.io/docs/concepts/cluster-administration/manage-deployment/#organizing-resource-configurations

Example:
For this config:

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: Role
metadata:
  name: kernel-manager
rules:
  - apiGroups:
      - ""
    resources:
      - pods
    verbs:
      - get
      - list
      - create
      - update
      - patch
      - delete
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
  name: kapprover
rules:
  - apiGroups: ["certificates.k8s.io"]
    resources: ["certificatesigningrequests"]
    verbs: ["get", "list", "delete", "watch"]
  - apiGroups: ["certificates.k8s.io"]
    resources: ["certificatesigningrequests/approval"]
    verbs: ["update"]
  - apiGroups: [""]
    resources: ["pods", "services"]
    verbs: ["list"]

This is what appears in the Kots "view files"
Screen Shot 2020-07-29 at 9 33 40 AM

And every time a new release is triggered, this is the diff always, even if the files haven't changed at all:
Screen Shot 2020-07-29 at 9 34 24 AM

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

1 participant