Closed nsilve closed 4 months ago
Hi @nsilve - what kubernetes provider version you are using ?
I started observing this issue when upgrading recently provider-kubernetes from v0.9.0 to v0.10.0 and crossplane from v1.14.1 to v1.14.5. the following object with patchFrom hangs
- name: dp-cluster-secret
base:
apiVersion: kubernetes.crossplane.io/v1alpha1
kind: Object
metadata:
name: dp-cluster-secret
spec:
providerConfigRef:
name: kube-in-cluster-provider-conf
forProvider:
manifest:
apiVersion: v1
kind: Secret
metadata:
namespace: crossplane
type: Opaque
references:
- patchesFrom:
apiVersion: kubernetes.crossplane.io/v1alpha1
kind: Object
namespace: crossplane
name: dp-secret-object
fieldPath: status.atProvider.manifest.data.token
toFieldPath: data.kubeApiBearerToken
- patchesFrom:
apiVersion: v1
kind: Secret
namespace: crossplane
name: dp-secret
fieldPath: data.kubeconfig
toFieldPath: data.kubeconfig
I was using v0.9.0
version of Kubernetes provider.
What happened?
Objects including
patchesFrom
references to object properties are not reconciled automatically.How can we reproduce it?
Define a CRD with the following schema:
and another one with the following one:
Use a composition to create an object of the 2nd schema using patch reference from an object of the 1st one:
When the desired object is created, append to the
dst
schema another field (which exists insrc
schema):The
dst-obj
is not updated to include that newly added field automatically. The manual workaround which does the job is to e.g. update a label of thedst-obj
object into the provider object definition which triggers its reconciliation (sodst-obj
field2
value is updated to the one thatfield2
field ofsrc
object has).What environment did it happen in?
v1.13.2
AWS
v1.26.10-eks-4f4795d
EKS
Amazon Linux 2
5.10.192-183.736.amzn2.x86_64