Removed incorrect FS extraction from earlier merge with master, and fixed linting errors
This commit is contained in:
parent
ee9aa954ac
commit
7a6dfb6d8b
|
|
@ -85,15 +85,15 @@ func newStageBuilder(opts *config.KanikoOptions, stage config.KanikoStage) (*sta
|
||||||
|
|
||||||
// key will return a string representation of the build at the cmd
|
// key will return a string representation of the build at the cmd
|
||||||
// TODO: priyawadhwa@ to fill this out when implementing caching
|
// TODO: priyawadhwa@ to fill this out when implementing caching
|
||||||
func (s *stageBuilder) key(cmd string) (string, error) {
|
// func (s *stageBuilder) key(cmd string) (string, error) {
|
||||||
return "", nil
|
// return "", nil
|
||||||
}
|
// }
|
||||||
|
|
||||||
// extractCachedLayer will extract the cached layer and append it to the config file
|
// extractCachedLayer will extract the cached layer and append it to the config file
|
||||||
// TODO: priyawadhwa@ to fill this out when implementing caching
|
// TODO: priyawadhwa@ to fill this out when implementing caching
|
||||||
func (s *stageBuilder) extractCachedLayer(layer v1.Image, createdBy string) error {
|
// func (s *stageBuilder) extractCachedLayer(layer v1.Image, createdBy string) error {
|
||||||
return nil
|
// return nil
|
||||||
}
|
// }
|
||||||
|
|
||||||
func (s *stageBuilder) build(opts *config.KanikoOptions) error {
|
func (s *stageBuilder) build(opts *config.KanikoOptions) error {
|
||||||
// Unpack file system to root
|
// Unpack file system to root
|
||||||
|
|
@ -114,9 +114,6 @@ func (s *stageBuilder) build(opts *config.KanikoOptions) error {
|
||||||
if command == nil {
|
if command == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err := util.GetFSFromImage(constants.RootDir, s.image); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
logrus.Info(command.String())
|
logrus.Info(command.String())
|
||||||
if err := command.ExecuteCommand(&s.cf.Config, args); err != nil {
|
if err := command.ExecuteCommand(&s.cf.Config, args); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue