-
Notifications
You must be signed in to change notification settings - Fork 6
Add KRM exec and Docker functions support #12
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
Open
AhmedElsayed101
wants to merge
16
commits into
bbl:main
Choose a base branch
from
AhmedElsayed101:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6222af0
Fix the parsing issue for strings to avoid errors with multible = in it
AhmedElsayed101 d403dad
Add KRM support
AhmedElsayed101 b580892
Update README file
AhmedElsayed101 39373b1
Add test cases
AhmedElsayed101 53e9226
Update the libraries versions and add kyaml
AhmedElsayed101 d9211eb
Add updated go.sum
AhmedElsayed101 8eddbcb
Add docker file
AhmedElsayed101 a41c603
Create dockerignore file
AhmedElsayed101 4c343b6
Create examples for each approach
AhmedElsayed101 d75f8e0
Update the imports and Harden the nginx version
AhmedElsayed101 85c5754
tidy up ci.yaml
aabouzaid 9944cbe
Update ci.yaml
aabouzaid c5432f0
ci: update golang setup step
aabouzaid e18b65e
Update versions
AhmedElsayed101 49daf35
Update dependencies versions
AhmedElsayed101 cffde3d
Fix instructions
AhmedElsayed101 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Test infrastructure (causes permission issues) | ||
test-infrastructure/ | ||
|
||
# Git files | ||
.git/ | ||
.gitignore | ||
|
||
# Documentation | ||
*.md | ||
docs/ | ||
|
||
# Examples (not needed for build) | ||
examples/ | ||
|
||
# Test files | ||
*_test.go | ||
test/ | ||
|
||
# IDE files | ||
.vscode/ | ||
.idea/ | ||
*.swp | ||
*.swo | ||
|
||
# OS files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Build artifacts | ||
bin/ | ||
dist/ | ||
*.exe | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Logs | ||
*.log | ||
|
||
# Temporary files | ||
tmp/ | ||
temp/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
on: push | ||
name: CI | ||
on: | ||
push: {} | ||
pull_request: {} | ||
jobs: | ||
checks: | ||
name: run | ||
name: Run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: build | ||
uses: cedrickring/[email protected] | ||
- name: Setup Golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
args: make build | ||
go-version-file: go.mod | ||
cache: false | ||
|
||
- name: test | ||
uses: cedrickring/[email protected] | ||
with: | ||
args: make test | ||
- name: Build | ||
run: | | ||
make build | ||
|
||
- name: Test | ||
run: | | ||
make test | ||
|
||
- name: publish code coverage results | ||
- name: Publish code coverage results | ||
run: | | ||
go test -race -coverprofile=coverage.txt -covermode=atomic ./... | ||
bash <(curl -s https://codecov.io/bash) | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Build stage | ||
FROM golang:1.19-alpine AS builder | ||
|
||
WORKDIR /app | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY . . | ||
RUN CGO_ENABLED=0 GOOS=linux go build -o /secretize ./cmd/secretize | ||
|
||
# Final stage | ||
FROM alpine:3.18 | ||
|
||
# Install ca-certificates for HTTPS connections | ||
RUN apk --no-cache add ca-certificates | ||
|
||
COPY --from=builder /secretize /usr/local/bin/secretize | ||
|
||
# KRM functions run as nobody user | ||
USER nobody | ||
|
||
ENTRYPOINT ["/usr/local/bin/secretize"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Error from os.Stdin.Stat() is ignored. While this might be intentional for detecting stdin availability, consider handling potential errors or adding a comment explaining why the error is safely ignored.
Copilot uses AI. Check for mistakes.