@@ -80,28 +80,37 @@ kubectl -n crossplane-system logs <name-of-provider-pod>
8080
8181All providers maintained by the Crossplane community mirror Crossplane's support
8282of the ` --debug ` flag. The easiest way to set flags on a provider is to create a
83- ` ControllerConfig ` and reference it from the ` Provider ` :
83+ ` DeploymentRuntimeConfig ` and reference it from the ` Provider ` :
8484
8585``` yaml
86- apiVersion : pkg.crossplane.io/v1alpha1
87- kind : ControllerConfig
86+ apiVersion : pkg.crossplane.io/v1beta1
87+ kind : DeploymentRuntimeConfig
8888metadata :
8989 name : debug-config
9090spec :
91- args :
92- - --debug
91+ deploymentTemplate :
92+ spec :
93+ selector : {}
94+ template :
95+ spec :
96+ containers :
97+ - name : package-runtime
98+ args :
99+ - --debug
93100---
94101apiVersion : pkg.crossplane.io/v1
95102kind : Provider
96103metadata :
97104 name : provider-aws
98105spec :
99106 package : xpkg.upbound.io/crossplane-contrib/provider-aws:v0.33.0
100- controllerConfigRef :
107+ runtimeConfigRef :
108+ apiVersion : pkg.crossplane.io/v1beta1
109+ kind : DeploymentRuntimeConfig
101110 name : debug-config
102111` ` `
103112
104- > Note that a reference to a ` ControllerConfig ` can be added to an already
113+ > Note that a reference to a ` DeploymentRuntimeConfig ` can be added to an already
105114> installed `Provider` and it will update its `Deployment` accordingly.
106115
107116# # Compositions and composite resource definition
@@ -335,29 +344,35 @@ kubectl -n crossplane-system scale --replicas=1 deployment/crossplane
335344# # Pausing Providers
336345
337346Providers can also be paused when troubleshooting an issue or orchestrating a
338- complex migration of resources. Creating and referencing a `ControllerConfig ` is
339- the easiest way to scale down a provider, and the `ControllerConfig ` can be
347+ complex migration of resources. Creating and referencing a `DeploymentRuntimeConfig ` is
348+ the easiest way to scale down a provider, and the `DeploymentRuntimeConfig ` can be
340349modified or the reference can be removed to scale it back up :
341350
342351` ` ` yaml
343- apiVersion: pkg.crossplane.io/v1alpha1
344- kind: ControllerConfig
352+ apiVersion: pkg.crossplane.io/v1beta1
353+ kind: DeploymentRuntimeConfig
345354metadata:
346355 name: scale-config
347356spec:
348- replicas: 0
357+ deploymentTemplate:
358+ spec:
359+ selector: {}
360+ replicas: 0
361+ template: {}
349362---
350363apiVersion: pkg.crossplane.io/v1
351364kind: Provider
352365metadata:
353366 name: provider-aws
354367spec:
355368 package: xpkg.upbound.io/crossplane-contrib/provider-aws:v0.33.0
356- controllerConfigRef:
369+ runtimeConfigRef:
370+ apiVersion: pkg.crossplane.io/v1beta1
371+ kind: DeploymentRuntimeConfig
357372 name: scale-config
358373` ` `
359374
360- > Note that a reference to a `ControllerConfig ` can be added to an already
375+ > Note that a reference to a `DeploymentRuntimeConfig ` can be added to an already
361376> installed `Provider` and it will update its `Deployment` accordingly.
362377
363378# # Deleting When a Resource Hangs
0 commit comments