Skip to content

CRD changes

Compare
Choose a tag to compare
@davidkarlsen davidkarlsen released this 06 Aug 11:33
· 411 commits to master since this release
b2fcdb6
  • Change CRD field from PodSpec to PodTemplateSpec in order to cater for metadata - making it possible to scrape with Prometheus
  • Updated the sample resource which adds a prometheus exporter container
  • Fix CRD documentation and validation
  • Add status field: currentPoolSize
  • Add printercolumn to show current size
  • Note that you can get validation errors on the updated CRD in older clusters [1] - this can be skipped when installing with helm with --disable-openapi-validation or skip CRDs with helm altogether with --skip-crds and apply the CRD manually with --validate=false

[1]

error: error validating "config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml": error validating data: [ValidationError(CustomResourceDefinition.spec.validation.openAPIV3Schema.properties.spec.properties.podTemplateSpec.properties.spec.properties.topologySpreadConstraints): unknown field "x-kubernetes-list-map-keys" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps, ValidationError(CustomResourceDefinition.spec.validation.openAPIV3Schema.properties.spec.properties.podTemplateSpec.properties.spec.properties.topologySpreadConstraints): unknown field "x-kubernetes-list-type" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps]; if you choose to ignore these errors, turn validation off with --validate=false