@@ -90,6 +90,7 @@ def main():
90
90
plural = "crontabs" ,
91
91
body = test_resource ,
92
92
)
93
+ print ("[INFO] Custom resource `test-crontab` created!\n " )
93
94
94
95
# get the cluster scoped resource
95
96
resource = api .get_cluster_custom_object (
@@ -98,7 +99,7 @@ def main():
98
99
name = "test-crontab" ,
99
100
plural = "crontabs" ,
100
101
)
101
- print ("%s\t \t %s" % ("NAME" , "SCHEDULE " ))
102
+ print ("%s\t \t %s" % ("NAME" , "CRON-SPEC " ))
102
103
print (
103
104
"%s\t %s\n " %
104
105
(resource ["metadata" ]["name" ],
@@ -112,7 +113,8 @@ def main():
112
113
name = "test-crontab" ,
113
114
body = cronspec_patch ,
114
115
)
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" ))
116
118
print (
117
119
"%s\t %s\n " %
118
120
(patched_resource ["metadata" ]["name" ],
@@ -126,6 +128,7 @@ def main():
126
128
name = "test-crontab" ,
127
129
body = metadata_label_patch ,
128
130
)
131
+ print ("[INFO] Custom resource `test-crontab` patched to apply new metadata labels!\n " )
129
132
print ("%s\t \t %s" % ("NAME" , "PATCHED_LABELS" ))
130
133
print (
131
134
"%s\t %s\n " %
@@ -140,7 +143,7 @@ def main():
140
143
plural = "crontabs" ,
141
144
body = client .V1DeleteOptions (),
142
145
)
143
- print ("Resource `test-crontab` deleted!" )
146
+ print ("[INFO] Custom resource `test-crontab` deleted!" )
144
147
145
148
146
149
if __name__ == "__main__" :
0 commit comments