crossplane: Too many update calls for resource customresourcedefinitions

What happened?

We have recently installed crossplane Things are working fine. The only observation is crossplane making around 178,554 update call on resource customresourcedefinitions in 24 hrs. Is this expected?

crossplane-update

How can we reproduce it?

Enable k8s audit log and check how many update call are made by crossplane for customresourcedefinitions

What environment did it happen in?

Crossplane version: v1.3.0

  • Cloud provider: aws
  • Kubernetes version: 1.19.4

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 15 (12 by maintainers)

Most upvoted comments

@hasheddan We are very much also seeing the above and would love to get this looked at as well any ETA

I took a look at the diffs that we are seeing on CRDs and it looks like it is primarily just in managed fields. I imagine we can safely ignore those when checking for updates:

  		ManagedFields: []v1.ManagedFieldsEntry{
  			{
  				Manager:    "crossplane",
  				Operation:  "Update",
  				APIVersion: "apiextensions.k8s.io/v1",
- 				Time:       s"2021-08-10 21:58:44 +0000 UTC",
+ 				Time:       s"2021-08-10 21:58:54 +0000 UTC",
  				FieldsType: "FieldsV1",
  				FieldsV1: &v1.FieldsV1{
  					Raw: bytes.Join({
  						... // 336 identical bytes
  						`s":{},"f:kind":{},"f:listKind":{},"f:plural":{},"f:shortNames":{`,
  						`},"f:singular":{}},"f:scope":{},"f:versions":{}},"f:status":{"f:`,
+ 						`acceptedNames":{"f:kind":{},"f:plural":{}},"f:conditions":{},"f:`,
  						`storedVersions":{}}}`,
  					}, ""),
  				},
  			},
- 			{
- 				Manager:    "kube-apiserver",
- 				Operation:  "Update",
- 				APIVersion: "apiextensions.k8s.io/v1",
- 				Time:       s"2021-08-10 21:58:44 +0000 UTC",
- 				FieldsType: "FieldsV1",
- 				FieldsV1:   s`{"f:status":{"f:acceptedNames":{"f:categories":{},"f:kind":{},"f:listKind":{},"f:plural":{},"f:shortNames":{},"f:singular":{}},"`...,
- 			},
  		},
  	},