Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sagor999 committed Oct 4, 2022
1 parent 8420d47 commit 766dcca
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions components/content-service/pkg/layer/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,44 @@ func (s *Provider) GetContentLayerPVC(ctx context.Context, owner, workspaceID st
defer tracing.FinishSpan(span, &err)
tracing.ApplyOWI(span, log.OWI(owner, workspaceID, ""))

log.Infof("initializer: %v", *initializer)
if initializer.GetEmpty() != nil {
log.Info("empty initializer")
} else if initializer.GetGit() != nil {
log.Info("git initializer")
} else if initializer.GetSnapshot() != nil {
log.Info("snapshot initializer")
} else if initializer.GetPrebuild() != nil {
log.Info("prebuild initializer")
} else if initializer.GetBackup() != nil {
log.Info("backup initializer")
} else if initializer.GetComposite() != nil {
log.Info("composite initializer")
for init := range initializer.GetComposite().Initializer {
initializer := initializer.GetComposite().Initializer[init]
log.Infof("initializer: %v", *initializer)
if initializer.GetEmpty() != nil {
log.Info("empty initializer ")
} else if initializer.GetGit() != nil {
log.Info("git initializer")
} else if initializer.GetSnapshot() != nil {
log.Info("snapshot initializer")
} else if initializer.GetPrebuild() != nil {
log.Info("prebuild initializer")
} else if initializer.GetBackup() != nil {
log.Info("backup initializer")
} else if initializer.GetDownload() != nil {
log.Info("download initializer")
} else {
log.Info("unknown initializer")
}
}
} else if initializer.GetDownload() != nil {
log.Info("download initializer")
} else {
log.Info("unknown initializer")
}

defer func() {
// we never return a nil manifest, just maybe an empty one
if manifest == nil {
Expand Down

0 comments on commit 766dcca

Please sign in to comment.