Skip to content
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

v3.0.7 release 🚀 #638

Merged
merged 68 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
ce477b4
feat: added azure table support
AvineshTripathi Mar 12, 2023
5fb661c
Merge pull request #615 from AvineshTripathi/table-storage
mlabouardy Mar 13, 2023
02d0525
style: charts colors
victorgaard Mar 13, 2023
8f693d6
fix: modal on firefox
victorgaard Mar 13, 2023
0aa3938
Merge pull request #617 from tailwarden/feature/tech-867
victorgaard Mar 14, 2023
1dbbf02
Merge pull request #616 from tailwarden/feature/tech-941
victorgaard Mar 14, 2023
087f62e
feat: add csv export endpoint for resources
eneskaya Mar 14, 2023
3706a30
Added support for AWS IAM Groups
fpapadamis Mar 14, 2023
22be828
chore: refactor code
eneskaya Mar 15, 2023
fdb3a0a
feat: add export csv for custom views
eneskaya Mar 15, 2023
f7a6cbb
chore(deps): bump webpack from 5.75.0 to 5.76.1 in /dashboard
dependabot[bot] Mar 15, 2023
b685b5d
Changed config variable value
fpapadamis Mar 15, 2023
cb65309
fix: don't forget to flush 💩
eneskaya Mar 15, 2023
773f443
Added support for AWS IAM OIDC Providers
fpapadamis Mar 15, 2023
aad1ebe
chore: add gh action for building/testing cli
eneskaya Mar 15, 2023
b42231e
Merge pull request #624 from tailwarden/dependabot/npm_and_yarn/dashb…
mlabouardy Mar 15, 2023
e84edf4
chore: add gh action for building/testing cli
eneskaya Mar 15, 2023
f5e4002
chore: remove unneeded csv tags
eneskaya Mar 15, 2023
2e26589
Changed context parameter
fpapadamis Mar 15, 2023
81f7080
Changed context parameter
fpapadamis Mar 15, 2023
144e294
Merge pull request #623 from fpapadamis/feat/541-Support-AWS-IAM-groups
eneskaya Mar 15, 2023
cd8b527
Merge branch 'develop' into feat/543-Support-AWS-IAM-OIDC-provider
mlabouardy Mar 15, 2023
5f59c36
Merge pull request #625 from fpapadamis/feat/543-Support-AWS-IAM-OIDC…
mlabouardy Mar 15, 2023
003c512
Update CONTRIBUTING.md
GenMech Mar 15, 2023
fa73af4
Merge pull request #627 from GenMech/fix-CommunityLink
mlabouardy Mar 15, 2023
d55e635
Update CONTRIBUTING.md
GenMech Mar 15, 2023
e385ce0
added dashboard contributor video to readme
Mar 15, 2023
091d3e0
chore: run for every PR
eneskaya Mar 15, 2023
b47e844
Merge pull request #619 from tailwarden/feature/tech-969
mlabouardy Mar 16, 2023
fdb2427
Merge pull request #628 from GenMech/fix-CommunityLink
mlabouardy Mar 16, 2023
d79cbe8
Merge pull request #626 from tailwarden/feature/tech-973
mlabouardy Mar 16, 2023
af5ea1a
chore: add release workflow
eneskaya Mar 15, 2023
7b13a8e
chore: configure release workflow on push tags
eneskaya Mar 16, 2023
faf5fcc
chore: remove circleci config
eneskaya Mar 16, 2023
f0e4a7b
feat: move inline svgs to icon components
victorgaard Mar 14, 2023
b2914ae
feat: add export CSV component
victorgaard Mar 14, 2023
2326c3c
feat: writing unit tests
victorgaard Mar 14, 2023
a2919e6
chore: renaming file
victorgaard Mar 14, 2023
730ad6d
feat: add to storybook
victorgaard Mar 14, 2023
1638ade
chore: change exportCSV url
victorgaard Mar 15, 2023
055379f
feat: hide download CSV button on filtered resources
victorgaard Mar 15, 2023
63dfd09
chore: add more config to goreleaser
eneskaya Mar 16, 2023
26e947c
feat: add disabled state for filtered list
victorgaard Mar 16, 2023
64da826
feat: add test to expect tooltip on disabled state
victorgaard Mar 16, 2023
8694d37
fix: lint
victorgaard Mar 16, 2023
6be5fc7
chore: address PR review comments
victorgaard Mar 16, 2023
279259f
fix: export CSV stories
victorgaard Mar 16, 2023
11bdf23
chore: add more config to goreleaser
eneskaya Mar 16, 2023
f51985b
chore: add more config to goreleaser
eneskaya Mar 16, 2023
f9f4304
chore: change url for brew taps
eneskaya Mar 16, 2023
8ef4080
chore: add golangci-lint to pr action
eneskaya Mar 17, 2023
d4f1170
Merge pull request #620 from tailwarden/feature/tech-966
mlabouardy Mar 17, 2023
e944fc7
Merge pull request #630 from tailwarden/feature/tech-970
mlabouardy Mar 17, 2023
a4a3236
Merge pull request #635 from tailwarden/chore/go-lint
mlabouardy Mar 17, 2023
3932945
chore: add golangci-lint configuration
eneskaya Mar 17, 2023
545c598
chore: set timeout to 1m
eneskaya Mar 17, 2023
06baed6
chore: add skip-pkg-cache: true
eneskaya Mar 17, 2023
d92fa40
chore: change order
eneskaya Mar 17, 2023
70fb8ca
chore: set timeout to 5m
eneskaya Mar 17, 2023
c9acf89
update method to display YT video on readme file
Mar 17, 2023
2b32d60
update correct YT link
Mar 17, 2023
8b392f1
Merge branch 'develop' into add/video-to-dashboard-readme
mlabouardy Mar 17, 2023
49f3a2f
Merge pull request #629 from tailwarden/add/video-to-dashboard-readme
mlabouardy Mar 17, 2023
2a92352
chore: fix all lint errors
eneskaya Mar 17, 2023
9d84a79
chore: disable lint action for now, because of golangci/golangci-lint…
eneskaya Mar 17, 2023
5858d84
Merge branch 'develop' into chore/go-lint
eneskaya Mar 17, 2023
5526131
Merge pull request #636 from tailwarden/chore/go-lint
mlabouardy Mar 17, 2023
be5dd6d
chore: bump v3.0.7
mlabouardy Mar 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 0 additions & 149 deletions .circleci/config.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/build_test_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Build and Test Komiser PRs"
on: pull_request

jobs:
build_test_dashboard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: "dashboard/package-lock.json"

- run: npm ci
working-directory: dashboard

- run: npm run lint
working-directory: dashboard

- run: npm test
working-directory: dashboard

- run: npm run build
working-directory: dashboard

build_test_cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.2

# FIXME: https://github.com/golangci/golangci-lint-action/issues/677
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v3
# with:
# skip-pkg-cache: true

- name: Install dependencies
run: go mod download

- name: Test
run: make test

- name: Build
run: make build
77 changes: 77 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: "Release Komiser"
on:
push:
# run only against tags
tags:
- "*"

jobs:
build_frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: "dashboard/package-lock.json"

- run: npm ci
working-directory: dashboard

- run: npm run build
working-directory: dashboard

- uses: actions/upload-artifact@v3
with:
name: dashboard-build
path: dashboard/out

build_komiser:
runs-on: ubuntu-latest
needs: build_frontend
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: git fetch --force --tags

- uses: actions/setup-go@v4
with:
go-version: ">=1.20.2"
cache: true

- name: Install go-bin-data
run: |
go install -a -v github.com/go-bindata/go-bindata/...@latest
go install -v github.com/elazarl/go-bindata-assetfs/...

- uses: actions/download-artifact@v3
with:
name: dashboard-build
path: out

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_LOGIN }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ bin
*.db

.vscode/
.env
.env
dist/
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
run:
timeout: 5m
skip-dirs:
- dashboard
75 changes: 75 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
before:
hooks:
- go mod tidy
- go-bindata-assetfs -o internal/api/v1/template.go out/...
- sed -i -e 's/package main/package v1/g' internal/api/v1/template.go
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64

blobs:
- provider: s3
bucket: komiser-releases
folder: "/{{.Version}}"

brews:
- tap:
owner: tailwarden
name: homebrew-komiser
branch: master
folder: Formula
homepage: "https://komiser.io"
description: "Komiser.io command line interface"
url_template: "https://cli.komiser.io/{{ .Tag }}/{{ .ArtifactName }}"

dockers:
- image_templates:
- tailwarden/komiser:{{ .Tag }}
- tailwarden/komiser:latest
- tailwarden/komiser:{{ .FullCommit }}
use: buildx
build_flag_templates:
- "--platform linux/amd64,linux/arm64"
- "--build-arg SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY"

release:
github:
owner: tailwarden
name: komiser
draft: true

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
# The lines beneath this are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ We are always thrilled to receive pull requests, and do our best to process them

## Guidelines

We recommend discussing your plans on our Discord (join our <a href="https://discord.oraculi.io/">community server</a>) head to the `contributors` section before starting to code - especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give feedback on your design, and maybe point out if someone else is working on the same thing.
We recommend discussing your plans on our Discord (join our <a href="https://discord.tailwarden.com">community server</a>) head to the `contributors` section before starting to code - especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give feedback on your design, and maybe point out if someone else is working on the same thing.

Any significant improvements should be documented as a github issue before anybody starts working on it. Please take a moment to check that an issue doesn’t already exist documenting your bug report or improvement proposal. If it does, it never hurts to add a quick “+1” or “I have this problem too”. This will help prioritize the most common problems and requests

Expand All @@ -19,6 +19,7 @@ Fork the repo and make changes on your fork in a feature branch based on the mas
- Submit unit tests for your changes. Go has a great test framework built in; use it! Take a look at existing tests for inspiration. Run the full test suite on your branch before submitting a pull request.
- Make sure you include relevant updates or additions to documentation when creating or modifying features.
- Write clean code. Universally formatted code promotes ease of writing, reading, and maintenance. Always run go fmt before committing your changes. Most editors have plugins that do this automatically.
- While submitting Pull Request, Always remember to change the base branch from <a href="https://github.com/tailwarden/komiser/tree/master">master</a> to <a href="https://github.com/tailwarden/komiser/tree/develop">develop</a>. This will keep your Pull Request away from conflicts. **Master brach always reflects the releases and major fixes, So that it can be used by the end users.**

## How to add a new cloud provider?

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ MAINTAINER mlabouardy <mohamed@tailwarden.com>
RUN echo "Running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log

ENV SEGMENT_WRITE_KEY $SEGMENT_WRITE_KEY
ENV VERSION 3.0.6
ENV VERSION 3.0.7

RUN apk update && apk add curl
RUN curl -L https://cli.komiser.io/$VERSION/linux/komiser -o /usr/bin/komiser && \
Expand Down
Loading