Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: konstructio/kubefirst
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.4.0
Choose a base ref
...
head repository: konstructio/kubefirst
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 5,566 additions and 5,039 deletions.
  1. +11 −0 .devcontainer/devcontainer.json
  2. +18 −0 .editorconfig
  3. +5 −2 .github/ISSUE_TEMPLATE/bugs.yml
  4. +1 −1 .github/ISSUE_TEMPLATE/config.yml
  5. +1 −1 .github/ISSUE_TEMPLATE/features.yml
  6. +5 −5 .github/workflows/check-signed.yml
  7. +20 −0 .github/workflows/check-unit-tests.yml
  8. +0 −63 .github/workflows/codeql-analysis.yml
  9. +0 −16 .github/workflows/devrel-automations.yaml
  10. +7 −38 .github/workflows/releaser.yaml
  11. +14 −16 .github/workflows/tests.yml
  12. +121 −0 .golangci.yaml
  13. +6 −5 .goreleaser.yaml
  14. +1 −1 CODE_OF_CONDUCT.md
  15. +36 −8 CONTRIBUTING.md
  16. +22 −14 README.md
  17. +1 −1 SUPPORT.MD
  18. +1 −1 build/Dockerfile
  19. +73 −56 cmd/akamai/command.go
  20. +18 −103 cmd/akamai/create.go
  21. +100 −21 cmd/aws/command.go
  22. +107 −104 cmd/aws/create.go
  23. +489 −0 cmd/aws/create_test.go
  24. +26 −22 cmd/aws/quota.go
  25. +153 −0 cmd/azure/command.go
  26. +53 −0 cmd/azure/create.go
  27. +0 −43 cmd/beta.go
  28. +14 −11 cmd/civo/backup.go
  29. +85 −68 cmd/civo/command.go
  30. +18 −102 cmd/civo/create.go
  31. +24 −27 cmd/civo/quota.go
  32. +78 −62 cmd/digitalocean/command.go
  33. +19 −108 cmd/digitalocean/create.go
  34. +64 −0 cmd/generate.go
  35. +77 −61 cmd/google/command.go
  36. +18 −104 cmd/google/create.go
  37. +43 −40 cmd/info.go
  38. +19 −42 cmd/k3d/command.go
  39. +394 −581 cmd/k3d/create.go
  40. +78 −100 cmd/k3d/destroy.go
  41. +20 −12 cmd/k3d/mkcert.go
  42. +21 −15 cmd/k3d/root-credentials.go
  43. +40 −45 cmd/k3d/vault.go
  44. +77 −61 cmd/k3s/command.go
  45. +4 −93 cmd/k3s/create.go
  46. +96 −21 cmd/launch.go
  47. +15 −14 cmd/letsencrypt.go
  48. +29 −27 cmd/logs.go
  49. +37 −89 cmd/reset.go
  50. +52 −41 cmd/root.go
  51. +13 −8 cmd/terraform.go
  52. +14 −18 cmd/version.go
  53. +80 −64 cmd/vultr/command.go
  54. +18 −109 cmd/vultr/create.go
  55. +312 −268 go.mod
  56. +699 −1,378 go.sum
  57. BIN images/kubefirst-arch.png
  58. +28 −32 internal/catalog/catalog.go
  59. +102 −65 internal/cluster/cluster.go
  60. +71 −48 internal/common/common.go
  61. +36 −0 internal/generate/files.go
  62. +94 −0 internal/generate/scaffold.go
  63. +24 −0 internal/generate/scaffold/{{ .AppName }}.yaml
  64. +9 −0 internal/generate/scaffold/{{ .AppName }}/Chart.yaml
  65. +29 −0 internal/generate/scaffold/{{ .AppName }}/values.yaml
  66. +74 −0 internal/generate/scaffold_test.go
  67. +24 −0 internal/generate/testdata/scaffold/development/app.yaml
  68. +9 −0 internal/generate/testdata/scaffold/development/app/Chart.yaml
  69. +29 −0 internal/generate/testdata/scaffold/development/app/values.yaml
  70. +24 −0 internal/generate/testdata/scaffold/production/metaphor.yaml
  71. +9 −0 internal/generate/testdata/scaffold/production/metaphor/Chart.yaml
  72. +29 −0 internal/generate/testdata/scaffold/production/metaphor/values.yaml
  73. +24 −0 internal/generate/testdata/scaffold/some-environment/some-app.yaml
  74. +9 −0 internal/generate/testdata/scaffold/some-environment/some-app/Chart.yaml
  75. +29 −0 internal/generate/testdata/scaffold/some-environment/some-app/values.yaml
  76. +19 −18 internal/gitShim/containerRegistryAuth.go
  77. +38 −62 internal/gitShim/init.go
  78. +2 −2 internal/helm/types.go
  79. +17 −18 internal/k3d/menu.go
  80. +107 −154 internal/launch/cmd.go
  81. +3 −3 internal/launch/constants.go
  82. +0 −37 internal/launch/utils.go
  83. +36 −35 internal/progress/command.go
  84. +14 −36 internal/progress/constants.go
  85. +20 −59 internal/progress/message.go
  86. +5 −5 internal/progress/progress.go
  87. +3 −1 internal/progress/styles.go
  88. +16 −16 internal/progress/types.go
  89. +133 −16 internal/provision/provision.go
  90. +138 −0 internal/provision/provisionWatcher.go
  91. +146 −0 internal/provision/provisionWatcher_test.go
  92. +4 −5 internal/provisionLogs/command.go
  93. +0 −29 internal/provisionLogs/constants.go
  94. +0 −31 internal/provisionLogs/message.go
  95. +3 −2 internal/provisionLogs/provisionLogs.go
  96. +2 −2 internal/provisionLogs/types.go
  97. +10 −7 internal/segment/segment.go
  98. +86 −0 internal/step/stepper.go
  99. +121 −0 internal/step/stepper_test.go
  100. +9 −6 internal/types/flags.go
  101. +3 −3 internal/types/proxy.go
  102. +134 −148 internal/utilities/flags.go
  103. +54 −68 internal/utilities/utilities.go
  104. +41 −39 main.go
  105. +2 −2 tools/aws-create-role.tf
11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "devcontainer",
"image": "ghcr.io/kubefirst/devcontainers/full",
"features": {},
"customizations": {
"vscode": {
"extensions": [],
"settings": {}
}
}
}
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.go]
indent_style = tab
indent_size = 4

[Makefile]
indent_style = tab
indent_size = 4
7 changes: 5 additions & 2 deletions .github/ISSUE_TEMPLATE/bugs.yml
Original file line number Diff line number Diff line change
@@ -20,11 +20,14 @@ body:
multiple: true
options:
- None specific
- Akamai
- AWS
- Azure
- Civo
- DigitalOcean
- Google Cloud
- k3d (local)
- K3s
- Vultr
validations:
required: true
@@ -75,7 +78,7 @@ body:
id: os
attributes:
label: Which Operating System?
description: Please add the architecture in the issue description. If you selected "Others", please specify in the textarea.
description: Please add the architecture in the issue description. If you selected "Other", please specify in the issue.
options:
- None specific
- macOS
@@ -99,7 +102,7 @@ body:
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/kubefirst/kubefirst/blob/main/CODE_OF_CONDUCT.md)
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/konstructio/kubefirst/blob/main/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Documentations
url: https://github.com/kubefirst/docs/issues/new?assignees=&labels=docs&template=docs.yml&title=%5BDocs%5D%3A+
url: https://github.com/konstructio/kubefirst-docs/issues/new?assignees=&labels=docs&template=docs.yml&title=%5BDocs%5D%3A+
about: Any suggestions related to the documentation, whether it's an issue, missing information, unclear steps or new page that should be created
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/features.yml
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ body:
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/kubefirst/kubefirst/blob/main/CODE_OF_CONDUCT.md)
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/konstructio/kubefirst/blob/main/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
10 changes: 5 additions & 5 deletions .github/workflows/check-signed.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
name: Validate if commits in PR are signed
on: pull_request
name: Validate if commits are signed
on: [pull_request, pull_request_target]

jobs:
signed-commits-check:
runs-on: ubuntu-latest
steps:

- name: Check out code
uses: actions/checkout@v3.5.3
- name: Check out the repository code
uses: actions/checkout@v4.1.4

- name: Check signed commits in PR
- name: Check if the commits are signed
uses: 1Password/check-signed-commits-action@v1
20 changes: 20 additions & 0 deletions .github/workflows/check-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run unit tests

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run GolangCI-Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60.3
- name: Test application
run: go test -short -v ./...
63 changes: 0 additions & 63 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/devrel-automations.yaml

This file was deleted.

45 changes: 7 additions & 38 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
@@ -16,8 +16,8 @@ jobs:
uses: actions/checkout@v2
- name: Update version file
run: echo $GITHUB_REF_NAME > VERSION.md
- name: Release kubefirst/gitops-template
run: gh release create -R kubefirst/gitops-template ${{ github.REF_NAME }} --notes "${{ env.RELEASE_NOTES }}"
- name: Release konstructio/gitops-template
run: gh release create -R konstructio/gitops-template ${{ github.REF_NAME }} --generate-notes
goreleaser:
runs-on: ubuntu-latest
steps:
@@ -28,47 +28,16 @@ jobs:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '>=1.18.0'
go-version-file: go.mod

-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

release-docker:
needs: goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
context: ./build
build-args: KUBEFIRST_VERSION=${{ github.REF_NAME }}
file: ./build/Dockerfile
tags: kubefirst/kubefirst:${{ github.REF_NAME }},kubefirst/kubefirst:latest
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: kubefirst/kubefirst
short-description: ${{ github.event.repository.description }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
30 changes: 14 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Test CI
name: Test CI

on:
push:
jobs:
on:
push:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Running Tests
run: |
docker-compose -f docker-compose-test.yaml build --no-cache \
&& docker compose -f docker-compose-test.yaml run kubefirst-unit-tests
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Running Docker Compose tests
run: |
docker-compose -f docker-compose-test.yaml build --no-cache \
&& docker compose -f docker-compose-test.yaml run kubefirst-unit-tests
Loading