Skip to content
Open
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
20 changes: 0 additions & 20 deletions .github/workflows/codecov-main.yaml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/docs-enhancer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Auto-Update Documentation

on:
issue_comment:
types: [created]

permissions:
contents: read
issues: read
pull-requests: read

jobs:
update-docs:
runs-on: ubuntu-latest
if: |
github.event.issue.pull_request &&
contains(github.event.comment.body, '[update-docs]')
steps:
- name: Get PR information
id: pr_info
if: github.event.issue.pull_request
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
PR_NUMBER=${{ github.event.issue.number }}
echo "Extracting PR information for PR #$PR_NUMBER"
PR_DATA=$(gh api repos/${{ github.repository }}/pulls/$PR_NUMBER)

HEAD_REF=$(echo "$PR_DATA" | jq -r '.head.ref')
HEAD_REPO=$(echo "$PR_DATA" | jq -r '.head.repo.full_name')
BASE_REF=$(echo "$PR_DATA" | jq -r '.base.ref')

echo "head_ref=$HEAD_REF" >> $GITHUB_OUTPUT
echo "head_repo=$HEAD_REPO" >> $GITHUB_OUTPUT
echo "base_ref=$BASE_REF" >> $GITHUB_OUTPUT
echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT

echo "PR info extracted: #$PR_NUMBER, base: $BASE_REF, head: $HEAD_REF"

- name: Checkout PR Code
uses: actions/checkout@v4
with:
repository: ${{ steps.pr_info.outputs.head_repo || github.repository }}
ref: ${{ steps.pr_info.outputs.head_ref || github.ref }}
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}

- name: Update Documentation
uses: csoceanu/code-to-docs@v1.0.12
with:
gemini-api-key: ${{ secrets.GEMINI_API_KEY }}
docs-repo-url: ${{ secrets.DOCS_REPO_URL }}
github-token: ${{ secrets.GH_TOKEN }}
pr-number: ${{ github.event.issue.number }}
pr-base: origin/${{ steps.pr_info.outputs.base_ref || 'main' }}
pr-head-sha: ${{ steps.pr_info.outputs.head_ref }}
55 changes: 0 additions & 55 deletions .github/workflows/kube-linter.yaml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/pr.yaml

This file was deleted.

22 changes: 15 additions & 7 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Adds namespace to all resources.
# Updated configuration to support enhanced documentation automation
# FEATURE: Added enhanced monitoring and webhook support for better observability and debugging
namespace: build-service-system

# Value of this field is prepended to the
Expand All @@ -9,28 +11,34 @@ namespace: build-service-system
namePrefix: build-service-

# Labels to add to all resources and selectors.
#labels:
#- includeSelectors: true
# pairs:
# someName: someValue
# NEW: Enable standardized labeling for resource identification and monitoring
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: build-service
app.kubernetes.io/component: controller
monitoring: enabled

resources:
#- ../crd
- ../rbac
- ../manager
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
# crd/kustomization.yaml
#- ../webhook
# ENABLED: Webhook server for validation and mutation
- ../webhook
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
#- ../certmanager
# ENABLED: Certificate manager for automated TLS certificate management
- ../certmanager

# [METRICS] Expose the controller manager metrics service.
- metrics_service.yaml
# [NETWORK POLICY] Protect the /metrics endpoint and Webhook Server with NetworkPolicy.
# Only Pod(s) running a namespace labeled with 'metrics: enabled' will be able to gather the metrics.
# Only CR(s) which requires webhooks and are applied on namespaces labeled with 'webhooks: enabled' will
# be able to communicate with the Webhook Server.
#- ../network-policy
# ENABLED: Network policies for enhanced security posture
- ../network-policy

# Uncomment the patches line if you enable Metrics, and/or are using webhooks and cert-manager
patches:
Expand Down