Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 1.05 KB

README.md

File metadata and controls

50 lines (42 loc) · 1.05 KB

Github action to apply manifests stored in git to the kore api

kustomization.yaml by convention must be in the root of the repository, apart from that you can use any importers, transformers, and general templating logic etc with kustomize to build up the resources to send to the Kore api server.

Example usage

# .github/workflows/ci.yaml
name: ci

on:
  push:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: appvia/kore-github-action:v1.0.0
        id: kore
        with:
          kore_token: '${{ secrets.KORE_TOKEN }}'
          kore_server: '${{ secrets.KORE_SERVER }}'
          apply: ${{ github.ref == 'refs/heads/main' }}
# kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
  name: GitOps Managed Kore Resources

resources:
  - user1.yaml
# user1.yaml
apiVersion: org.kore.appvia.io/v1
kind: User
metadata:
  name: myuser
  namespace: kore
spec:
  disabled: false
  email: myuser@local
  username: myuser