@@ -80,28 +80,37 @@ kubectl -n crossplane-system logs <name-of-provider-pod>
80
80
81
81
All providers maintained by the Crossplane community mirror Crossplane's support
82
82
of 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 ` :
84
84
85
85
``` yaml
86
- apiVersion : pkg.crossplane.io/v1alpha1
87
- kind : ControllerConfig
86
+ apiVersion : pkg.crossplane.io/v1beta1
87
+ kind : DeploymentRuntimeConfig
88
88
metadata :
89
89
name : debug-config
90
90
spec :
91
- args :
92
- - --debug
91
+ deploymentTemplate :
92
+ spec :
93
+ selector : {}
94
+ template :
95
+ spec :
96
+ containers :
97
+ - name : package-runtime
98
+ args :
99
+ - --debug
93
100
---
94
101
apiVersion : pkg.crossplane.io/v1
95
102
kind : Provider
96
103
metadata :
97
104
name : provider-aws
98
105
spec :
99
106
package : xpkg.upbound.io/crossplane-contrib/provider-aws:v0.33.0
100
- controllerConfigRef :
107
+ runtimeConfigRef :
108
+ apiVersion : pkg.crossplane.io/v1beta1
109
+ kind : DeploymentRuntimeConfig
101
110
name : debug-config
102
111
` ` `
103
112
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
105
114
> installed `Provider` and it will update its `Deployment` accordingly.
106
115
107
116
# # Compositions and composite resource definition
@@ -335,29 +344,35 @@ kubectl -n crossplane-system scale --replicas=1 deployment/crossplane
335
344
# # Pausing Providers
336
345
337
346
Providers 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
340
349
modified or the reference can be removed to scale it back up :
341
350
342
351
` ` ` yaml
343
- apiVersion: pkg.crossplane.io/v1alpha1
344
- kind: ControllerConfig
352
+ apiVersion: pkg.crossplane.io/v1beta1
353
+ kind: DeploymentRuntimeConfig
345
354
metadata:
346
355
name: scale-config
347
356
spec:
348
- replicas: 0
357
+ deploymentTemplate:
358
+ spec:
359
+ selector: {}
360
+ replicas: 0
361
+ template: {}
349
362
---
350
363
apiVersion: pkg.crossplane.io/v1
351
364
kind: Provider
352
365
metadata:
353
366
name: provider-aws
354
367
spec:
355
368
package: xpkg.upbound.io/crossplane-contrib/provider-aws:v0.33.0
356
- controllerConfigRef:
369
+ runtimeConfigRef:
370
+ apiVersion: pkg.crossplane.io/v1beta1
371
+ kind: DeploymentRuntimeConfig
357
372
name: scale-config
358
373
` ` `
359
374
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
361
376
> installed `Provider` and it will update its `Deployment` accordingly.
362
377
363
378
# # Deleting When a Resource Hangs
0 commit comments