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

Rename kubehound-ingestor to kubehound #252

Merged
merged 6 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 16 additions & 16 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
docker-build-push:
runs-on: ubuntu-latest
strategy:
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
matrix:
include:
- dockerfile: deployments/kubehound/kubegraph/Dockerfile
image: graph
workdir: deployments/kubehound/kubegraph/
- dockerfile: deployments/kubehound/notebook/Dockerfile
image: ui
workdir: deployments/kubehound/notebook/
- dockerfile: deployments/kubehound/ingestor/Dockerfile
image: ingestor
workdir: .
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
matrix:
include:
- dockerfile: deployments/kubehound/graph/Dockerfile
image: graph
workdir: deployments/kubehound/graph/
- dockerfile: deployments/kubehound/ui/Dockerfile
image: ui
workdir: deployments/kubehound/ui/
- dockerfile: deployments/kubehound/kubehound/Dockerfile
image: kubehound
workdir: .
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -97,8 +97,8 @@ jobs:
build-args: |
VERSION=${{ github.ref_name }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image }}:latest

- name: Build and push Docker image
if: ${{ github.event_name == 'workflow_dispatch' }}
Expand All @@ -111,5 +111,5 @@ jobs:
build-args: |
VERSION=${{ github.sha }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image }}:snapshot-${{ github.sha }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image }}:snapshot-${{ github.sha }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image }}:latest
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ bin/
*.dll
*.so
*.dylib
*.jar
*.class
*.lst

Expand Down Expand Up @@ -53,7 +52,7 @@ test/system/generator/generator
scripts/collectors/

# java
deployments/kubehound/kubegraph/dsl/kubehound/target
deployments/kubehound/graph/dsl/kubehound/target

# personal settings
.vscode/settings.json
Expand Down Expand Up @@ -100,4 +99,4 @@ override.tf.json

# Ignore CLI configuration files
.terraformrc
terraform.rc
terraform.rc
1 change: 0 additions & 1 deletion deployments/kubehound/docker-compose.dev.datadog.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
services:
datadog:
image: gcr.io/datadoghq/agent:7-jmx
build:
context: datadog
dockerfile: Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion deployments/kubehound/docker-compose.dev.graph.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: kubehound-dev
services:
kubegraph:
build: ./kubegraph/
build: ./graph/
ports:
- "127.0.0.1:8182:8182"
- "127.0.0.1:8099:8099"
2 changes: 1 addition & 1 deletion deployments/kubehound/docker-compose.dev.ingestor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
grpc:
build:
context: ../../
dockerfile: deployments/kubehound/ingestor/Dockerfile
dockerfile: deployments/kubehound/kubehound/Dockerfile
restart: unless-stopped
ports:
- "127.0.0.1:9000:9000"
Expand Down
3 changes: 0 additions & 3 deletions deployments/kubehound/docker-compose.release.datadog.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
services:
datadog:
image: gcr.io/datadoghq/agent:7-jmx
build:
context: datadog
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "127.0.0.1:8225:8125/UDP"
Expand Down
2 changes: 1 addition & 1 deletion deployments/kubehound/docker-compose.testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
- "127.0.0.1:27018:27017"

kubegraph:
build: ./kubegraph/
build: ./graph/
ports:
- "127.0.0.1:8183:8182"
- "127.0.0.1:8090:8099"
8 changes: 8 additions & 0 deletions deployments/kubehound/ui/build_notebooks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

source /tmp/venv/bin/activate

init_setup_path="${find . -iname "initial_setup.ipynb}"

for i in $(find . -iname "*.ipynb" -maxdepth 1); do nbmerge $init_setup_path "$i";done
Loading