Skip to content

Kubernetes namespace report

Actions
GitHub Action to report info and logs from the current namespace.
v1.2.0
Latest
Star (6)

GitHub Action: Emit a k8s namespace report

GitHub Action badge

GitHub Action to report info and logs from the current namespace.

Optional input parameters

  • namespace: Emit a report for another namespace than the kubeconfig's current context.
  • pod-selector: Limit pod reporting to pods with certain labels, example: app.kubernetes.io/component notin (secret-server,boring-server).
  • important-workloads: Always provide logs of these workloads. Use space a separator, example: deploy/my-deployment sts/my-statefulset.

Example

name: Example workflow

on:
  pull_request:
  push:
  workflow_dispatch:

jobs:
  k8s-test:
    runs-on: ubuntu-22.04
    steps:
      # GitHub Action reference: https://github.com/jupyterhub/action-k3s-helm
      - name: Setup k8s
        uses: jupyterhub/action-k3s-helm@v4
        with:
          k3s-channel: stable    # https://update.k3s.io/v1-release/channels

      # GitHub Action reference: https://github.com/jupyterhub/action-k8s-namespace-report
      - name: Kubernetes namespace report
        uses: jupyterhub/action-k8s-namespace-report@v1
        if: always()
        # with:
        #   namespace: my-namespace
        #   pod-selector: app.kubernetes.io/component notin (secret-server,boring-server)
        #   important-workloads: deploy/my-deployment sts/my-statefulset

Preview

Live example

You can inspect recent test runs here.

GIF Animation

Kubernetes namespace report is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

GitHub Action to report info and logs from the current namespace.
v1.2.0
Latest

Kubernetes namespace report is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.