Skip to content

Commit b43c126

Browse files
authored
Added json library (#143)
1 parent 287ddb4 commit b43c126

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

substrate/cmd/bootstrap.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func bootstrap(cmd *cobra.Command, args []string) {
5151
start := time.Now()
5252
// TODO make substrate name configurable
5353
name := "test-substrate"
54+
logging.FromContext(ctx).Infof("Starting bootstrap of %q", name)
5455
if err := substrate.NewController(ctx).Reconcile(ctx, &v1alpha1.Substrate{
5556
ObjectMeta: metav1.ObjectMeta{Name: name},
5657
Spec: v1alpha1.SubstrateSpec{
@@ -69,5 +70,5 @@ func bootstrap(cmd *cobra.Command, args []string) {
6970
logging.FromContext(ctx).Error(err.Error())
7071
return
7172
}
72-
logging.FromContext(ctx).Infof("✅ Bootstrap finished, substrate name %s time taken %s", name, time.Since(start))
73+
logging.FromContext(ctx).Infof("✅ Bootstrapped %q after %s", name, time.Since(start))
7374
}

substrate/cmd/delete.go

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func delete(cmd *cobra.Command, args []string) {
3737
ctx := cmd.Context()
3838
start := time.Now()
3939
name := "test-substrate"
40+
logging.FromContext(ctx).Infof("Starting cleanup of %q", name)
4041
if err := substrate.NewController(ctx).Reconcile(ctx, &v1alpha1.Substrate{
4142
ObjectMeta: metav1.ObjectMeta{Name: name, DeletionTimestamp: &metav1.Time{Time: time.Now()}},
4243
}); err != nil {

substrate/pkg/utils/json/value.go

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package json
2+
3+
type Value map[string]interface{}

0 commit comments

Comments
 (0)