@@ -100,10 +100,7 @@ def main():
100
100
plural = "crontabs" ,
101
101
)
102
102
print ("%s\t \t %s" % ("NAME" , "CRON-SPEC" ))
103
- print (
104
- "%s\t %s\n " %
105
- (resource ["metadata" ]["name" ],
106
- resource ["spec" ]["cronSpec" ]))
103
+ print (f"{ resource ['metadata' ]['name' ]} \t { resource ['spec' ]['cronSpec' ]} \n " )
107
104
108
105
# patch the `spec.cronSpec` field of the custom resource
109
106
patched_resource = api .patch_cluster_custom_object (
@@ -115,10 +112,7 @@ def main():
115
112
)
116
113
print ("[INFO] Custom resource `test-crontab` patched to update the cronSpec schedule!\n " )
117
114
print ("%s\t \t %s" % ("NAME" , "PATCHED-CRON-SPEC" ))
118
- print (
119
- "%s\t %s\n " %
120
- (patched_resource ["metadata" ]["name" ],
121
- patched_resource ["spec" ]["cronSpec" ]))
115
+ print (f"{ patched_resource ['metadata' ]['name' ]} \t { patched_resource ['spec' ]['cronSpec' ]} \n " )
122
116
123
117
# patch the `metadata.labels` field of the custom resource
124
118
patched_resource = api .patch_cluster_custom_object (
@@ -130,10 +124,7 @@ def main():
130
124
)
131
125
print ("[INFO] Custom resource `test-crontab` patched to apply new metadata labels!\n " )
132
126
print ("%s\t \t %s" % ("NAME" , "PATCHED_LABELS" ))
133
- print (
134
- "%s\t %s\n " %
135
- (patched_resource ["metadata" ]["name" ],
136
- patched_resource ["metadata" ]["labels" ]))
127
+ print (f"{ patched_resource ['metadata' ]['name' ]} \t { patched_resource ['metadata' ]['labels' ]} \n " )
137
128
138
129
# delete the custom resource "test-crontab"
139
130
api .delete_cluster_custom_object (
0 commit comments