diff --git a/controller/Dockerfile b/controller/Dockerfile index 1970296..f91c4d9 100644 --- a/controller/Dockerfile +++ b/controller/Dockerfile @@ -11,7 +11,7 @@ COPY ./ ./ RUN go mod vendor -RUN go CGO_ENABLED=0 build -mod=readonly \ +RUN CGO_ENABLED=0 go build -mod=readonly \ -ldflags="-s -w -X \"github.com/dnitsch/reststrategy/controller/cmd/controller.Version=${VERSION}\" -X \"github.com/dnitsch/reststrategy/controller/cmd/controller.Revision=${REVISION}\" -extldflags -static" \ -o dist/controller ./cmd diff --git a/seeder/seeder.go b/seeder/seeder.go index 8ec451e..e9a0fab 100644 --- a/seeder/seeder.go +++ b/seeder/seeder.go @@ -145,14 +145,15 @@ func FindDeletePostStrategyFunc(ctx context.Context, action *Action, rest *Seede return rest.FindDeletePost(ctx, action) } -// FindPostStrategyFunc strategy calls a GET endpoint and if item ***FOUND it does NOT do a POST*** +// FindPostStrategyFunc strategy calls a GET endpoint and expects a list of items to match against a +// FilterPathExpre and if item ***FOUND*** it does _NOT_ do a ***POST*** // this strategy should be used sparingly and only in cases where the service REST implementation // does not support an update of existing item. func FindPostStrategyFunc(ctx context.Context, action *Action, rest *SeederImpl) error { return rest.FindPost(ctx, action) } -// FindPostStrategyFunc strategy calls a GET endpoint and if item ***FOUND it does NOT do a POST*** +// GetPostStrategyFunc strategy calls a GET endpoint by an ID and if item ***FOUND*** it does _NOT_ do a ***POST*** // this strategy should be used sparingly and only in cases where the service REST implementation // does not support an update of existing item. func GetPostStrategyFunc(ctx context.Context, action *Action, rest *SeederImpl) error {