Skip to content

Commit

Permalink
Merge pull request #3437 from nikhita/committee-sigs-yaml
Browse files Browse the repository at this point in the history
generator: add support for committees
  • Loading branch information
k8s-ci-robot authored Mar 18, 2019
2 parents 49f183e + 2620823 commit 45fd380
Show file tree
Hide file tree
Showing 16 changed files with 373 additions and 33 deletions.
2 changes: 1 addition & 1 deletion OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ approvers:
- idvoretskyi
- jdumars
- parispittman
- steering-committee
- committee-steering
29 changes: 15 additions & 14 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,19 @@ aliases:
- joelsmith
- cji
- jaybeale
## BEGIN CUSTOM CONTENT
steering-committee:
committee-code-of-conduct:
- jdumars
- parispittman
- carolynvs
- eparis
- bradamant3
committee-product-security:
- philips
- jessfraz
- cjcullen
- tallclair
- liggitt
committee-steering:
- bgrant0607
- brendanburns
- derekwaynecarr
Expand All @@ -172,16 +183,6 @@ aliases:
- smarterclayton
- spiffxp
- timothysc
code-of-conduct-committee:
- jdumars
- parispittman
- eparis
- carolynvs
- bradamant3
product-security-committee:
- philips
- jessfraz
- cjcullen
- tallclair
- liggitt
## BEGIN CUSTOM CONTENT

## END CUSTOM CONTENT
4 changes: 2 additions & 2 deletions committee-code-of-conduct/OWNERS
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# See the OWNERS docs at https://go.k8s.io/owners

reviewers:
- code-of-conduct-committee
- committee-code-of-conduct
approvers:
- code-of-conduct-committee
- committee-code-of-conduct
labels:
- committee/conduct
36 changes: 35 additions & 1 deletion committee-code-of-conduct/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,40 @@
# Kubernetes Code of Conduct Committee (CoCC)
<!---
This is an autogenerated file!
Please do not edit this file directly, but instead make changes to the
sigs.yaml file in the project root.
To understand how this file is generated, see https://git.k8s.io/community/generator/README.md
--->
# Code of Conduct Committee

The Kubernetes Code of Conduct Committee (CoCC) is the body that is responsible for enforcing and maintaining the Kubernetes Code of Conduct.


## Members

* Jaice Singer Dumars (**[@jdumars](https://github.com/jdumars)**), Google
* Paris Pittman (**[@parispittman](https://github.com/parispittman)**), Google
* Carolyn Van Slyck (**[@carolynvs](https://github.com/carolynvs)**), Microsoft
* Eric Paris (**[@eparis](https://github.com/eparis)**), Red Hat
* Jennifer Rondeau (**[@bradamant3](https://github.com/bradamant3)**), VMware

## Contact
* Private Mailing List: conduct@kubernetes.io
* [Open Community Issues/PRs](https://github.com/kubernetes/community/labels/ug%2Fconduct)

## GitHub Teams

The below teams can be mentioned on issues and PRs in order to get attention from the right people.
Note that the links to display team membership will only work if you are a member of the org.

| Team Name | Details | Description |
| --------- |:-------:| ----------- |
| @kubernetes/code-of-conduct-committee | [link](https://github.com/orgs/kubernetes/teams/code-of-conduct-committee) | General Discussion |

<!-- BEGIN CUSTOM CONTENT -->
## Terms

The members and their terms are as follows:
- Jaice Singer Dumars (Google) - 2 years
- Paris Pittman (Google) - 2 years
Expand All @@ -12,3 +45,4 @@ The members and their terms are as follows:
Please see the [bootstrapping document](./bootstrapping-process.md) for more information on how members are picked, their responsibilities, and how the committee will initially function.

_More information on how to contact this committee and learn about its process to come in the near future. For now, any Code of Conduct or Code of Conduct Committee concerns can be directed to <conduct@kubernetes.io>_.
<!-- END CUSTOM CONTENT -->
4 changes: 2 additions & 2 deletions committee-product-security/OWNERS
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# See the OWNERS docs at https://go.k8s.io/owners

reviewers:
- product-security-committee
- committee-product-security
approvers:
- product-security-committee
- committee-product-security
labels:
- committee/product-security
38 changes: 35 additions & 3 deletions committee-product-security/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,40 @@
# Kubernetes Product Security Committee
<!---
This is an autogenerated file!
Please do not edit this file directly, but instead make changes to the
sigs.yaml file in the project root.
To understand how this file is generated, see https://git.k8s.io/community/generator/README.md
--->
# Product Security Committee

The Kubernetes Product Security Committee is the body that is responsible for receiving and responding to reports of security issues in Kubernetes products.

Current committee members are listed on the [Product Security Committee section](https://git.k8s.io/security/security-release-process.md#product-security-committee-psc) of the committee's documentation.
Information on how members are selected is in the [Product Security Committee Membership section](https://git.k8s.io/security/security-release-process.md#product-security-committee-membership) of the same document.

## Members

* Brandon Philips (**[@philips](https://github.com/philips)**), Red Hat
* Jess Frazelle (**[@jessfraz](https://github.com/jessfraz)**)
* CJ Cullen (**[@cjcullen](https://github.com/cjcullen)**), Google
* Tim Allclair (**[@tallclair](https://github.com/tallclair)**), Google
* Jordan Liggitt (**[@liggitt](https://github.com/liggitt)**), Google

## Contact
* Private Mailing List: security@kubernetes.io
* [Open Community Issues/PRs](https://github.com/kubernetes/community/labels/ug%2Fproduct-security)

## GitHub Teams

The below teams can be mentioned on issues and PRs in order to get attention from the right people.
Note that the links to display team membership will only work if you are a member of the org.

| Team Name | Details | Description |
| --------- |:-------:| ----------- |
| @kubernetes/product-security-committee | [link](https://github.com/orgs/kubernetes/teams/product-security-committee) | General Discussion |

<!-- BEGIN CUSTOM CONTENT -->
**Note**: Information on how members are selected can be found
[here](https://git.k8s.io/security/security-release-process.md#product-security-committee-membership).

_To report a security issue, please email the private security@kubernetes.io list with the security details and the details expected for all Kubernetes bug reports._
<!-- END CUSTOM CONTENT -->
4 changes: 2 additions & 2 deletions committee-steering/OWNERS
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# See the OWNERS docs at https://go.k8s.io/owners

reviewers:
- steering-committee
- committee-steering
approvers:
- steering-committee
- committee-steering
labels:
- committee/steering
50 changes: 50 additions & 0 deletions committee-steering/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!---
This is an autogenerated file!
Please do not edit this file directly, but instead make changes to the
sigs.yaml file in the project root.
To understand how this file is generated, see https://git.k8s.io/community/generator/README.md
--->
# Steering Committee

The Kubernetes Steering Committee is the governing body of the Kubernetes project, providing decision-making and oversight pertaining to the Kubernetes project bylaws, sub-organizations, and financial planning. The Steering Committee also defines the project values and structure.

The [charter](https://git.k8s.io/steering/charter.md) defines the scope and governance of the Steering Committee.

## Meetings
* Public Steering Committee Meeting: [Wednesdays at 13:00 PT (Pacific Time)](https://bit.ly/k8s-steering-wd) (biweekly). [Convert to your timezone](http://www.thetimezoneconverter.com/?t=13:00&tz=PT%20%28Pacific%20Time%29).
* [Meeting recordings](https://www.youtube.com/watch?v=YAzgJRQxsdc&list=PL69nYSiGNLP1yP1B_nd9-drjoxp0Q14qM).

## Members

* Brian Grant (**[@bgrant0607](https://github.com/bgrant0607)**), Google
* Brendan Burns (**[@brendanburns](https://github.com/brendanburns)**), Microsoft
* Derek Carr (**[@derekwaynecarr](https://github.com/derekwaynecarr)**), Red Hat
* Davanum Srinivas (**[@dims](https://github.com/dims)**), Huawei
* Joe Beda (**[@jbeda](https://github.com/jbeda)**), VMware
* Michelle Noorali (**[@michelleN](https://github.com/michelleN)**), Microsoft
* Brandon Philips (**[@philips](https://github.com/philips)**), Red Hat
* Phillip Wittrock (**[@pwittrock](https://github.com/pwittrock)**), Google
* Sarah Novotny (**[@sarahnovotny](https://github.com/sarahnovotny)**), Google
* Clayton Coleman (**[@smarterclayton](https://github.com/smarterclayton)**), Red Hat
* Aaron Crickenberger (**[@spiffxp](https://github.com/spiffxp)**), Google
* Timothy St. Clair (**[@timothysc](https://github.com/timothysc)**), VMware

## Contact
* [Mailing list](https://groups.google.com/a/kubernetes.io/forum/#!forum/steering)
* Private Mailing List: steering-private@kubernetes.io
* [Open Community Issues/PRs](https://github.com/kubernetes/community/labels/ug%2Fsteering)

## GitHub Teams

The below teams can be mentioned on issues and PRs in order to get attention from the right people.
Note that the links to display team membership will only work if you are a member of the org.

| Team Name | Details | Description |
| --------- |:-------:| ----------- |
| @kubernetes/steering-committee | [link](https://github.com/orgs/kubernetes/teams/steering-committee) | General Discussion |

<!-- BEGIN CUSTOM CONTENT -->

<!-- END CUSTOM CONTENT -->
24 changes: 20 additions & 4 deletions generator/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# SIG Doc builder

This folder contains scripts to automatically generate documentation about the
different Special Interest Groups (SIGs) and Working Groups (WGs) of Kubernetes. The authoritative
different Special Interest Groups (SIGs), Working Groups (WGs),
User Groups (UGs) and Committees of Kubernetes. The authoritative
source for SIG information is the [`sigs.yaml`](/sigs.yaml) file in the project root.
All updates must be done there.

Expand All @@ -14,6 +15,7 @@ The documentation follows a template and uses the values from [`sigs.yaml`](/sig
- SIG README: [`sig_readme.tmpl`](sig_readme.tmpl)
- WG README: [`wg_readme.tmpl`](wg_readme.tmpl)
- UG README: [`ug_readme.tmpl`](ug_readme.tmpl)
- Committee README: [`committee_readme.tmpl`](committee_readme.tmpl)

**Time Zone gotcha**:
Time zones make everything complicated.
Expand All @@ -24,12 +26,13 @@ Practically, that means US pacific time must be `PT (Pacific Time)`.
`PT` isn't good enough, unfortunately.

When an update happens to the this file, the next step is to generate the
accompanying documentation. This takes the format of three types of doc files:
accompanying documentation. This takes the format of the following types of doc files:

```
sig-<sig-name>/README.md
wg-<working-group-name>/README.md
ug-<user-group-name>/README.md
committee-<committee-name>/README.md
sig-list.md
```

Expand Down Expand Up @@ -64,9 +67,11 @@ make WHAT=container-identity

where the `WHAT` var refers to the directory being built.

## Adding custom content to your README
## Adding custom content

If your SIG or WG wishes to add custom content, you can do so by placing it within
### README

If your SIG, WG, UG or Committee wishes to add custom content, you can do so by placing it within
the following code comments:

```markdown
Expand All @@ -88,3 +93,14 @@ An example might be:
- Do that
<!-- END CUSTOM CONTENT -->
```

### OWNERS_ALIASES

Similarly, custom aliases can be added in the `OWNERS_ALIASES` file by placing
it within the following code comments:

```yaml
## BEGIN CUSTOM CONTENT

## END CUSTOM CONTENT
```
6 changes: 6 additions & 0 deletions generator/aliases.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ aliases:
- {{.GitHub}}
{{- end}}
{{- end}}
{{- range .Committees}}
{{.Dir}}:
{{- range .Leadership.Chairs}}
- {{.GitHub}}
{{- end}}
{{- end}}
17 changes: 14 additions & 3 deletions generator/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ type Meeting struct {

// Contact represents the various contact points for a group.
type Contact struct {
Slack string
MailingList string `yaml:"mailing_list"`
GithubTeams []GithubTeams `yaml:"teams"`
Slack string
MailingList string `yaml:"mailing_list"`
PrivateMailingList string `yaml:"private_mailing_list"`
GithubTeams []GithubTeams `yaml:"teams"`
}

// GithubTeams represents a specific Github Team.
Expand Down Expand Up @@ -125,6 +126,7 @@ type Context struct {
Sigs []Group
WorkingGroups []Group
UserGroups []Group
Committees []Group
}

func pathExists(path string) bool {
Expand Down Expand Up @@ -310,6 +312,10 @@ func main() {
return strings.ToLower(ctx.UserGroups[i].Name) <= strings.ToLower(ctx.UserGroups[j].Name)
})

sort.Slice(ctx.Committees, func(i, j int) bool {
return strings.ToLower(ctx.Committees[i].Name) <= strings.ToLower(ctx.Committees[j].Name)
})

err = createGroupReadme(ctx.Sigs, "sig")
if err != nil {
log.Fatal(err)
Expand All @@ -325,6 +331,11 @@ func main() {
log.Fatal(err)
}

err = createGroupReadme(ctx.Committees, "committee")
if err != nil {
log.Fatal(err)
}

fmt.Println("Generating sig-list.md")
outputPath := filepath.Join(baseGeneratorDir, sigListOutput)
err = writeTemplate(filepath.Join(baseGeneratorDir, templateDir, listTemplate), outputPath, "markdown", ctx)
Expand Down
57 changes: 57 additions & 0 deletions generator/committee_readme.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{{- template "header" }}
# {{.Name}} Committee

{{ .MissionStatement }}
{{- if .CharterLink }}
The [charter]({{.CharterLink}}) defines the scope and governance of the {{.Name}} Committee.
{{- end }}
{{- if .Meetings }}

## Meetings
{{- range .Meetings }}
* {{.Description}}: [{{.Day}}s at {{.Time}} {{.TZ}}]({{.URL}}) ({{.Frequency}}). [Convert to your timezone](http://www.thetimezoneconverter.com/?t={{.Time}}&tz={{.TZ | tzUrlEncode}}).
{{- if .ArchiveURL }}
* [Meeting notes and Agenda]({{.ArchiveURL}}).
{{- end }}
{{- if .RecordingsURL }}
* [Meeting recordings]({{.RecordingsURL}}).
{{- end }}
{{- end }}

{{- end }}
{{- if .Leadership }}
{{- if .Leadership.Chairs }}

## Members
{{ range .Leadership.Chairs }}
* {{.Name}} (**[@{{.GitHub}}](https://github.com/{{.GitHub}})**){{if .Company}}, {{.Company}}{{end}}
{{- end }}
{{- end }}
{{- end }}

## Contact

{{- if .Contact.Slack }}
* [Slack](https://kubernetes.slack.com/messages/{{.Contact.Slack}})
{{- end }}
{{- if .Contact.MailingList }}
* [Mailing list]({{.Contact.MailingList}})
{{- end }}
{{- if .Contact.PrivateMailingList }}
* Private Mailing List: {{.Contact.PrivateMailingList}}
{{- end }}
{{- if .Label }}
* [Open Community Issues/PRs](https://github.com/kubernetes/community/labels/ug%2F{{.Label}})
{{- end }}
{{ if .Contact.GithubTeams }}
## GitHub Teams

The below teams can be mentioned on issues and PRs in order to get attention from the right people.
Note that the links to display team membership will only work if you are a member of the org.

| Team Name | Details | Description |
| --------- |:-------:| ----------- |
{{- range .Contact.GithubTeams }}
| @kubernetes/{{.Name}} | [link](https://github.com/orgs/kubernetes/teams/{{.Name}}) | {{.Description}} |
{{- end }}
{{ end }}
Loading

0 comments on commit 45fd380

Please sign in to comment.