Skip to content

Commit

Permalink
fix: removed unwanted things and fixed docker file
Browse files Browse the repository at this point in the history
mahendraintelops committed Nov 17, 2023

Verified

This commit was signed with the committer’s verified signature.
1 parent 382f3a2 commit 4b9a15a
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ ENV GOPATH $HOME/go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"

COPY --from=builder /app/core /
COPY --from=builder /app /
COPY templates /app/templates

# test if the below command avoids loading the files later.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ Solution: **Compage**
- Automatically take care of all git processes like tagging, versioning, commits, PRs, etc.
- Automatically enforce software supply chain security process like signing the source code for integrity and generating
immutable ledger logs, generating SBOM, generating vulnerability report, and also generate configurations to auto
verify, validateStringInput & control the source code integrity and container image integrity for deployments, etc. in K8s env.
verify, validate & control the source code integrity and container image integrity for deployments, etc. in K8s env.
- Automatically convert backend application related environment variables' content to configmaps, secrets, etc. to make
the generated backend compatible to K8s of any flavor (K8s, K3s, TalOS, etc.) and also auto configs to support
integration with Vault, cert-manager, external secrets, sealed secrets & Venafi tools for TLS/SSL and secrets
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0=
github.com/envoyproxy/protoc-gen-validateStringInput v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ func New{{.CapsResourceNameSingular}}Controller() (*{{.CapsResourceNameSingular}

{{ if .IsRESTCreateAllowed }}
func ({{.SmallResourceNameSingular}}Controller *{{.CapsResourceNameSingular}}Controller) Create{{.CapsResourceNameSingular}}(context *gin.Context) {
// validateStringInput input
// validate input
var input models.{{.CapsResourceNameSingular}}
if err := context.ShouldBindJSON(&input); err != nil {
log.Error(err)
@@ -94,7 +94,7 @@ func ({{.SmallResourceNameSingular}}Controller *{{.CapsResourceNameSingular}}Con

{{ if .IsRESTPutAllowed }}
func ({{.SmallResourceNameSingular}}Controller *{{.CapsResourceNameSingular}}Controller) Update{{.CapsResourceNameSingular}}(context *gin.Context) {
// validateStringInput input
// validate input
var input models.{{.CapsResourceNameSingular}}
if err := context.ShouldBindJSON(&input); err != nil {
log.Error(err)
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ func New{{.CapsResourceNameSingular}}Controller() (*{{.CapsResourceNameSingular}

{{ if .IsRESTCreateAllowed }}
func ({{.SmallResourceNameSingular}}Controller *{{.CapsResourceNameSingular}}Controller) Create{{.CapsResourceNameSingular}}(context *gin.Context) {
// validateStringInput input
// validate input
var input models.{{.CapsResourceNameSingular}}
if err := context.ShouldBindJSON(&input); err != nil {
log.Error(err)
@@ -99,7 +99,7 @@ func ({{.SmallResourceNameSingular}}Controller *{{.CapsResourceNameSingular}}Con

{{ if .IsRESTPutAllowed }}
func ({{.SmallResourceNameSingular}}Controller *{{.CapsResourceNameSingular}}Controller) Update{{.CapsResourceNameSingular}}(context *gin.Context) {
// validateStringInput input
// validate input
var input models.{{.CapsResourceNameSingular}}
if err := context.ShouldBindJSON(&input); err != nil {
log.Error(err)

0 comments on commit 4b9a15a

Please sign in to comment.