-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/feature/hotnews-operator-and-crd' into featu…
…re/operator-and-crd
- Loading branch information
Showing
61 changed files
with
5,730 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
[{"name":"washingtontimes","format":"xml","endpoint":"https://www.washingtontimes.com/rss/headlines/news/world"},{"name":"abc","format":"xml","endpoint":"https://abcnews.go.com/abcnews/internationalheadlines"},{"name":"bbc","format":"xml","endpoint":"https://feeds.bbci.co.uk/news/rss.xml"},{"name":"usatoday","format":"html","endpoint":"https://usatoday.com"}] | ||
[ | ||
{ | ||
"name": "washingtontimes", | ||
"format": "xml", | ||
"endpoint": "https://www.washingtontimes.com/rss/headlines/news/world" | ||
}, | ||
{ | ||
"name": "abc", | ||
"format": "xml", | ||
"endpoint": "https://abcnews.go.com/abcnews/internationalheadlines" | ||
}, | ||
{ | ||
"name": "bbc", | ||
"format": "xml", | ||
"endpoint": "https://feeds.bbci.co.uk/news/rss.xml" | ||
}, | ||
{ | ||
"name": "usatoday", | ||
"format": "html", | ||
"endpoint": "https://usatoday.com" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ package parsers | |
|
||
import ( | ||
"encoding/json" | ||
"errors" | ||
"gogator/cmd/types" | ||
"io" | ||
"os" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"helm@0.9.0" | ||
"kubernetes-helm@3.15.3" | ||
], | ||
"shell": { | ||
"init_hook": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,34 +217,6 @@ | |
} | ||
} | ||
}, | ||
"[email protected]": { | ||
"last_modified": "2024-07-07T07:43:47Z", | ||
"resolved": "github:NixOS/nixpkgs/b60793b86201040d9dee019a05089a9150d08b5b#helm", | ||
"source": "devbox-search", | ||
"version": "0.9.0", | ||
"systems": { | ||
"aarch64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/kc5gihv77ww1gbfvcgqzihjgswx9dx7m-helm-0.9.0", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/kc5gihv77ww1gbfvcgqzihjgswx9dx7m-helm-0.9.0" | ||
}, | ||
"x86_64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/faywfsglfwrlqrlmwsb69j658mpc7nwg-helm-0.9.0", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/faywfsglfwrlqrlmwsb69j658mpc7nwg-helm-0.9.0" | ||
} | ||
} | ||
}, | ||
"[email protected]": { | ||
"last_modified": "2024-07-20T09:11:00Z", | ||
"resolved": "github:NixOS/nixpkgs/6e14bbce7bea6c4efd7adfa88a40dac750d80100#kubebuilder", | ||
|
@@ -377,6 +349,54 @@ | |
} | ||
} | ||
}, | ||
"[email protected]": { | ||
"last_modified": "2024-07-20T09:11:00Z", | ||
"resolved": "github:NixOS/nixpkgs/6e14bbce7bea6c4efd7adfa88a40dac750d80100#kubernetes-helm", | ||
"source": "devbox-search", | ||
"version": "3.15.3", | ||
"systems": { | ||
"aarch64-darwin": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/z4w7bnylg9h3f543yrf9bcwkxzfs82z2-kubernetes-helm-3.15.3", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/z4w7bnylg9h3f543yrf9bcwkxzfs82z2-kubernetes-helm-3.15.3" | ||
}, | ||
"aarch64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/aa4jksq9ljgha8plw5cqyxf60n931dir-kubernetes-helm-3.15.3", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/aa4jksq9ljgha8plw5cqyxf60n931dir-kubernetes-helm-3.15.3" | ||
}, | ||
"x86_64-darwin": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/fbyg2gsaf4mwml30jrsd71c90yr6f5rz-kubernetes-helm-3.15.3", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/fbyg2gsaf4mwml30jrsd71c90yr6f5rz-kubernetes-helm-3.15.3" | ||
}, | ||
"x86_64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/n4p0zh1s8jz9mqf1r1pki23kviq4waa7-kubernetes-helm-3.15.3", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/n4p0zh1s8jz9mqf1r1pki23kviq4waa7-kubernetes-helm-3.15.3" | ||
} | ||
} | ||
}, | ||
"[email protected]": { | ||
"last_modified": "2024-07-21T11:05:48Z", | ||
"resolved": "github:NixOS/nixpkgs/c19d62ad2265b16e2199c5feb4650fe459ca1c46#kustomize", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
/* | ||
Package v1 contains CRD definitions for the Feed resource, and Validation webhook that ensures uniqueness of the | ||
Package v1 contains CRD definitions for the Feed and HotNews resources. Validation and mutating webhooks that ensures uniqueness of the | ||
feed. | ||
This package includes the following components: | ||
- Custom Resource Definition for the Feed resource. | ||
- Webhook for validating Feed resources. | ||
- CRD for the HotNews resource. | ||
- Validating and mutating webhooks for the HotNews resource. | ||
The Feed resource represents a news feed with a name and a link. | ||
The webhook ensures that the Feed resources meet the required validation criteria, in particular: | ||
- Name should be unique within namespace, and should not be more than 20 symbols | ||
- Endpoint of feed should be either http or https url. | ||
The HotNews resource represents a group of news feeds with a name and a list of feed names. | ||
This CRD allows us to create hot news based on available Feeds. | ||
The mutating webhook sets the default values for the HotNews resource, if they are not specified, like: | ||
- Spec.SummaryConfig.TitlesCount should be 10 by default. | ||
The validating webhook ensures that the HotNews resources meet the required validation criteria, in particular: | ||
- Either Feeds or FeedGroups should be specified. | ||
- DateStart should be before DateEnd. | ||
- All feed names should be correct. | ||
- Keywords are not empty. | ||
*/ | ||
package v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.