-
Notifications
You must be signed in to change notification settings - Fork 0
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 #72 from bcochofel/first_release
feat: first release
- Loading branch information
Showing
30 changed files
with
543 additions
and
909 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,56 @@ | ||
{{ if .Versions -}} | ||
<a name="unreleased"></a> | ||
## [Unreleased] | ||
|
||
{{ if .Unreleased.CommitGroups -}} | ||
{{ range .Unreleased.CommitGroups -}} | ||
### {{ .Title }} | ||
{{ range .Commits -}} | ||
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} | ||
{{ end }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} | ||
|
||
{{ range .Versions }} | ||
<a name="{{ .Tag.Name }}"></a> | ||
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} | ||
{{ range .CommitGroups -}} | ||
### {{ .Title }} | ||
{{ range .Commits -}} | ||
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .RevertCommits -}} | ||
### Reverts | ||
{{ range .RevertCommits -}} | ||
- {{ .Revert.Header }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .MergeCommits -}} | ||
### Pull Requests | ||
{{ range .MergeCommits -}} | ||
- {{ .Header }} | ||
{{ end }} | ||
{{ end -}} | ||
|
||
{{- if .NoteGroups -}} | ||
{{ range .NoteGroups -}} | ||
### {{ .Title }} | ||
{{ range .Notes }} | ||
{{ .Body }} | ||
{{ end }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} | ||
|
||
{{- if .Versions }} | ||
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD | ||
{{ range .Versions -}} | ||
{{ if .Tag.Previous -}} | ||
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} |
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,28 @@ | ||
style: github | ||
template: CHANGELOG.tpl.md | ||
info: | ||
title: CHANGELOG | ||
repository_url: https://github.com/bcochofel/k8s-gitops-istio-demo | ||
options: | ||
commits: | ||
# filters: | ||
# Type: | ||
# - feat | ||
# - fix | ||
# - perf | ||
# - refactor | ||
commit_groups: | ||
# title_maps: | ||
# feat: Features | ||
# fix: Bug Fixes | ||
# perf: Performance Improvements | ||
# refactor: Code Refactoring | ||
header: | ||
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" | ||
pattern_maps: | ||
- Type | ||
- Scope | ||
- Subject | ||
notes: | ||
keywords: | ||
- BREAKING CHANGE |
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,31 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- '*' # all branches | ||
- '!main' # exclude main branch | ||
- '!master' # exclude main branch | ||
|
||
jobs: | ||
changelog: | ||
name: Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/setup@v0.9.8 | ||
with: | ||
versionSpec: '5.x' | ||
- name: Use GitVersion | ||
uses: gittools/actions/gitversion/execute@v0.9.8 | ||
id: gitversion | ||
- name: Changelog | ||
id: changelog | ||
uses: nuuday/github-changelog-action@v1.0.0 | ||
with: | ||
next_version: "${{ steps.gitversion.outputs.majorMinorPatch }}" | ||
- name: Commit Changelog | ||
uses: stefanzweifel/git-auto-commit-action@v4 |
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,35 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/setup@v0.9.8 | ||
with: | ||
versionSpec: '5.x' | ||
- name: Use GitVersion | ||
uses: gittools/actions/gitversion/execute@v0.9.8 | ||
id: gitversion | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.gitversion.outputs.majorMinorPatch }} | ||
release_name: Release ${{ steps.gitversion.outputs.majorMinorPatch }} | ||
body: | | ||
[CHANGELOG](./CHANGELOG.md) | ||
draft: false | ||
prerelease: false |
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
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
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 @@ | ||
<a name="unreleased"></a> | ||
## [Unreleased] | ||
|
||
|
||
<a name="0.1.0"></a> | ||
## [0.1.0] - 2021-01-23 | ||
### Feat | ||
- first release | ||
|
||
### Fix | ||
- istio-demo scenario | ||
|
||
|
||
<a name="flux-sync"></a> | ||
## flux-sync - 2021-01-23 | ||
### Pull Requests | ||
- Merge pull request [#71](https://github.com/bcochofel/k8s-gitops-istio-demo/issues/71) from bcochofel/kiali-cr | ||
- Merge pull request [#2](https://github.com/bcochofel/k8s-gitops-istio-demo/issues/2) from bcochofel/kustomize-base | ||
- Merge pull request [#1](https://github.com/bcochofel/k8s-gitops-istio-demo/issues/1) from bcochofel/bootstrap-repo | ||
|
||
|
||
[Unreleased]: https://github.com/bcochofel/k8s-gitops-istio-demo/compare/0.1.0...HEAD | ||
[0.1.0]: https://github.com/bcochofel/k8s-gitops-istio-demo/compare/flux-sync...0.1.0 |
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
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,14 @@ | ||
# git-chglog | ||
|
||
The Changelog file is maintained using [git-chglog](https://github.com/git-chglog/git-chglog) | ||
|
||
```bash | ||
❯ git-chglog --init | ||
? What is the URL of your repository? {{ github_url }} | ||
? What is your favorite style? github | ||
? Choose the format of your favorite commit message <type>(<scope>): <subject> | ||
? What is your favorite template style? keep-a-changelog | ||
? Do you include Merge Commit in CHANGELOG? Yes | ||
? Do you include Revert Commit in CHANGELOG? Yes | ||
? In which directory do you output configuration files and templates? .chglog | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,32 @@ | ||
# pre-commit hooks | ||
|
||
GIT hooks are implemented using [`pre-commit`](https://pre-commit.com/). | ||
|
||
To install `pre-commit` follow [this](https://pre-commit.com/#install) guide. | ||
|
||
After installing `pre-commit` and cloning this repo you can enable the hooks locally by running: | ||
|
||
```bash | ||
pre-commit install | ||
pre-commit install --hook-type commit-msg | ||
``` | ||
|
||
You can also run specific hooks on all files: | ||
|
||
```bash | ||
pre-commit run detect-private-key --all-files | ||
``` | ||
|
||
or run all hooks on all files: | ||
|
||
```bash | ||
pre-commit run --all-files | ||
``` | ||
|
||
for more options check `pre-commit` [documentation](https://pre-commit.com/#advanced) | ||
|
||
**NOTE:** to run the hooks you should have installed the following tools: | ||
* [`terraform`](https://www.terraform.io/downloads.html) | ||
* [`terragrunt`](https://terragrunt.gruntwork.io/docs/getting-started/install/) | ||
* [`tflint`](https://github.com/terraform-linters/tflint) and | ||
* [`terraform-docs`](https://github.com/terraform-docs/terraform-docs) installed locally. |
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,7 @@ | ||
# References | ||
|
||
- [Kubespray](https://github.com/kubernetes-sigs/kubespray) | ||
- [kubectl Cheat Sheet](https://kubernetes.io/docs/reference/kubectl/cheatsheet/) | ||
- [Set up Kubernetes cluster on laptop/PC using Vagrant Virtual Box and Kubespray](https://medium.com/@kanrangsan/home-lab-set-up-kubernetes-cluster-on-laptop-pc-using-vagrant-virtual-box-and-kubespray-a445c0429226) | ||
- [Deployment with Kubernetes](https://blog.lelonek.me/deployment-with-kubernetes-e74cd6a8974) | ||
- [pre-commit](https://pre-commit.com/#install) |
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,13 @@ | ||
# Requirements | ||
|
||
To run this repository you need: | ||
|
||
- [Vagrant](https://www.vagrantup.com/downloads.html) | ||
- At least 16GB of RAM (you can change the Vagrantfile) | ||
|
||
You can also use [pre-commit](https://pre-commit.com/#install). After installing | ||
`pre-commit` just execute: | ||
|
||
```ShellSession | ||
pre-commit install | ||
``` |
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
21 changes: 0 additions & 21 deletions
21
...ios/istio-production/flux-prometheus.yaml → ...tio-production/flux-prometheus-rules.yaml
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
21 changes: 21 additions & 0 deletions
21
scenarios/istio-production/flux-prometheus-servicemonitor.yaml
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,21 @@ | ||
--- | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: flux | ||
namespace: fluxcd | ||
labels: | ||
app: flux | ||
release: flux | ||
tier: cluster | ||
spec: | ||
endpoints: | ||
- port: http | ||
honorLabels: true | ||
namespaceSelector: | ||
matchNames: | ||
- fluxcd | ||
selector: | ||
matchLabels: | ||
app: flux | ||
release: flux |
Oops, something went wrong.