This repository was archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
Provider produced inconsistent result after apply - incorrect object attributes #252
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Terraform, Provider, Kubernetes versions
Terraform version: v1.0.2
Provider version: v0.5.0
Kubernetes version: v1.21.2+k3s1
Affected Resource(s)
kubernetes_manifest
Terraform Configuration Files
resource "kubernetes_manifest" "test" {
manifest = {
apiVersion = "helm.toolkit.fluxcd.io/v2beta1"
kind = "HelmRelease"
metadata = {
name = "redis"
namespace = "flux-system"
}
spec = {
chart = {
spec = {
chart = "bitnami/redis"
interval = "30m0s"
sourceRef = {
apiVersion = "source.toolkit.fluxcd.io/v1beta1"
kind = "HelmRepository"
name = "helm-repository-bitnami"
namespace = "flux-system"
}
valuesFile = null
valuesFiles = []
version = "*"
}
}
interval = "30m0s"
releaseName = "redis"
values = {}
}
}
}Steps to Reproduce
Expected Behavior
HelmRelease CR is created from a flux HelmRelease CRD.
Actual Behavior
https://gist.github.com/cameojokes/cb898ac40ad53e8c5f60f0bb5ab6a095
Important Factoids
- Same issue on EKS, debugging locally with k3d/k3s.
Here's the resource as it exists on the server:
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
creationTimestamp: "2021-07-21T22:08:00Z"
finalizers:
- finalizers.fluxcd.io
generation: 2
managedFields:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
fieldsType: FieldsV1
fieldsV1:
f:spec:
f:chart:
f:spec:
f:chart: {}
f:interval: {}
f:sourceRef:
f:apiVersion: {}
f:kind: {}
f:name: {}
f:namespace: {}
f:version: {}
f:interval: {}
f:releaseName: {}
f:values: {}
manager: Terraform
operation: Apply
time: "2021-07-21T22:08:00Z"
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:finalizers:
.: {}
v:"finalizers.fluxcd.io": {}
f:status:
.: {}
f:conditions: {}
f:failures: {}
f:helmChart: {}
f:observedGeneration: {}
manager: helm-controller
operation: Update
time: "2021-07-21T22:08:00Z"
name: redis
namespace: flux-system
resourceVersion: "176650"
uid: d247bacc-c08f-4996-ac5d-5f6ed61bde2c
spec:
chart:
spec:
chart: bitnami/redis
interval: 30m0s
sourceRef:
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
name: helm-repository-bitnami
namespace: flux-system
version: '*'
interval: 30m0s
releaseName: redis
values: {}
status:
conditions:
- lastTransitionTime: "2021-07-21T22:08:00Z"
message: HelmChart 'flux-system/flux-system-redis' is not ready
reason: ArtifactFailed
status: "False"
type: Ready
failures: 2
helmChart: flux-system/flux-system-redis
observedGeneration: 2References
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
npapapietro
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working