We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.
Contributions to this project must be accompanied by a Contributor License Agreement (CLA). You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project. Head over to https://cla.developers.google.com/ to see your current agreements on file or to sign a new one.
You generally only need to submit a CLA once, so if you've already submitted one (even if it was for a different project), you probably don't need to do it again.
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult GitHub Help for more information on using pull requests.
In order to maintain consistency accross kpt packages, we strive to maintain the following standards.
- Google's License text is included at the beginning of each resource file
- Avoid blank lines
metadata.name
include theproject-id
prefix only when K8S uniqueness is requiredspec.resourceID
include theproject-id
prefix only when GCP uniqueness is required- Resource's fields/subfields are ordered as per resource's schema
- Resource's reference should use
name
instead ofexternal
as much as possible
- A comment line is included prior to every resources definition
- The resource description field has the same information as the comment line at the beginning of the resource definition
- Avoid comments on same line as a field
kpt-merge
comment should be removed- Include a comment for every setter in
setters.yaml
-
Include
depends-on
for every resource
-
Remove :
cnrm.cloud.google.com/blueprint: 'kpt-fn'
-
readme.md
is generated using the command below. ReplaceREPO_PACKAGE_DIR
andLOCAL_PACKAGE_DIR
accordingly.REPO_URL=https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit.git/solutions/REPO_PACKAGE_DIR kpt fn eval -i generate-kpt-pkg-docs:unstable --mount type=bind,src="LOCAL_PACKAGE_DIR",dst="/tmp",rw=true -- readme-path=/tmp/README.md repo-path=$REPO_URL
-
securitycontrols.md
is included in the package (where applicable) -
Avoid images in documentation to maintain small sized packages
- Package can successfully be deployed in a GCP environment
- Package can successfully be removed from a GCP environment
- Config Connector, Config Controller, ConfigSync and Policy Controller logs are not showing any errors when deploying or removing the package
This project follows Google's Open Source Community Guidelines.