-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from dhyanio/dhyanio@6
feat: improve README & setup
- Loading branch information
Showing
16 changed files
with
201 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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,23 @@ | ||
name: linter | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
linter: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
- name: golangci-lint | ||
uses: reviewdog/action-golangci-lint@v2 | ||
with: | ||
go_version_file: go.mod | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
tool_name: golangci-lint |
This file contains 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,37 @@ | ||
name: "tagged-release" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Bump Version | ||
required: true | ||
jobs: | ||
tagged-release: | ||
name: "Tagged Release" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
cache: true | ||
- name: Test | ||
run: go build -v && go test ./... | ||
- name: Build for linux/amd64 | ||
run: go build -o yaml-merger-linux-amd64 | ||
- name: Build for linux/arm64 | ||
run: GOOS=linux GOARCH=arm64 go build -o yaml-merger-linux-arm64 | ||
- name: Build for mac | ||
run: GOOS=darwin go build -o yaml-merger-darwin-amd64 | ||
- name: Build for mac Apple Silicon | ||
run: GOOS=darwin GOARCH=arm64 go build -o yaml-merger-darwin-arm64 | ||
|
||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: ${{ github.event.inputs.version }} | ||
prerelease: false | ||
files: | | ||
yaml-merger-* |
This file contains 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,27 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
cache: true | ||
- name: Go Mod Tidy | ||
run: go mod tidy | ||
- name: Test | ||
run: make test |
This file contains 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 @@ | ||
bin |
This file contains 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,26 @@ | ||
# Variables | ||
BINARY_NAME := yaml-merger | ||
BINARY_DIR := bin | ||
BINARY_PATH := $(BINARY_DIR)/$(BINARY_NAME) | ||
GO_FILES := $(shell find . -type f -name '*.go') | ||
|
||
# Targets | ||
.PHONY: all build clean run runfollower test lint fmt | ||
|
||
all: build | ||
|
||
build: $(GO_FILES) | ||
@mkdir -p $(BINARY_DIR) | ||
go build -o $(BINARY_PATH) | ||
|
||
test: build | ||
@go test -v $(BINARY_PATH)/... | ||
|
||
lint: | ||
@golangci-lint run ./... | ||
|
||
fmt: | ||
@go fmt ./... | ||
|
||
clean: | ||
@rm -rf $(BINARY_DIR) |
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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,9 @@ | ||
## How Yaml-Merger helps in Helm charts | ||
|
||
A YAML merger in Helm is helpful because Helm charts heavily rely on YAML files for configuration, and merging simplifies and streamlines the management of complex configurations. Here’s how it helps in the context of Helm: | ||
|
||
1. Combine Values from Multiple Sources | ||
Helm allows the use of multiple values.yaml files to override default chart configurations. A YAML merger ensures that: | ||
|
||
Default values defined in values.yaml can be overridden with environment-specific configurations using custom files (e.g., production-values.yaml or staging-values.yaml). | ||
Conflicts between these files are handled systematically, allowing overrides without overwriting unrelated keys. |
Empty file.
This file contains 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,30 @@ | ||
--- | ||
swagger: '2.0' | ||
info: | ||
version: 1.0.0 | ||
title: Echo | ||
description: | | ||
#### Echos back every URL, method, parameter and header | ||
Feel free to make a path or an operation and use **Try Operation** to test it. The echo server will | ||
render back everything. | ||
schemes: | ||
- http | ||
host: mazimi-prod.apigee.net | ||
basePath: /echo | ||
paths: | ||
/: | ||
get: | ||
responses: | ||
$ref: "./responses.yaml#/components/root/get" | ||
post: | ||
responses: | ||
$ref: "./responses.yaml#/components/root/post" | ||
parameters: | ||
- $ref: "./name.yaml" | ||
- $ref: "./year.yaml" | ||
/test-path/{id}: | ||
parameters: | ||
- $ref: "./id.yaml" | ||
get: | ||
responses: | ||
$ref: "./responses.yaml#/components/test-path" |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains 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 @@ | ||
package main |
This file contains 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 @@ | ||
package main |
This file contains 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 @@ | ||
package main |