From d4607356fb87c24c2996c59a6aebf55da27737cb Mon Sep 17 00:00:00 2001 From: Priyansh Choudhary Date: Thu, 28 Nov 2024 18:22:01 +0530 Subject: [PATCH 1/4] Doc updated, added resourceModifier Signed-off-by: Priyansh Choudhary --- site/content/docs/v1.15/api-types/restore.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site/content/docs/v1.15/api-types/restore.md b/site/content/docs/v1.15/api-types/restore.md index 7b388d8828..b5d57d70cb 100644 --- a/site/content/docs/v1.15/api-types/restore.md +++ b/site/content/docs/v1.15/api-types/restore.md @@ -111,6 +111,12 @@ spec: # existingResourcePolicy specifies the restore behaviour # for the Kubernetes resource to be restored. Optional existingResourcePolicy: none + # ResourceModifier specifies the reference to JSON resource patches + # that should be applied to resources before restoration. Optional + resourceModifier: + apiVersion: v1 + kind: ConfigMap + name: resource-modifier-config # Actions to perform during or post restore. The only hooks currently supported are # adding an init container to a pod before it can be restored and executing a command in a # restored pod's container. Optional. From 6d221ce4393de1774035f203e48c56a0ad7a65ed Mon Sep 17 00:00:00 2001 From: Priyansh Choudhary Date: Fri, 29 Nov 2024 17:27:26 +0530 Subject: [PATCH 2/4] Updated yaml to remove Apiversion Signed-off-by: Priyansh Choudhary --- site/content/docs/v1.15/api-types/restore.md | 1 - 1 file changed, 1 deletion(-) diff --git a/site/content/docs/v1.15/api-types/restore.md b/site/content/docs/v1.15/api-types/restore.md index b5d57d70cb..74bcbdc321 100644 --- a/site/content/docs/v1.15/api-types/restore.md +++ b/site/content/docs/v1.15/api-types/restore.md @@ -114,7 +114,6 @@ spec: # ResourceModifier specifies the reference to JSON resource patches # that should be applied to resources before restoration. Optional resourceModifier: - apiVersion: v1 kind: ConfigMap name: resource-modifier-config # Actions to perform during or post restore. The only hooks currently supported are From 1590d6d5e46fc6bffecc237cebe135881e5924ab Mon Sep 17 00:00:00 2001 From: Priyansh Choudhary Date: Fri, 29 Nov 2024 17:36:16 +0530 Subject: [PATCH 3/4] Updated name of configmap Signed-off-by: Priyansh Choudhary --- site/content/docs/v1.15/api-types/restore.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/v1.15/api-types/restore.md b/site/content/docs/v1.15/api-types/restore.md index 74bcbdc321..ec3e19511c 100644 --- a/site/content/docs/v1.15/api-types/restore.md +++ b/site/content/docs/v1.15/api-types/restore.md @@ -115,7 +115,7 @@ spec: # that should be applied to resources before restoration. Optional resourceModifier: kind: ConfigMap - name: resource-modifier-config + name: resource-modifier-configmap # Actions to perform during or post restore. The only hooks currently supported are # adding an init container to a pod before it can be restored and executing a command in a # restored pod's container. Optional. From 4514d404708c542225d9b92c1b277b33b2423f1b Mon Sep 17 00:00:00 2001 From: Priyansh Choudhary Date: Sat, 30 Nov 2024 22:42:48 +0530 Subject: [PATCH 4/4] Added doc updation to main page Signed-off-by: Priyansh Choudhary --- site/content/docs/main/api-types/restore.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site/content/docs/main/api-types/restore.md b/site/content/docs/main/api-types/restore.md index 7b388d8828..ec3e19511c 100644 --- a/site/content/docs/main/api-types/restore.md +++ b/site/content/docs/main/api-types/restore.md @@ -111,6 +111,11 @@ spec: # existingResourcePolicy specifies the restore behaviour # for the Kubernetes resource to be restored. Optional existingResourcePolicy: none + # ResourceModifier specifies the reference to JSON resource patches + # that should be applied to resources before restoration. Optional + resourceModifier: + kind: ConfigMap + name: resource-modifier-configmap # Actions to perform during or post restore. The only hooks currently supported are # adding an init container to a pod before it can be restored and executing a command in a # restored pod's container. Optional.