Skip to content

Commit

Permalink
Rename config to policy (#50)
Browse files Browse the repository at this point in the history
* Rename dataset => data_stream / data stream

* Renaming spec folder

* Changing name => dataset

* Rebase changes

* Rename config_templates to policy_templates

* Fix: make check

Co-authored-by: Shaunak Kashyap <[email protected]>
  • Loading branch information
mtojek and ycombinator authored Sep 30, 2020
1 parent 734e3cc commit 763ab44
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ require (
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415
github.com/xeipuuv/gojsonschema v1.2.0
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
golang.org/x/tools v0.0.0-20200909210914-44a2922940c2 // indirect
golang.org/x/tools v0.0.0-20200929223013-bf155c11ec6f // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
)
4 changes: 4 additions & 0 deletions code/go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7 h1:EBZoQjiKKPaLbPrbpssUfuH
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200909210914-44a2922940c2 h1:daAzF/Ytp6YSqJDu1hZJthJIhOrsAa7UbIkziU1t0K4=
golang.org/x/tools v0.0.0-20200909210914-44a2922940c2/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE=
golang.org/x/tools v0.0.0-20200925191224-5d1fdd8fa346 h1:hzJjkvxUIF3bSt+v8N5tBQNx/605vszZJ+3XsIamzZo=
golang.org/x/tools v0.0.0-20200925191224-5d1fdd8fa346/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
golang.org/x/tools v0.0.0-20200929223013-bf155c11ec6f h1:7+Nz9MyPqt2qMCTvNiRy1G0zYfkB7UCa+ayT6uVvbyI=
golang.org/x/tools v0.0.0-20200929223013-bf155c11ec6f/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
2 changes: 1 addition & 1 deletion code/go/internal/spec/statik.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion code/go/internal/validator/test/packages/good/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 0.1.2
release: beta
conditions:
kibana.version: '^7.9.0'
config_templates:
policy_templates:
- name: apache
title: Apache logs and metrics
description: Collect logs and metrics from Apache instances
Expand Down
12 changes: 6 additions & 6 deletions versions/1/manifest.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,30 +158,30 @@ spec:
required:
- src
- title
config_templates:
description: List of configuration templates offered by this package.
policy_templates:
description: List of policy templates offered by this package.
type: array
items:
type: object
additionalProperties: false
properties:
name:
description: Name of configuration template.
description: Name of policy template.
type: string
examples:
- apache
title:
description: Title of configuration template.
description: Title of policy template.
type: string
examples:
- Apache logs and metrics
description:
description: Longer description of configuration template.
description: Longer description of policy template.
type: string
examples:
- Collect logs and metrics from Apache instances
inputs:
description: List of inputs supported by configuration template.
description: List of inputs supported by policy template.
type: array
items:
type: object
Expand Down

0 comments on commit 763ab44

Please sign in to comment.