-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add migration example for toFieldPath
Signed-off-by: lsviben <[email protected]> (cherry picked from commit e591f32)
- Loading branch information
1 parent
c426a17
commit 4e303c9
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
apiVersion: kubernetes.crossplane.io/v1alpha1 | ||
kind: Object | ||
metadata: | ||
name: foo | ||
spec: | ||
references: | ||
# Use patchesFrom to patch field from other k8s resource to this object | ||
- patchesFrom: | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
name: bar | ||
namespace: default | ||
fieldPath: data.sample-key | ||
toFieldPath: data.sample-key-from-bar | ||
forProvider: | ||
manifest: | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
namespace: default | ||
data: | ||
sample-key: sample-value | ||
providerConfigRef: | ||
name: kubernetes-provider | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: bar | ||
namespace: default | ||
data: | ||
sample-key: sample-value |