@@ -90,6 +90,7 @@ def main():
9090 plural = "crontabs" ,
9191 body = test_resource ,
9292 )
93+ print ("[INFO] Custom resource `test-crontab` created!\n " )
9394
9495 # get the cluster scoped resource
9596 resource = api .get_cluster_custom_object (
@@ -98,7 +99,7 @@ def main():
9899 name = "test-crontab" ,
99100 plural = "crontabs" ,
100101 )
101- print ("%s\t \t %s" % ("NAME" , "SCHEDULE " ))
102+ print ("%s\t \t %s" % ("NAME" , "CRON-SPEC " ))
102103 print (
103104 "%s\t %s\n " %
104105 (resource ["metadata" ]["name" ],
@@ -112,7 +113,8 @@ def main():
112113 name = "test-crontab" ,
113114 body = cronspec_patch ,
114115 )
115- print ("%s\t \t %s" % ("NAME" , "PATCHED_SCHEDULE" ))
116+ print ("[INFO] Custom resource `test-crontab` patched to update the cronSpec schedule!\n " )
117+ print ("%s\t \t %s" % ("NAME" , "PATCHED-CRON-SPEC" ))
116118 print (
117119 "%s\t %s\n " %
118120 (patched_resource ["metadata" ]["name" ],
@@ -126,6 +128,7 @@ def main():
126128 name = "test-crontab" ,
127129 body = metadata_label_patch ,
128130 )
131+ print ("[INFO] Custom resource `test-crontab` patched to apply new metadata labels!\n " )
129132 print ("%s\t \t %s" % ("NAME" , "PATCHED_LABELS" ))
130133 print (
131134 "%s\t %s\n " %
@@ -140,7 +143,7 @@ def main():
140143 plural = "crontabs" ,
141144 body = client .V1DeleteOptions (),
142145 )
143- print ("Resource `test-crontab` deleted!" )
146+ print ("[INFO] Custom resource `test-crontab` deleted!" )
144147
145148
146149if __name__ == "__main__" :
0 commit comments