atomic-reader

module
v0.0.0-...-508e5c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2025 License: Apache-2.0

README

Atomic Reader

An Atom and RSS 2.0 feed reader for Kubernetes.

Generating code

First, install the controller-gen tool.

go install k8s.io/code-generator/cmd/client-gen@latest
go install sigs.k8s.io/controller-tools/cmd/controller-gen@latest

Then, generate crds and DeepCopy/runtime.Object implementation methods.

client-gen --clientset-name="versioned" `
  --fake-clientset=false `
  --input="rss/v1" `
  --input-base="gitlab.com/atomic-reader-com/atomic-reader/pkg/apis" `
  --output-dir="pkg/client/clientset/" `
  --output-pkg gitlab.com/atomic-reader-com/atomic-reader/pkg/client/clientset

controller-gen crd paths=pkg/apis/rss/v1/types_subscription.go
controller-gen object paths=pkg/apis/rss/v1/types_subscription.go

Running a local cluster

k3d cluster create --config ./config/clusters/dev.yaml

Installing the Helm chart

cd ./config/
kubectl apply -f ./crd/

cd ./chart/
kubectl create ns atomic-reader-com
helm -n atomic-reader-com install atomic-reader .

Subscribing to feeds

cd ./config/examples/
kubectl create namespace user-namespace
kubectl -n user-namespace create secret generic discord-bot --from-literal=DISCORD_CLIENT_SECRET=...
kubectl -n user-namespace apply -f syntax-fm.yaml

Directories

Path Synopsis
cmd
Controller command
internal
pkg
apis/rss/v1
Package v1
Package v1
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/rss/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL