Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement git clone, commit, and push, and overwrite directives #5

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
971e33b
feat: Promotion Directives engine outline
hiddeco Aug 21, 2024
7a146bb
feat: outline directive implementation example
hiddeco Aug 22, 2024
eec6c77
chore: slightly reorganize namings
hiddeco Aug 26, 2024
8ee9443
initial scaffolding for directive validation and git-based directives
krancour Aug 28, 2024
0ded23b
fix minor lint issues
krancour Aug 28, 2024
72894a0
update directive registration and execution engine to manage special …
krancour Aug 28, 2024
6c63610
fix directive execution engine bug that was creating a file instead o…
krancour Aug 29, 2024
0fde91b
feat: implement `copy` directive
hiddeco Sep 3, 2024
41d4256
feat: add `Output` to directive `Result`
krancour Sep 3, 2024
3430879
chore: allow precise control over returned Result
hiddeco Sep 10, 2024
867e026
chore: prepare Freight utils to work without Stage
hiddeco Sep 6, 2024
6926ee0
feat: introduce `helm-update-chart` directive
hiddeco Sep 6, 2024
261be5b
feat: add `helm-update-image` directive
hiddeco Sep 6, 2024
9bb84e3
feat: add `helm-template` directive
hiddeco Sep 6, 2024
0f2161a
chore: improve and add `helm-update-chart` tests
hiddeco Sep 9, 2024
8a56df3
chore: improve `helm-update-image` code and tests
hiddeco Sep 10, 2024
47b0735
chore: avoid returning duplicate error string
hiddeco Sep 10, 2024
d970092
chore: tweak directive constructors
hiddeco Sep 10, 2024
00e5a3d
chore: incorporate `Result` changes
hiddeco Sep 10, 2024
95f0595
feat: provide commit msg output for `helm-update-image`
hiddeco Sep 10, 2024
cd68fb6
feat: provide commit msg output for `helm-chart-update`
hiddeco Sep 11, 2024
1898096
slight refactoring of freight finder
krancour Aug 30, 2024
23802aa
add git-based directives
krancour Sep 3, 2024
e68e625
open pr wip
krancour Sep 11, 2024
22d6d8c
more git pkg improvements
krancour Sep 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ build-cli-with-ui: build-ui build-cli
################################################################################

.PHONY: codegen
codegen: codegen-proto codegen-controller codegen-ui codegen-docs
codegen: codegen-proto codegen-controller codegen-directive-configs codegen-ui codegen-docs

.PHONY: codegen-proto
codegen-proto: install-protoc install-go-to-protobuf install-protoc-gen-gogo install-goimports install-buf
./hack/codegen/proto.sh

.PHONY: codegen-controller
codegen-controller: install-controller-gen
Expand All @@ -166,20 +170,21 @@ codegen-controller: install-controller-gen
object:headerFile=hack/boilerplate.go.txt \
paths=./...

.PHONY: codegen-docs
codegen-docs:
npm install -g @bitnami/readme-generator-for-helm
bash hack/helm-docs/helm-docs.sh

.PHONY: codegen-proto
codegen-proto: install-protoc install-go-to-protobuf install-protoc-gen-gogo install-goimports install-buf
./hack/codegen/proto.sh
.PHONY: codegen-directive-configs
codegen-directive-configs:
npm install -g quicktype
./hack/codegen/directive-configs.sh

.PHONY: codegen-ui
codegen-ui:
pnpm --dir=ui install --dev
pnpm --dir=ui run generate:schema

.PHONY: codegen-docs
codegen-docs:
npm install -g @bitnami/readme-generator-for-helm
bash hack/helm-docs/helm-docs.sh

################################################################################
# Hack: Targets to help you hack #
# #
Expand Down
40 changes: 39 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ require (
github.com/bacongobbler/browser v1.1.0
github.com/bombsimon/logrusr/v4 v4.1.0
github.com/coreos/go-oidc/v3 v3.11.0
github.com/cyphar/filepath-securejoin v0.3.1
github.com/evanphx/json-patch/v5 v5.9.0
github.com/fatih/structtag v1.2.0
github.com/gobwas/glob v0.2.3
Expand All @@ -28,6 +29,7 @@ require (
github.com/kelseyhightower/envconfig v1.4.0
github.com/klauspost/compress v1.17.9
github.com/oklog/ulid/v2 v2.1.0
github.com/otiai10/copy v1.14.0
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/rs/cors v1.11.1
github.com/sirupsen/logrus v1.9.3
Expand All @@ -36,6 +38,7 @@ require (
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.9.0
github.com/technosophos/moniker v0.0.0-20210218184952-3ea787d3943b
github.com/xeipuuv/gojsonschema v1.2.0
go.uber.org/ratelimit v0.3.1
golang.org/x/crypto v0.26.0
golang.org/x/net v0.28.0
Expand All @@ -45,6 +48,7 @@ require (
google.golang.org/grpc v1.66.0
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v3 v3.0.1
helm.sh/helm/v3 v3.15.4
k8s.io/api v0.31.0
k8s.io/apimachinery v0.31.0
k8s.io/apiserver v0.31.0
Expand All @@ -60,6 +64,12 @@ require (
require (
cloud.google.com/go/auth v0.9.1 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/MakeNowJust/heredoc v1.0.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
github.com/Masterminds/squirrel v1.5.4 // indirect
github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.16 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.16 // indirect
Expand All @@ -70,19 +80,47 @@ require (
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.5 // indirect
github.com/aws/smithy-go v1.20.4 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/chai2010/gettext-go v1.0.2 // indirect
github.com/containerd/errdefs v0.1.0 // indirect
github.com/containerd/platforms v0.2.1 // indirect
github.com/evanphx/json-patch v5.9.0+incompatible // indirect
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/google/go-github/v62 v62.0.0 // indirect
github.com/google/s2a-go v0.1.8 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/gosuri/uitable v0.0.4 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/huandu/xstrings v1.4.0 // indirect
github.com/jmoiron/sqlx v1.3.5 // indirect
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/moby/spdystream v0.4.0 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/rubenv/sql-migrate v1.5.2 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.28.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
k8s.io/component-base v0.31.0 // indirect
k8s.io/kubectl v0.30.3 // indirect
)

require (
Expand Down Expand Up @@ -174,6 +212,6 @@ require (
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/kustomize/api v0.17.2 // indirect
sigs.k8s.io/kustomize/kyaml v0.17.1 // indirect
sigs.k8s.io/kustomize/kyaml v0.17.1
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
)
Loading
Loading