Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SkYNewZ committed Sep 15, 2022
1 parent c33e71c commit 5bda3f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
.PHONY: deploy
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
cd config/default && $(KUSTOMIZE) edit set label "app.kubernetes.io/version:${VERSION}"

# Selectors are immutable and 'kustomize edit set label' render 'commonlabels'. Cannot be used to set version
# cd config/default && $(KUSTOMIZE) edit set label "app.kubernetes.io/version:${VERSION}"

$(KUSTOMIZE) build config/default | kubectl apply -f -

.PHONY: undeploy
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Manage your [Put.io](https://app.put.io/) RSS feeds with Kubernetes Custom Resou
Before creating an RSS feed resource, you must configure a secret containing an OAuth2 token to interact with Put.io
API. You can get one here https://app.put.io/account/api/apps/new.

Then, place the OAuth2 token into a Kubernetes secret. For example :
Then, place the OAuth2 token into a Kubernetes secret. For example:

```
kubectl -n default create secret generic putio-token --from-literal=token=<your oauth2 token>
Expand All @@ -19,19 +19,16 @@ Then, you can create RSS feed by specifying this secret. You can see examples [h
.

```yaml
apiVersion: skynewz.dev/v1alpha1
apiVersion: putio.skynewz.dev/v1alpha1
kind: Feed
metadata:
name: house-of-the-dragons
namespace: default
spec:
keyword: "House.of.the.Dragon.S01E&.MULTi.1080p.WEB.H264-FW"
rss_source_url: "https://rss.site.fr/rss?id=2184"
delete_old_files: false
title: "House of the Dragon"
paused: true
parent_dir_id: 1022542820 # 'House of the Dragon' folder
dont_process_whole_feed: true
authSecretRef:
key: putio-token
name: token
Expand Down
2 changes: 1 addition & 1 deletion config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namePrefix: putio-operator-

# Labels to add to all resources and selectors.
labels:
- includeSelectors: true
- includeSelectors: false
pairs:
app.kubernetes.io/part-of: putio-operator
app.kubernetes.io/managed-by: kubectl
Expand Down

0 comments on commit 5bda3f8

Please sign in to comment.