From 5bda3f87df45d3a904ba165ec89dca6caa06f3b2 Mon Sep 17 00:00:00 2001 From: Quentin Lemaire Date: Thu, 15 Sep 2022 20:30:26 +0200 Subject: [PATCH] Update README.md --- Makefile | 5 ++++- README.md | 7 ++----- config/default/kustomization.yaml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 3eaab24..1fbd7ee 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index da6912a..5106dc3 100644 --- a/README.md +++ b/README.md @@ -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= @@ -19,7 +19,7 @@ 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 @@ -27,11 +27,8 @@ metadata: 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 diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index caf0d8a..b1f57d3 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -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