Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate api layer apply-setters #266

Conversation

phanimarupaka
Copy link
Contributor

@phanimarupaka phanimarupaka commented May 1, 2021

This PR is to move apply-setters api layer to applysetters package so that it is reusable. main.go deals with the cmd/function framework. apply-setters/api package holds core reusable logic.
Addresses kptdev/kpt#1832

This PR also addresses kptdev/kpt#1870

cc @yhrn

@google-cla google-cla bot added the cla: yes Google CLA OK label May 1, 2021
@phanimarupaka phanimarupaka changed the title SeparateApiLayerApplySetters Separate api layer apply-setters May 1, 2021
@phanimarupaka phanimarupaka force-pushed the SeparateApiLayerApplySetters branch from b59189b to aaf7a40 Compare May 1, 2021 00:07
@phanimarupaka phanimarupaka force-pushed the SeparateApiLayerApplySetters branch from aaf7a40 to a90de2f Compare May 1, 2021 00:59
@phanimarupaka phanimarupaka force-pushed the SeparateApiLayerApplySetters branch from 46001ea to f732e08 Compare May 1, 2021 06:13
@yhrn
Copy link

yhrn commented May 1, 2021

@phanimarupaka Thank you for getting to this so quickly. Can I also request that when you create a new release of the function to make sure that the tag matches the actual repo path? The latest apply-setters release tag was go/apply-setters/v0.1.0 but the path to it is functions/go/apply-setters/v0.1.0.

@frankfarzan
Copy link
Contributor

PR incorrectly refers to searchreplace.

@mengqiy
Copy link
Contributor

mengqiy commented May 3, 2021

Can I also request that when you create a new release of the function to make sure that the tag matches the actual repo path? The latest apply-setters release tag was go/apply-setters/v0.1.0 but the path to it is functions/go/apply-setters/v0.1.0.

There is no plan to make the release tags match the full path. We want to make the release tags shorter.
@yhrn Why do you want to have that?

apply-setters/api package holds core reusable logic.

This is out-of-date. There are no api package now.
We will not stop our users from using the package, but currently we don't plan to support the package as our API.

@yhrn
Copy link

yhrn commented May 3, 2021

There is no plan to make the release tags match the full path. We want to make the release tags shorter.
@yhrn Why do you want to have that?

@mengqiy I'm a bit lost here, the point of my original ask was so that I could make a more complex function that also includes applying setters. So I would like to be able to do go get github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/[email protected].

@phanimarupaka
Copy link
Contributor Author

@yhrn The request was to separate it out of main package. You can reuse code in core applysetters package with this change.

@mengqiy
Copy link
Contributor

mengqiy commented May 3, 2021

@yhrn I got what you meant.
Even though we have git tag go/apply-setters/v0.1.0, go get doesn't allow us to do go get github.com/mengqiy/kpt-functions-catalog/functions/go/apply-setters@go/apply-setters/v0.1.0. The work around is use its corresponding SHA.
If we have a git tag functions/go/apply-setters/v0.1.0 which matches the path, go get will allow us to do go get github.com/mengqiy/kpt-functions-catalog/functions/go/[email protected]

@yhrn
Copy link

yhrn commented May 3, 2021

@phanimarupaka yes, and that is the most important thing for me, but I just thought it followed naturally that I would also like to be able to take a dependency on a specific release version so that is why I was a bit surprised at the question on why I wanted a tag matching the repo path of the function.

However, I could rephrase and ask if it would be possible to also create a full path tag that matches the release? For example if you release go/apply-setters/v0.1.0 (or maybe something shorter in the future like apply-setters/v0.1.0) could you also tag the same commit with functions/go/apply-setters/v0.1.0? The second tag wouldn't need to be a release, just a plain tag.

@yhrn
Copy link

yhrn commented May 3, 2021

@mengqiy Yes exactly - didn't see your response before my previous comment.

@phanimarupaka
Copy link
Contributor Author

phanimarupaka commented May 3, 2021

@yhrn Couple of things here

  1. Changing the naming pattern(to functions/go/apply-setters/v0.1.0) would solve the problem, talked to megqiy and we will be doing that.
  2. We version/release function packages based on the behavior changes(for e.g. the way we handle setter types) and not based on the api/code changes(e.g. If we make a private method public, we don't make a new release. You will have to wait till the next release to use that method). As long as you are aware of that, you can fetch and reuse the core logic of the functions.

cc @frankfarzan

@phanimarupaka phanimarupaka merged commit 080e22f into GoogleContainerTools:master May 4, 2021
mengqiy pushed a commit that referenced this pull request May 27, 2021
* implement starlark function (#177)

* implement starlark function

* drop path and url support, update doc and add another test

* update error message according to the guideline

* code review

* update example

* update the starlark example (#188)

* use Entrypoint instead of CMD in Dockerfiles (#189)

Also tweak Dockerfile to speed up build speed by avoiding repeatly downloading go modules

* apply-setters function (#167)

* set-setter function

* Address docs and other comments

* Suggested changes 2

* Search and replace function (#190)

* Example, README and output for search and replace (#194)

* Example and output for search replace

* Add README for example and punt usage docs

* Rename function to search-replace

* Add ENTRYPOINT for search-replace and apply-setters (#195)

* apply-setters and search-replace README and generated docs (#196)

* Search replace README and generated docs

* Apply setters README and godocs

* Suggested changes: generate docs for all funcitons via looping

* Suggested changes: apply-setters docs

* Update image name to full image path

* Suggested changes: remove sh and func-generate to docs-generate

* kpt-fns to kpt-fn

* Don't use dev tag in test (#199)

* Run helm-inflator as current user (#200)

* add a template for usage doc (#198)

* add a template for usage doc

* move the usage doc template into functions/go dir

* put it in comments

* code review

* update examples section

* update Synopsis section

* Update README.md

Co-authored-by: Frank Farzan <[email protected]>

* Migrate policy-controller-validate to use kyaml (#197)

* Initial commit

* Add short flags and usage to gatekeeper function.

Also add a release workflow for pushing to gcr.

* Upgrade OPA constraint framework (#132)

* Upgrade OPA constraint framework
* Change revision -> version in Gopkg.toml

Signed-off-by: Max Smythe <[email protected]>

* Log violated constraint

* Move validate.go to the desired dir after running git filter-branch

* Migrate policy-controller-validate to use kyaml

* code review

* rename fn to gatekeeper-validate

* Support different enforcement levels

* code review

* code review

Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Max Smythe <[email protected]>
Co-authored-by: Prachi Pendse <[email protected]>

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.6 (#205)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.6.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#203)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.6 (#207)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.6.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#206)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#208)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.6 (#209)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.6.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Add metadata.yaml files and remove dir convention for examples (#202)

* Add metadata.yaml files and remove dir convention for examples

* update metadata

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#210)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.7 (#211)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.7.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#212)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* bump up go-yaml version that includes roundtripping fixes (#213)

* fix: upgrade @types/jasmine from 3.6.6 to 3.6.7 (#215)

Snyk has created this PR to upgrade @types/jasmine from 3.6.6 to 3.6.7.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#214)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.6 to 3.6.7 (#217)

Snyk has created this PR to upgrade @types/jasmine from 3.6.6 to 3.6.7.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Use README.md as usage doc for all golang functions (#216)

* bump go-yaml to the latest (#222)

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#221)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix links in examples (#227)

* Add ensure-name-substring function (#226)

* Add function set-name-prefix

* update error message

* Add ensure-name-segment function

* code review

* add note that seeks feedback

* improve error messages

Co-authored-by: Donny Xia <[email protected]>

* fix: upgrade @types/node from 14.14.21 to 14.14.36 (#228)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.36.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.7 to 3.6.9 (#230)

Snyk has created this PR to upgrade @types/jasmine from 3.6.7 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.7 to 3.6.9 (#232)

Snyk has created this PR to upgrade @types/jasmine from 3.6.7 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#235)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.6 to 3.6.9 (#234)

Snyk has created this PR to upgrade @types/jasmine from 3.6.6 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.7 to 3.6.9 (#237)

Snyk has created this PR to upgrade @types/jasmine from 3.6.7 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Clean up search-replace and apply-setters docs (#201)

* Clean up search-replace and apply-setters docs

* Use run instead of eval and migrate later

* Add sh

* fork openapi2jsonschema in fn kubeval (#240)

* fork github.com/instrumenta/openapi2jsonschema@d697cbff8a25f520e125e3a5f79cb4e9b972e8ce

* drop forked directory

* Add a catalog landing page (#176)

* Stage multiple versions of helm-inflator.

* Site page with versions dropdown hook.

* Copy helm-inflator/local-configs to versions.

* Updated directory structure to remove latest.

* Use semver to sort version list.

* Add catalog generator go command.

* Add named examples to directory structure.

* Add named examples to web page.

* Delete intermediary helm-template dir.

* Account for directories without releases.

* Add names and descriptions for existing funcs.

* Don't use hidden directories as examples.

* Move catalog generation script to its own dir.

* Get function descriptions from `kpt fn doc`

* Remove comment.

* Trim new line from desription.

* Add catalog json generation.

* Get dropdown information from catalog json.

* Add site generator to makefile.

* Update catalog generator to design doc.

* Change the GitHub icon link on func pages.

* Link to function dir in GH instead of just repo.

* Address PR comments.

* Switch yaml fetch to cat-file.

* Reinclude reverted deletions.

* Make kubeval hermetic (#233)

* make kubeval hermetic

* use json parser

* openapi2jsonschema should handle strict

* rebase on new fork openapi2jsonschema

* Use [email protected] in metadata.yaml (#245)

* remove validators directory in examples (#247)

* Update the catalog title

Per style guide: `kpt` not `KPT`.

* Update README.md

* add check to verify docs (#246)

* check metadata files

* check examples and handle release branches

* update how to install mdrip in CI

* Do not process hidden function versions. (#252)

* Rename functions (#251)

gatekeeper-validate -> enforce-gatekeeper
set-annotation -> set-annotations
set-label -> set-labels
helm-inflator -> inflate-helm-chart
istioctl-analyze -> analyze-istio

* use GITHUB_BASE_REF env var (#254)

* Specify how function config should be documented

* Update README.md

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#259)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* add usage doc for kubeval (#257)

* add usage doc for kubeval

* update usage doc

* update usage doc

* update usage doc

* update usage doc

* Fix search-replace image typo (#262)

* Separate api layer apply-setters (#266)

* SeparateApiLayerApplySetters

* Update package name

* Check functions catalog site for breakage on repo changes. (#250)

* Add Firebase files.

* Add placeholder sidebar.

* Add make command to run site locally.

* Check site on changes to function/example dirs.

* Fix lint errors in shell scripts.

* Change os.MkdirTemp to ioutil.TempDir

* Remaining lint error.

* Update hosting site name.

* Add comment to Dockerfile.

* Move site files from examples/ to site/

* Add successful site running output.

* Output missing function.

* Return command of bad git checkout.

* Move firebase files to site.

* Better errors at copy stage.

* Update license years in shell scripts.

* Set bash script flags.

* Run docker in attached mode.

* Revert "Run docker in attached mode."

This reverts commit 5c57a1a.

* Use named docker container

* Separate api layer from cmd/function and validate inputs (#264)

* Validate input cases for Search and Replace

* Suggested changes

* Update package name

* Setup firebase hosting (#269)

* Update firebase hosting deployment. (#270)

* Fix miscellaneous styling issues. (#272)

* Allow cross-origin linking.

* Add favicon to catalog.

* Match kpt.dev styling.

* Top level links to overview page.

* fix: upgrade @types/node from 14.14.21 to 14.14.39 (#273)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.39.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Bump underscore from 1.12.0 to 1.13.1 in /functions/ts/kubeval (#283)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/analyze-istio (#282)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/ts/kubeval (#281)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/contrib/ts/sops (#280)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/analyze-istio (#279)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/inflate-helm-chart (#278)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore from 1.12.0 to 1.13.1 in /functions/contrib/ts/sops (#284)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/inflate-helm-chart (#277)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add usage doc template for TS functions (#271)

* fix README styling for examples (#276)

* fix: upgrade @types/node from 14.14.39 to 14.14.41 (#286)

Snyk has created this PR to upgrade @types/node from 14.14.39 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Format function (#242)

* Format function

* Update short description

* Suggested changes 1

* Update fmt to format

* Add simple example

* Update short description

* Suggested docs changes

* Add test block

* Remove new lines

* openapi to OpenAPI

* Suggested changes

* Remove orchestrator reference

* Only build on release or main branch changes. (#292)

* Add make generate as pre-commit hook (#287)

* Update cmd docs with latest README.md

* Add make generate pre-commit hook

* Update .github/hooks/pre-commit

Co-authored-by: Mengqi Yu <[email protected]>

Co-authored-by: Mengqi Yu <[email protected]>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/contrib/ts/sops (#291)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/analyze-istio (#290)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/ts/kubeval (#289)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/inflate-helm-chart (#288)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Hash setter names for regex matching (#293)

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#296)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.21 to 14.14.41 (#295)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* improve error message for kubeval when encounter unknown CRDs (#297)

* Use image paths as names for landing page. (#301)

* Updating SOPS to 3.7.1 (#241)

Sops 3.7.1 introduces a limited AGE support[1]
Disabling gpg importing key debug by default (can be overridden)

[1]
https://github.com/mozilla/sops#encrypting-using-age

* Escape regex characters in setter pattern (#300)

* Escape regex characters in setter pattern

* Use image paths as names for landing page. (#301)

* Updates test and example for pattern escape

Co-authored-by: etefera <[email protected]>

* Adds .vscode to .gitignore (#303)

* Apply setters empty values checks (#299)

* Apply setters empty values

* {} for empty map

* stop setting LOG_TO_STDERR=true in kubeval (#304)

* Add kpt logo to catalog site. (#302)

* Log message for no search results (#306)

* Log message for no search results

* update message

* make file scheme more visible in kubeval help text (#305)

* make file scheme more visible

* Use URI instead of URL

* Create setters example (#294)

* Create setters example

* Suggested changes

* Results for apply-setters (#307)

* Results for apply-setters

* Suggested changes

* Error for no matches

* Remove results

* fix: upgrade @types/jasmine from 3.6.9 to 3.6.10 (#311)

Snyk has created this PR to upgrade @types/jasmine from 3.6.9 to 3.6.10.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#312)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#313)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#315)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* upsert-resource function (#298)

* upsert-resource function

* Check set annotations error

* Deep copy matched resource

* update diff.patch

* Suggested changes

* Refactor to handle meta annotations

* Suggested changes

* Check for fn config annotation

* remove new line

* Suggested changes

* Better handle empty values for apply-setters (#317)

* Better handle empty values

* Empty string and empty sequence

* Fix function (#308)

* Fix function

* Update resources grouping in packages

* Simple example

* lint changes

* Remove diff.patch and add later

* Docs changes

* Output results

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#319)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* Upgrade kyaml to v0.10.20 in functions (#318)

* Upgrade kyaml to v0.10.19 in apply-setters, search-replace

* Update other functions

* Upgrade to v0.10.20

* Add setters first to the pipelint (#320)

* Add "open an issue" link to README (#321)

* Skip missing and contributed funcs in site. (#322)

* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.

* Update example packages to use new kpt (#275)

* update README in examples

* use new kpt in tests

* update CI

* temporarily skip sops e2e test

* fix eval tests

* replace inline CRD config with configPath

* make pkg name before flags

* code review

* update expected stderr

* address comments

Co-authored-by: phani <[email protected]>
Co-authored-by: John Belamaric <[email protected]>
Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Max Smythe <[email protected]>
Co-authored-by: Prachi Pendse <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: Sunil Arora <[email protected]>
Co-authored-by: Donny Xia <[email protected]>
Co-authored-by: etefera <[email protected]>
Co-authored-by: Morten Torkildsen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexey Odinokov <[email protected]>
Co-authored-by: Stefan Henseler <[email protected]>
Co-authored-by: Sam Wronski <[email protected]>
mengqiy pushed a commit that referenced this pull request May 27, 2021
* implement starlark function (#177)

* implement starlark function

* drop path and url support, update doc and add another test

* update error message according to the guideline

* code review

* update example

* update the starlark example (#188)

* use Entrypoint instead of CMD in Dockerfiles (#189)

Also tweak Dockerfile to speed up build speed by avoiding repeatly downloading go modules

* apply-setters function (#167)

* set-setter function

* Address docs and other comments

* Suggested changes 2

* Search and replace function (#190)

* Example, README and output for search and replace (#194)

* Example and output for search replace

* Add README for example and punt usage docs

* Rename function to search-replace

* Add ENTRYPOINT for search-replace and apply-setters (#195)

* apply-setters and search-replace README and generated docs (#196)

* Search replace README and generated docs

* Apply setters README and godocs

* Suggested changes: generate docs for all funcitons via looping

* Suggested changes: apply-setters docs

* Update image name to full image path

* Suggested changes: remove sh and func-generate to docs-generate

* kpt-fns to kpt-fn

* Don't use dev tag in test (#199)

* Run helm-inflator as current user (#200)

* add a template for usage doc (#198)

* add a template for usage doc

* move the usage doc template into functions/go dir

* put it in comments

* code review

* update examples section

* update Synopsis section

* Update README.md

Co-authored-by: Frank Farzan <[email protected]>

* Migrate policy-controller-validate to use kyaml (#197)

* Initial commit

* Add short flags and usage to gatekeeper function.

Also add a release workflow for pushing to gcr.

* Upgrade OPA constraint framework (#132)

* Upgrade OPA constraint framework
* Change revision -> version in Gopkg.toml

Signed-off-by: Max Smythe <[email protected]>

* Log violated constraint

* Move validate.go to the desired dir after running git filter-branch

* Migrate policy-controller-validate to use kyaml

* code review

* rename fn to gatekeeper-validate

* Support different enforcement levels

* code review

* code review

Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Max Smythe <[email protected]>
Co-authored-by: Prachi Pendse <[email protected]>

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.6 (#205)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.6.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#203)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.6 (#207)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.6.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#206)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#208)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.6 (#209)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.6.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Add metadata.yaml files and remove dir convention for examples (#202)

* Add metadata.yaml files and remove dir convention for examples

* update metadata

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#210)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.7 (#211)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.7.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#212)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* bump up go-yaml version that includes roundtripping fixes (#213)

* fix: upgrade @types/jasmine from 3.6.6 to 3.6.7 (#215)

Snyk has created this PR to upgrade @types/jasmine from 3.6.6 to 3.6.7.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#214)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.6 to 3.6.7 (#217)

Snyk has created this PR to upgrade @types/jasmine from 3.6.6 to 3.6.7.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Use README.md as usage doc for all golang functions (#216)

* bump go-yaml to the latest (#222)

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#221)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix links in examples (#227)

* Add ensure-name-substring function (#226)

* Add function set-name-prefix

* update error message

* Add ensure-name-segment function

* code review

* add note that seeks feedback

* improve error messages

Co-authored-by: Donny Xia <[email protected]>

* fix: upgrade @types/node from 14.14.21 to 14.14.36 (#228)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.36.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.7 to 3.6.9 (#230)

Snyk has created this PR to upgrade @types/jasmine from 3.6.7 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.7 to 3.6.9 (#232)

Snyk has created this PR to upgrade @types/jasmine from 3.6.7 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#235)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.6 to 3.6.9 (#234)

Snyk has created this PR to upgrade @types/jasmine from 3.6.6 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.7 to 3.6.9 (#237)

Snyk has created this PR to upgrade @types/jasmine from 3.6.7 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Clean up search-replace and apply-setters docs (#201)

* Clean up search-replace and apply-setters docs

* Use run instead of eval and migrate later

* Add sh

* fork openapi2jsonschema in fn kubeval (#240)

* fork github.com/instrumenta/openapi2jsonschema@d697cbff8a25f520e125e3a5f79cb4e9b972e8ce

* drop forked directory

* Add a catalog landing page (#176)

* Stage multiple versions of helm-inflator.

* Site page with versions dropdown hook.

* Copy helm-inflator/local-configs to versions.

* Updated directory structure to remove latest.

* Use semver to sort version list.

* Add catalog generator go command.

* Add named examples to directory structure.

* Add named examples to web page.

* Delete intermediary helm-template dir.

* Account for directories without releases.

* Add names and descriptions for existing funcs.

* Don't use hidden directories as examples.

* Move catalog generation script to its own dir.

* Get function descriptions from `kpt fn doc`

* Remove comment.

* Trim new line from desription.

* Add catalog json generation.

* Get dropdown information from catalog json.

* Add site generator to makefile.

* Update catalog generator to design doc.

* Change the GitHub icon link on func pages.

* Link to function dir in GH instead of just repo.

* Address PR comments.

* Switch yaml fetch to cat-file.

* Reinclude reverted deletions.

* Make kubeval hermetic (#233)

* make kubeval hermetic

* use json parser

* openapi2jsonschema should handle strict

* rebase on new fork openapi2jsonschema

* Use [email protected] in metadata.yaml (#245)

* remove validators directory in examples (#247)

* Update the catalog title

Per style guide: `kpt` not `KPT`.

* Update README.md

* add check to verify docs (#246)

* check metadata files

* check examples and handle release branches

* update how to install mdrip in CI

* Do not process hidden function versions. (#252)

* Rename functions (#251)

gatekeeper-validate -> enforce-gatekeeper
set-annotation -> set-annotations
set-label -> set-labels
helm-inflator -> inflate-helm-chart
istioctl-analyze -> analyze-istio

* use GITHUB_BASE_REF env var (#254)

* Specify how function config should be documented

* Update README.md

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#259)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* add usage doc for kubeval (#257)

* add usage doc for kubeval

* update usage doc

* update usage doc

* update usage doc

* update usage doc

* Fix search-replace image typo (#262)

* Separate api layer apply-setters (#266)

* SeparateApiLayerApplySetters

* Update package name

* Check functions catalog site for breakage on repo changes. (#250)

* Add Firebase files.

* Add placeholder sidebar.

* Add make command to run site locally.

* Check site on changes to function/example dirs.

* Fix lint errors in shell scripts.

* Change os.MkdirTemp to ioutil.TempDir

* Remaining lint error.

* Update hosting site name.

* Add comment to Dockerfile.

* Move site files from examples/ to site/

* Add successful site running output.

* Output missing function.

* Return command of bad git checkout.

* Move firebase files to site.

* Better errors at copy stage.

* Update license years in shell scripts.

* Set bash script flags.

* Run docker in attached mode.

* Revert "Run docker in attached mode."

This reverts commit 5c57a1a.

* Use named docker container

* Separate api layer from cmd/function and validate inputs (#264)

* Validate input cases for Search and Replace

* Suggested changes

* Update package name

* Setup firebase hosting (#269)

* Update firebase hosting deployment. (#270)

* Fix miscellaneous styling issues. (#272)

* Allow cross-origin linking.

* Add favicon to catalog.

* Match kpt.dev styling.

* Top level links to overview page.

* fix: upgrade @types/node from 14.14.21 to 14.14.39 (#273)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.39.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Bump underscore from 1.12.0 to 1.13.1 in /functions/ts/kubeval (#283)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/analyze-istio (#282)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/ts/kubeval (#281)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/contrib/ts/sops (#280)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/analyze-istio (#279)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/inflate-helm-chart (#278)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore from 1.12.0 to 1.13.1 in /functions/contrib/ts/sops (#284)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/inflate-helm-chart (#277)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add usage doc template for TS functions (#271)

* fix README styling for examples (#276)

* fix: upgrade @types/node from 14.14.39 to 14.14.41 (#286)

Snyk has created this PR to upgrade @types/node from 14.14.39 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Format function (#242)

* Format function

* Update short description

* Suggested changes 1

* Update fmt to format

* Add simple example

* Update short description

* Suggested docs changes

* Add test block

* Remove new lines

* openapi to OpenAPI

* Suggested changes

* Remove orchestrator reference

* Only build on release or main branch changes. (#292)

* Add make generate as pre-commit hook (#287)

* Update cmd docs with latest README.md

* Add make generate pre-commit hook

* Update .github/hooks/pre-commit

Co-authored-by: Mengqi Yu <[email protected]>

Co-authored-by: Mengqi Yu <[email protected]>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/contrib/ts/sops (#291)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/analyze-istio (#290)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/ts/kubeval (#289)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/inflate-helm-chart (#288)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Hash setter names for regex matching (#293)

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#296)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.21 to 14.14.41 (#295)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* improve error message for kubeval when encounter unknown CRDs (#297)

* Use image paths as names for landing page. (#301)

* Updating SOPS to 3.7.1 (#241)

Sops 3.7.1 introduces a limited AGE support[1]
Disabling gpg importing key debug by default (can be overridden)

[1]
https://github.com/mozilla/sops#encrypting-using-age

* Escape regex characters in setter pattern (#300)

* Escape regex characters in setter pattern

* Use image paths as names for landing page. (#301)

* Updates test and example for pattern escape

Co-authored-by: etefera <[email protected]>

* Adds .vscode to .gitignore (#303)

* Apply setters empty values checks (#299)

* Apply setters empty values

* {} for empty map

* stop setting LOG_TO_STDERR=true in kubeval (#304)

* Add kpt logo to catalog site. (#302)

* Log message for no search results (#306)

* Log message for no search results

* update message

* make file scheme more visible in kubeval help text (#305)

* make file scheme more visible

* Use URI instead of URL

* Create setters example (#294)

* Create setters example

* Suggested changes

* Results for apply-setters (#307)

* Results for apply-setters

* Suggested changes

* Error for no matches

* Remove results

* fix: upgrade @types/jasmine from 3.6.9 to 3.6.10 (#311)

Snyk has created this PR to upgrade @types/jasmine from 3.6.9 to 3.6.10.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#312)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#313)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#315)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* upsert-resource function (#298)

* upsert-resource function

* Check set annotations error

* Deep copy matched resource

* update diff.patch

* Suggested changes

* Refactor to handle meta annotations

* Suggested changes

* Check for fn config annotation

* remove new line

* Suggested changes

* Better handle empty values for apply-setters (#317)

* Better handle empty values

* Empty string and empty sequence

* Fix function (#308)

* Fix function

* Update resources grouping in packages

* Simple example

* lint changes

* Remove diff.patch and add later

* Docs changes

* Output results

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#319)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* Upgrade kyaml to v0.10.20 in functions (#318)

* Upgrade kyaml to v0.10.19 in apply-setters, search-replace

* Update other functions

* Upgrade to v0.10.20

* Add setters first to the pipelint (#320)

* Add "open an issue" link to README (#321)

* Skip missing and contributed funcs in site. (#322)

* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.

* Update example packages to use new kpt (#275)

* update README in examples

* use new kpt in tests

* update CI

* temporarily skip sops e2e test

* fix eval tests

* replace inline CRD config with configPath

* make pkg name before flags

* code review

* update expected stderr

* address comments

* resolve conflict

Co-authored-by: phani <[email protected]>
Co-authored-by: John Belamaric <[email protected]>
Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Max Smythe <[email protected]>
Co-authored-by: Prachi Pendse <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: Sunil Arora <[email protected]>
Co-authored-by: Donny Xia <[email protected]>
Co-authored-by: etefera <[email protected]>
Co-authored-by: Morten Torkildsen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexey Odinokov <[email protected]>
Co-authored-by: Stefan Henseler <[email protected]>
Co-authored-by: Sam Wronski <[email protected]>
mengqiy pushed a commit that referenced this pull request May 27, 2021
* use GITHUB_BASE_REF env var (#254)

* Specify how function config should be documented

* Update README.md

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#259)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* add usage doc for kubeval (#257)

* add usage doc for kubeval

* update usage doc

* update usage doc

* update usage doc

* update usage doc

* Fix search-replace image typo (#262)

* Separate api layer apply-setters (#266)

* SeparateApiLayerApplySetters

* Update package name

* Check functions catalog site for breakage on repo changes. (#250)

* Add Firebase files.

* Add placeholder sidebar.

* Add make command to run site locally.

* Check site on changes to function/example dirs.

* Fix lint errors in shell scripts.

* Change os.MkdirTemp to ioutil.TempDir

* Remaining lint error.

* Update hosting site name.

* Add comment to Dockerfile.

* Move site files from examples/ to site/

* Add successful site running output.

* Output missing function.

* Return command of bad git checkout.

* Move firebase files to site.

* Better errors at copy stage.

* Update license years in shell scripts.

* Set bash script flags.

* Run docker in attached mode.

* Revert "Run docker in attached mode."

This reverts commit 5c57a1a.

* Use named docker container

* Separate api layer from cmd/function and validate inputs (#264)

* Validate input cases for Search and Replace

* Suggested changes

* Update package name

* Setup firebase hosting (#269)

* Update firebase hosting deployment. (#270)

* Fix miscellaneous styling issues. (#272)

* Allow cross-origin linking.

* Add favicon to catalog.

* Match kpt.dev styling.

* Top level links to overview page.

* fix: upgrade @types/node from 14.14.21 to 14.14.39 (#273)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.39.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Bump underscore from 1.12.0 to 1.13.1 in /functions/ts/kubeval (#283)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/analyze-istio (#282)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/ts/kubeval (#281)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/contrib/ts/sops (#280)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/analyze-istio (#279)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/inflate-helm-chart (#278)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore from 1.12.0 to 1.13.1 in /functions/contrib/ts/sops (#284)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/inflate-helm-chart (#277)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add usage doc template for TS functions (#271)

* fix README styling for examples (#276)

* fix: upgrade @types/node from 14.14.39 to 14.14.41 (#286)

Snyk has created this PR to upgrade @types/node from 14.14.39 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Format function (#242)

* Format function

* Update short description

* Suggested changes 1

* Update fmt to format

* Add simple example

* Update short description

* Suggested docs changes

* Add test block

* Remove new lines

* openapi to OpenAPI

* Suggested changes

* Remove orchestrator reference

* Only build on release or main branch changes. (#292)

* Add make generate as pre-commit hook (#287)

* Update cmd docs with latest README.md

* Add make generate pre-commit hook

* Update .github/hooks/pre-commit

Co-authored-by: Mengqi Yu <[email protected]>

Co-authored-by: Mengqi Yu <[email protected]>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/contrib/ts/sops (#291)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/analyze-istio (#290)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/ts/kubeval (#289)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/inflate-helm-chart (#288)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Hash setter names for regex matching (#293)

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#296)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.21 to 14.14.41 (#295)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* improve error message for kubeval when encounter unknown CRDs (#297)

* Use image paths as names for landing page. (#301)

* Updating SOPS to 3.7.1 (#241)

Sops 3.7.1 introduces a limited AGE support[1]
Disabling gpg importing key debug by default (can be overridden)

[1]
https://github.com/mozilla/sops#encrypting-using-age

* Escape regex characters in setter pattern (#300)

* Escape regex characters in setter pattern

* Use image paths as names for landing page. (#301)

* Updates test and example for pattern escape

Co-authored-by: etefera <[email protected]>

* Adds .vscode to .gitignore (#303)

* Apply setters empty values checks (#299)

* Apply setters empty values

* {} for empty map

* stop setting LOG_TO_STDERR=true in kubeval (#304)

* Add kpt logo to catalog site. (#302)

* Log message for no search results (#306)

* Log message for no search results

* update message

* make file scheme more visible in kubeval help text (#305)

* make file scheme more visible

* Use URI instead of URL

* Create setters example (#294)

* Create setters example

* Suggested changes

* Results for apply-setters (#307)

* Results for apply-setters

* Suggested changes

* Error for no matches

* Remove results

* fix: upgrade @types/jasmine from 3.6.9 to 3.6.10 (#311)

Snyk has created this PR to upgrade @types/jasmine from 3.6.9 to 3.6.10.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#312)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#313)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#315)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* upsert-resource function (#298)

* upsert-resource function

* Check set annotations error

* Deep copy matched resource

* update diff.patch

* Suggested changes

* Refactor to handle meta annotations

* Suggested changes

* Check for fn config annotation

* remove new line

* Suggested changes

* Better handle empty values for apply-setters (#317)

* Better handle empty values

* Empty string and empty sequence

* Fix function (#308)

* Fix function

* Update resources grouping in packages

* Simple example

* lint changes

* Remove diff.patch and add later

* Docs changes

* Output results

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#319)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* Upgrade kyaml to v0.10.20 in functions (#318)

* Upgrade kyaml to v0.10.19 in apply-setters, search-replace

* Update other functions

* Upgrade to v0.10.20

* Add setters first to the pipelint (#320)

* Add "open an issue" link to README (#321)

* Skip missing and contributed funcs in site. (#322)

* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.

* Update example packages to use new kpt (#275)

* update README in examples

* use new kpt in tests

* update CI

* temporarily skip sops e2e test

* fix eval tests

* replace inline CRD config with configPath

* make pkg name before flags

* code review

* update expected stderr

* address comments

* fix metadata file

Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: phani <[email protected]>
Co-authored-by: etefera <[email protected]>
Co-authored-by: Morten Torkildsen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexey Odinokov <[email protected]>
Co-authored-by: Stefan Henseler <[email protected]>
Co-authored-by: Sam Wronski <[email protected]>
mengqiy pushed a commit that referenced this pull request Jun 3, 2021
* use GITHUB_BASE_REF env var (#254)

* Specify how function config should be documented

* Update README.md

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#259)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* add usage doc for kubeval (#257)

* add usage doc for kubeval

* update usage doc

* update usage doc

* update usage doc

* update usage doc

* Fix search-replace image typo (#262)

* Separate api layer apply-setters (#266)

* SeparateApiLayerApplySetters

* Update package name

* Check functions catalog site for breakage on repo changes. (#250)

* Add Firebase files.

* Add placeholder sidebar.

* Add make command to run site locally.

* Check site on changes to function/example dirs.

* Fix lint errors in shell scripts.

* Change os.MkdirTemp to ioutil.TempDir

* Remaining lint error.

* Update hosting site name.

* Add comment to Dockerfile.

* Move site files from examples/ to site/

* Add successful site running output.

* Output missing function.

* Return command of bad git checkout.

* Move firebase files to site.

* Better errors at copy stage.

* Update license years in shell scripts.

* Set bash script flags.

* Run docker in attached mode.

* Revert "Run docker in attached mode."

This reverts commit 5c57a1a.

* Use named docker container

* Separate api layer from cmd/function and validate inputs (#264)

* Validate input cases for Search and Replace

* Suggested changes

* Update package name

* Setup firebase hosting (#269)

* Update firebase hosting deployment. (#270)

* Fix miscellaneous styling issues. (#272)

* Allow cross-origin linking.

* Add favicon to catalog.

* Match kpt.dev styling.

* Top level links to overview page.

* fix: upgrade @types/node from 14.14.21 to 14.14.39 (#273)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.39.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Bump underscore from 1.12.0 to 1.13.1 in /functions/ts/kubeval (#283)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/analyze-istio (#282)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/ts/kubeval (#281)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/contrib/ts/sops (#280)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/analyze-istio (#279)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/inflate-helm-chart (#278)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore from 1.12.0 to 1.13.1 in /functions/contrib/ts/sops (#284)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/inflate-helm-chart (#277)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add usage doc template for TS functions (#271)

* fix README styling for examples (#276)

* fix: upgrade @types/node from 14.14.39 to 14.14.41 (#286)

Snyk has created this PR to upgrade @types/node from 14.14.39 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Format function (#242)

* Format function

* Update short description

* Suggested changes 1

* Update fmt to format

* Add simple example

* Update short description

* Suggested docs changes

* Add test block

* Remove new lines

* openapi to OpenAPI

* Suggested changes

* Remove orchestrator reference

* Only build on release or main branch changes. (#292)

* Add make generate as pre-commit hook (#287)

* Update cmd docs with latest README.md

* Add make generate pre-commit hook

* Update .github/hooks/pre-commit

Co-authored-by: Mengqi Yu <[email protected]>

Co-authored-by: Mengqi Yu <[email protected]>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/contrib/ts/sops (#291)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/analyze-istio (#290)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/ts/kubeval (#289)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/inflate-helm-chart (#288)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Hash setter names for regex matching (#293)

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#296)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.21 to 14.14.41 (#295)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* improve error message for kubeval when encounter unknown CRDs (#297)

* Use image paths as names for landing page. (#301)

* Updating SOPS to 3.7.1 (#241)

Sops 3.7.1 introduces a limited AGE support[1]
Disabling gpg importing key debug by default (can be overridden)

[1]
https://github.com/mozilla/sops#encrypting-using-age

* Escape regex characters in setter pattern (#300)

* Escape regex characters in setter pattern

* Use image paths as names for landing page. (#301)

* Updates test and example for pattern escape

Co-authored-by: etefera <[email protected]>

* Adds .vscode to .gitignore (#303)

* Apply setters empty values checks (#299)

* Apply setters empty values

* {} for empty map

* stop setting LOG_TO_STDERR=true in kubeval (#304)

* Add kpt logo to catalog site. (#302)

* Log message for no search results (#306)

* Log message for no search results

* update message

* make file scheme more visible in kubeval help text (#305)

* make file scheme more visible

* Use URI instead of URL

* Create setters example (#294)

* Create setters example

* Suggested changes

* Results for apply-setters (#307)

* Results for apply-setters

* Suggested changes

* Error for no matches

* Remove results

* fix: upgrade @types/jasmine from 3.6.9 to 3.6.10 (#311)

Snyk has created this PR to upgrade @types/jasmine from 3.6.9 to 3.6.10.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#312)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#313)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#315)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* upsert-resource function (#298)

* upsert-resource function

* Check set annotations error

* Deep copy matched resource

* update diff.patch

* Suggested changes

* Refactor to handle meta annotations

* Suggested changes

* Check for fn config annotation

* remove new line

* Suggested changes

* Better handle empty values for apply-setters (#317)

* Better handle empty values

* Empty string and empty sequence

* Fix function (#308)

* Fix function

* Update resources grouping in packages

* Simple example

* lint changes

* Remove diff.patch and add later

* Docs changes

* Output results

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#319)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* Upgrade kyaml to v0.10.20 in functions (#318)

* Upgrade kyaml to v0.10.19 in apply-setters, search-replace

* Update other functions

* Upgrade to v0.10.20

* Add setters first to the pipelint (#320)

* Add "open an issue" link to README (#321)

* Skip missing and contributed funcs in site. (#322)

* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.

* Update example packages to use new kpt (#275)

* update README in examples

* use new kpt in tests

* update CI

* temporarily skip sops e2e test

* fix eval tests

* replace inline CRD config with configPath

* make pkg name before flags

* code review

* update expected stderr

* address comments

* Switch back to function name in catalog. (#326)

* fix: upgrade @types/node from 14.14.43 to 14.14.44 (#331)

Snyk has created this PR to upgrade @types/node from 14.14.43 to 14.14.44.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.10 to 3.7.0 (#330)

Snyk has created this PR to upgrade @types/jasmine from 3.6.10 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade prettier from 2.2.1 to 2.3.0 (#335)

Snyk has created this PR to upgrade prettier from 2.2.1 to 2.3.0.

See this package in npm:
https://www.npmjs.com/package/prettier

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.0 to 3.7.1 (#334)

Snyk has created this PR to upgrade @types/jasmine from 3.7.0 to 3.7.1.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.1 to 3.7.2 (#336)

Snyk has created this PR to upgrade @types/jasmine from 3.7.1 to 3.7.2.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* set imagePullPolicy to ifNotPresent in e2e tests (#332)

* set imagePullPolicy to ifNotPresent in e2e tests

This is to ensure we are testing the newly built images

* not use internal package

* Use never for image-pull-policy in e2e tests

* rename enforce-gatekeeper to gatekeeper (#327)

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/ts/kubeval (#337)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/analyze-istio (#338)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/contrib/ts/sops (#339)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/inflate-helm-chart (#340)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update docs for 1.0 compatibility (#341)

* update usage doc for gatekeeper and starlark (#342)

* update usage doc for gatekeeper and starlark

* code review

* update pkg in tests dir

* code review

* Rename simple to set-namespace and add a few more examples

* fix: upgrade @types/node from 14.14.44 to 14.14.45 (#343)

Snyk has created this PR to upgrade @types/node from 14.14.44 to 14.14.45.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* bump kyaml to v0.10.20 for starlark and gatekeeper (#344)

* bump kyaml to v0.10.20 for starlark and gatekeeper

* minor tweak

Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: phani <[email protected]>
Co-authored-by: etefera <[email protected]>
Co-authored-by: Morten Torkildsen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexey Odinokov <[email protected]>
Co-authored-by: Stefan Henseler <[email protected]>
Co-authored-by: Sam Wronski <[email protected]>
mengqiy pushed a commit that referenced this pull request Jun 3, 2021
* use GITHUB_BASE_REF env var (#254)

* Specify how function config should be documented

* Update README.md

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#259)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* add usage doc for kubeval (#257)

* add usage doc for kubeval

* update usage doc

* update usage doc

* update usage doc

* update usage doc

* Fix search-replace image typo (#262)

* Separate api layer apply-setters (#266)

* SeparateApiLayerApplySetters

* Update package name

* Check functions catalog site for breakage on repo changes. (#250)

* Add Firebase files.

* Add placeholder sidebar.

* Add make command to run site locally.

* Check site on changes to function/example dirs.

* Fix lint errors in shell scripts.

* Change os.MkdirTemp to ioutil.TempDir

* Remaining lint error.

* Update hosting site name.

* Add comment to Dockerfile.

* Move site files from examples/ to site/

* Add successful site running output.

* Output missing function.

* Return command of bad git checkout.

* Move firebase files to site.

* Better errors at copy stage.

* Update license years in shell scripts.

* Set bash script flags.

* Run docker in attached mode.

* Revert "Run docker in attached mode."

This reverts commit 5c57a1a.

* Use named docker container

* Separate api layer from cmd/function and validate inputs (#264)

* Validate input cases for Search and Replace

* Suggested changes

* Update package name

* Setup firebase hosting (#269)

* Update firebase hosting deployment. (#270)

* Fix miscellaneous styling issues. (#272)

* Allow cross-origin linking.

* Add favicon to catalog.

* Match kpt.dev styling.

* Top level links to overview page.

* fix: upgrade @types/node from 14.14.21 to 14.14.39 (#273)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.39.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Bump underscore from 1.12.0 to 1.13.1 in /functions/ts/kubeval (#283)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/analyze-istio (#282)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/ts/kubeval (#281)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/contrib/ts/sops (#280)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/analyze-istio (#279)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/inflate-helm-chart (#278)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore from 1.12.0 to 1.13.1 in /functions/contrib/ts/sops (#284)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/inflate-helm-chart (#277)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add usage doc template for TS functions (#271)

* fix README styling for examples (#276)

* fix: upgrade @types/node from 14.14.39 to 14.14.41 (#286)

Snyk has created this PR to upgrade @types/node from 14.14.39 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Format function (#242)

* Format function

* Update short description

* Suggested changes 1

* Update fmt to format

* Add simple example

* Update short description

* Suggested docs changes

* Add test block

* Remove new lines

* openapi to OpenAPI

* Suggested changes

* Remove orchestrator reference

* Only build on release or main branch changes. (#292)

* Add make generate as pre-commit hook (#287)

* Update cmd docs with latest README.md

* Add make generate pre-commit hook

* Update .github/hooks/pre-commit

Co-authored-by: Mengqi Yu <[email protected]>

Co-authored-by: Mengqi Yu <[email protected]>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/contrib/ts/sops (#291)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/analyze-istio (#290)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/ts/kubeval (#289)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/inflate-helm-chart (#288)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Hash setter names for regex matching (#293)

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#296)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.21 to 14.14.41 (#295)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* improve error message for kubeval when encounter unknown CRDs (#297)

* Use image paths as names for landing page. (#301)

* Updating SOPS to 3.7.1 (#241)

Sops 3.7.1 introduces a limited AGE support[1]
Disabling gpg importing key debug by default (can be overridden)

[1]
https://github.com/mozilla/sops#encrypting-using-age

* Escape regex characters in setter pattern (#300)

* Escape regex characters in setter pattern

* Use image paths as names for landing page. (#301)

* Updates test and example for pattern escape

Co-authored-by: etefera <[email protected]>

* Adds .vscode to .gitignore (#303)

* Apply setters empty values checks (#299)

* Apply setters empty values

* {} for empty map

* stop setting LOG_TO_STDERR=true in kubeval (#304)

* Add kpt logo to catalog site. (#302)

* Log message for no search results (#306)

* Log message for no search results

* update message

* make file scheme more visible in kubeval help text (#305)

* make file scheme more visible

* Use URI instead of URL

* Create setters example (#294)

* Create setters example

* Suggested changes

* Results for apply-setters (#307)

* Results for apply-setters

* Suggested changes

* Error for no matches

* Remove results

* fix: upgrade @types/jasmine from 3.6.9 to 3.6.10 (#311)

Snyk has created this PR to upgrade @types/jasmine from 3.6.9 to 3.6.10.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#312)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#313)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#315)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* upsert-resource function (#298)

* upsert-resource function

* Check set annotations error

* Deep copy matched resource

* update diff.patch

* Suggested changes

* Refactor to handle meta annotations

* Suggested changes

* Check for fn config annotation

* remove new line

* Suggested changes

* Better handle empty values for apply-setters (#317)

* Better handle empty values

* Empty string and empty sequence

* Fix function (#308)

* Fix function

* Update resources grouping in packages

* Simple example

* lint changes

* Remove diff.patch and add later

* Docs changes

* Output results

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#319)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* Upgrade kyaml to v0.10.20 in functions (#318)

* Upgrade kyaml to v0.10.19 in apply-setters, search-replace

* Update other functions

* Upgrade to v0.10.20

* Add setters first to the pipelint (#320)

* Add "open an issue" link to README (#321)

* Skip missing and contributed funcs in site. (#322)

* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.

* Update example packages to use new kpt (#275)

* update README in examples

* use new kpt in tests

* update CI

* temporarily skip sops e2e test

* fix eval tests

* replace inline CRD config with configPath

* make pkg name before flags

* code review

* update expected stderr

* address comments

* Switch back to function name in catalog. (#326)

* fix: upgrade @types/node from 14.14.43 to 14.14.44 (#331)

Snyk has created this PR to upgrade @types/node from 14.14.43 to 14.14.44.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.10 to 3.7.0 (#330)

Snyk has created this PR to upgrade @types/jasmine from 3.6.10 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade prettier from 2.2.1 to 2.3.0 (#335)

Snyk has created this PR to upgrade prettier from 2.2.1 to 2.3.0.

See this package in npm:
https://www.npmjs.com/package/prettier

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.0 to 3.7.1 (#334)

Snyk has created this PR to upgrade @types/jasmine from 3.7.0 to 3.7.1.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.1 to 3.7.2 (#336)

Snyk has created this PR to upgrade @types/jasmine from 3.7.1 to 3.7.2.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* set imagePullPolicy to ifNotPresent in e2e tests (#332)

* set imagePullPolicy to ifNotPresent in e2e tests

This is to ensure we are testing the newly built images

* not use internal package

* Use never for image-pull-policy in e2e tests

* rename enforce-gatekeeper to gatekeeper (#327)

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/ts/kubeval (#337)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/analyze-istio (#338)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/contrib/ts/sops (#339)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/inflate-helm-chart (#340)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update docs for 1.0 compatibility (#341)

* update usage doc for gatekeeper and starlark (#342)

* update usage doc for gatekeeper and starlark

* code review

* update pkg in tests dir

* code review

* Rename simple to set-namespace and add a few more examples

* fix: upgrade @types/node from 14.14.44 to 14.14.45 (#343)

Snyk has created this PR to upgrade @types/node from 14.14.44 to 14.14.45.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* bump kyaml to v0.10.20 for starlark and gatekeeper (#344)

* bump kyaml to v0.10.20 for starlark and gatekeeper

* minor tweak

Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: phani <[email protected]>
Co-authored-by: etefera <[email protected]>
Co-authored-by: Morten Torkildsen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexey Odinokov <[email protected]>
Co-authored-by: Stefan Henseler <[email protected]>
Co-authored-by: Sam Wronski <[email protected]>
mengqiy pushed a commit that referenced this pull request Jun 3, 2021
* implement starlark function (#177)

* implement starlark function

* drop path and url support, update doc and add another test

* update error message according to the guideline

* code review

* update example

* update the starlark example (#188)

* use Entrypoint instead of CMD in Dockerfiles (#189)

Also tweak Dockerfile to speed up build speed by avoiding repeatly downloading go modules

* apply-setters function (#167)

* set-setter function

* Address docs and other comments

* Suggested changes 2

* Search and replace function (#190)

* Example, README and output for search and replace (#194)

* Example and output for search replace

* Add README for example and punt usage docs

* Rename function to search-replace

* Add ENTRYPOINT for search-replace and apply-setters (#195)

* apply-setters and search-replace README and generated docs (#196)

* Search replace README and generated docs

* Apply setters README and godocs

* Suggested changes: generate docs for all funcitons via looping

* Suggested changes: apply-setters docs

* Update image name to full image path

* Suggested changes: remove sh and func-generate to docs-generate

* kpt-fns to kpt-fn

* Don't use dev tag in test (#199)

* Run helm-inflator as current user (#200)

* add a template for usage doc (#198)

* add a template for usage doc

* move the usage doc template into functions/go dir

* put it in comments

* code review

* update examples section

* update Synopsis section

* Update README.md

Co-authored-by: Frank Farzan <[email protected]>

* Migrate policy-controller-validate to use kyaml (#197)

* Initial commit

* Add short flags and usage to gatekeeper function.

Also add a release workflow for pushing to gcr.

* Upgrade OPA constraint framework (#132)

* Upgrade OPA constraint framework
* Change revision -> version in Gopkg.toml

Signed-off-by: Max Smythe <[email protected]>

* Log violated constraint

* Move validate.go to the desired dir after running git filter-branch

* Migrate policy-controller-validate to use kyaml

* code review

* rename fn to gatekeeper-validate

* Support different enforcement levels

* code review

* code review

Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Max Smythe <[email protected]>
Co-authored-by: Prachi Pendse <[email protected]>

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.6 (#205)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.6.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#203)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.6 (#207)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.6.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#206)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#208)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.6 (#209)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.6.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Add metadata.yaml files and remove dir convention for examples (#202)

* Add metadata.yaml files and remove dir convention for examples

* update metadata

* fix: upgrade typescript from 4.1.3 to 4.2.3 (#210)

Snyk has created this PR to upgrade typescript from 4.1.3 to 4.2.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.2 to 3.6.7 (#211)

Snyk has created this PR to upgrade @types/jasmine from 3.6.2 to 3.6.7.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#212)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* bump up go-yaml version that includes roundtripping fixes (#213)

* fix: upgrade @types/jasmine from 3.6.6 to 3.6.7 (#215)

Snyk has created this PR to upgrade @types/jasmine from 3.6.6 to 3.6.7.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#214)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.6 to 3.6.7 (#217)

Snyk has created this PR to upgrade @types/jasmine from 3.6.6 to 3.6.7.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Use README.md as usage doc for all golang functions (#216)

* bump go-yaml to the latest (#222)

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#221)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix links in examples (#227)

* Add ensure-name-substring function (#226)

* Add function set-name-prefix

* update error message

* Add ensure-name-segment function

* code review

* add note that seeks feedback

* improve error messages

Co-authored-by: Donny Xia <[email protected]>

* fix: upgrade @types/node from 14.14.21 to 14.14.36 (#228)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.36.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.7 to 3.6.9 (#230)

Snyk has created this PR to upgrade @types/jasmine from 3.6.7 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/23d8f4ca-6976-433c-98ec-370eccabc2e7?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.7 to 3.6.9 (#232)

Snyk has created this PR to upgrade @types/jasmine from 3.6.7 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/0c90cff6-4386-4509-bd57-37f0b57f5960?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade jasmine from 3.6.3 to 3.7.0 (#235)

Snyk has created this PR to upgrade jasmine from 3.6.3 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.6 to 3.6.9 (#234)

Snyk has created this PR to upgrade @types/jasmine from 3.6.6 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.7 to 3.6.9 (#237)

Snyk has created this PR to upgrade @types/jasmine from 3.6.7 to 3.6.9.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Clean up search-replace and apply-setters docs (#201)

* Clean up search-replace and apply-setters docs

* Use run instead of eval and migrate later

* Add sh

* fork openapi2jsonschema in fn kubeval (#240)

* fork github.com/instrumenta/openapi2jsonschema@d697cbff8a25f520e125e3a5f79cb4e9b972e8ce

* drop forked directory

* Add a catalog landing page (#176)

* Stage multiple versions of helm-inflator.

* Site page with versions dropdown hook.

* Copy helm-inflator/local-configs to versions.

* Updated directory structure to remove latest.

* Use semver to sort version list.

* Add catalog generator go command.

* Add named examples to directory structure.

* Add named examples to web page.

* Delete intermediary helm-template dir.

* Account for directories without releases.

* Add names and descriptions for existing funcs.

* Don't use hidden directories as examples.

* Move catalog generation script to its own dir.

* Get function descriptions from `kpt fn doc`

* Remove comment.

* Trim new line from desription.

* Add catalog json generation.

* Get dropdown information from catalog json.

* Add site generator to makefile.

* Update catalog generator to design doc.

* Change the GitHub icon link on func pages.

* Link to function dir in GH instead of just repo.

* Address PR comments.

* Switch yaml fetch to cat-file.

* Reinclude reverted deletions.

* Make kubeval hermetic (#233)

* make kubeval hermetic

* use json parser

* openapi2jsonschema should handle strict

* rebase on new fork openapi2jsonschema

* Use [email protected] in metadata.yaml (#245)

* remove validators directory in examples (#247)

* Update the catalog title

Per style guide: `kpt` not `KPT`.

* Update README.md

* add check to verify docs (#246)

* check metadata files

* check examples and handle release branches

* update how to install mdrip in CI

* Do not process hidden function versions. (#252)

* Rename functions (#251)

gatekeeper-validate -> enforce-gatekeeper
set-annotation -> set-annotations
set-label -> set-labels
helm-inflator -> inflate-helm-chart
istioctl-analyze -> analyze-istio

* use GITHUB_BASE_REF env var (#254)

* Specify how function config should be documented

* Update README.md

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#259)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* add usage doc for kubeval (#257)

* add usage doc for kubeval

* update usage doc

* update usage doc

* update usage doc

* update usage doc

* Fix search-replace image typo (#262)

* Separate api layer apply-setters (#266)

* SeparateApiLayerApplySetters

* Update package name

* Check functions catalog site for breakage on repo changes. (#250)

* Add Firebase files.

* Add placeholder sidebar.

* Add make command to run site locally.

* Check site on changes to function/example dirs.

* Fix lint errors in shell scripts.

* Change os.MkdirTemp to ioutil.TempDir

* Remaining lint error.

* Update hosting site name.

* Add comment to Dockerfile.

* Move site files from examples/ to site/

* Add successful site running output.

* Output missing function.

* Return command of bad git checkout.

* Move firebase files to site.

* Better errors at copy stage.

* Update license years in shell scripts.

* Set bash script flags.

* Run docker in attached mode.

* Revert "Run docker in attached mode."

This reverts commit 5c57a1a.

* Use named docker container

* Separate api layer from cmd/function and validate inputs (#264)

* Validate input cases for Search and Replace

* Suggested changes

* Update package name

* Setup firebase hosting (#269)

* Update firebase hosting deployment. (#270)

* Fix miscellaneous styling issues. (#272)

* Allow cross-origin linking.

* Add favicon to catalog.

* Match kpt.dev styling.

* Top level links to overview page.

* fix: upgrade @types/node from 14.14.21 to 14.14.39 (#273)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.39.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Bump underscore from 1.12.0 to 1.13.1 in /functions/ts/kubeval (#283)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/analyze-istio (#282)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/ts/kubeval (#281)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/contrib/ts/sops (#280)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/analyze-istio (#279)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/inflate-helm-chart (#278)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore from 1.12.0 to 1.13.1 in /functions/contrib/ts/sops (#284)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/inflate-helm-chart (#277)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add usage doc template for TS functions (#271)

* fix README styling for examples (#276)

* fix: upgrade @types/node from 14.14.39 to 14.14.41 (#286)

Snyk has created this PR to upgrade @types/node from 14.14.39 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Format function (#242)

* Format function

* Update short description

* Suggested changes 1

* Update fmt to format

* Add simple example

* Update short description

* Suggested docs changes

* Add test block

* Remove new lines

* openapi to OpenAPI

* Suggested changes

* Remove orchestrator reference

* Only build on release or main branch changes. (#292)

* Add make generate as pre-commit hook (#287)

* Update cmd docs with latest README.md

* Add make generate pre-commit hook

* Update .github/hooks/pre-commit

Co-authored-by: Mengqi Yu <[email protected]>

Co-authored-by: Mengqi Yu <[email protected]>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/contrib/ts/sops (#291)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/analyze-istio (#290)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/ts/kubeval (#289)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/inflate-helm-chart (#288)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Hash setter names for regex matching (#293)

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#296)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.21 to 14.14.41 (#295)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* improve error message for kubeval when encounter unknown CRDs (#297)

* Use image paths as names for landing page. (#301)

* Updating SOPS to 3.7.1 (#241)

Sops 3.7.1 introduces a limited AGE support[1]
Disabling gpg importing key debug by default (can be overridden)

[1]
https://github.com/mozilla/sops#encrypting-using-age

* Escape regex characters in setter pattern (#300)

* Escape regex characters in setter pattern

* Use image paths as names for landing page. (#301)

* Updates test and example for pattern escape

Co-authored-by: etefera <[email protected]>

* Adds .vscode to .gitignore (#303)

* Apply setters empty values checks (#299)

* Apply setters empty values

* {} for empty map

* stop setting LOG_TO_STDERR=true in kubeval (#304)

* Add kpt logo to catalog site. (#302)

* Log message for no search results (#306)

* Log message for no search results

* update message

* make file scheme more visible in kubeval help text (#305)

* make file scheme more visible

* Use URI instead of URL

* Create setters example (#294)

* Create setters example

* Suggested changes

* Results for apply-setters (#307)

* Results for apply-setters

* Suggested changes

* Error for no matches

* Remove results

* fix: upgrade @types/jasmine from 3.6.9 to 3.6.10 (#311)

Snyk has created this PR to upgrade @types/jasmine from 3.6.9 to 3.6.10.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#312)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#313)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#315)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* upsert-resource function (#298)

* upsert-resource function

* Check set annotations error

* Deep copy matched resource

* update diff.patch

* Suggested changes

* Refactor to handle meta annotations

* Suggested changes

* Check for fn config annotation

* remove new line

* Suggested changes

* Better handle empty values for apply-setters (#317)

* Better handle empty values

* Empty string and empty sequence

* Fix function (#308)

* Fix function

* Update resources grouping in packages

* Simple example

* lint changes

* Remove diff.patch and add later

* Docs changes

* Output results

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#319)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* Upgrade kyaml to v0.10.20 in functions (#318)

* Upgrade kyaml to v0.10.19 in apply-setters, search-replace

* Update other functions

* Upgrade to v0.10.20

* Add setters first to the pipelint (#320)

* Add "open an issue" link to README (#321)

* Skip missing and contributed funcs in site. (#322)

* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.

* Update example packages to use new kpt (#275)

* update README in examples

* use new kpt in tests

* update CI

* temporarily skip sops e2e test

* fix eval tests

* replace inline CRD config with configPath

* make pkg name before flags

* code review

* update expected stderr

* address comments

* Switch back to function name in catalog. (#326)

* fix: upgrade @types/node from 14.14.43 to 14.14.44 (#331)

Snyk has created this PR to upgrade @types/node from 14.14.43 to 14.14.44.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.10 to 3.7.0 (#330)

Snyk has created this PR to upgrade @types/jasmine from 3.6.10 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade prettier from 2.2.1 to 2.3.0 (#335)

Snyk has created this PR to upgrade prettier from 2.2.1 to 2.3.0.

See this package in npm:
https://www.npmjs.com/package/prettier

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.0 to 3.7.1 (#334)

Snyk has created this PR to upgrade @types/jasmine from 3.7.0 to 3.7.1.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.1 to 3.7.2 (#336)

Snyk has created this PR to upgrade @types/jasmine from 3.7.1 to 3.7.2.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* set imagePullPolicy to ifNotPresent in e2e tests (#332)

* set imagePullPolicy to ifNotPresent in e2e tests

This is to ensure we are testing the newly built images

* not use internal package

* Use never for image-pull-policy in e2e tests

* rename enforce-gatekeeper to gatekeeper (#327)

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/ts/kubeval (#337)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/analyze-istio (#338)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/contrib/ts/sops (#339)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/inflate-helm-chart (#340)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update docs for 1.0 compatibility (#341)

* update usage doc for gatekeeper and starlark (#342)

* update usage doc for gatekeeper and starlark

* code review

* update pkg in tests dir

* code review

* Rename simple to set-namespace and add a few more examples

* fix: upgrade @types/node from 14.14.44 to 14.14.45 (#343)

Snyk has created this PR to upgrade @types/node from 14.14.44 to 14.14.45.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* bump kyaml to v0.10.20 for starlark and gatekeeper (#344)

* bump kyaml to v0.10.20 for starlark and gatekeeper

* minor tweak

* resolve conflicts

Co-authored-by: phani <[email protected]>
Co-authored-by: John Belamaric <[email protected]>
Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Max Smythe <[email protected]>
Co-authored-by: Prachi Pendse <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: Sunil Arora <[email protected]>
Co-authored-by: Donny Xia <[email protected]>
Co-authored-by: etefera <[email protected]>
Co-authored-by: Morten Torkildsen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexey Odinokov <[email protected]>
Co-authored-by: Stefan Henseler <[email protected]>
Co-authored-by: Sam Wronski <[email protected]>
mengqiy pushed a commit that referenced this pull request Jun 8, 2021
* fork openapi2jsonschema in fn kubeval (#240)

* fork github.com/instrumenta/openapi2jsonschema@d697cbff8a25f520e125e3a5f79cb4e9b972e8ce

* drop forked directory

* Add a catalog landing page (#176)

* Stage multiple versions of helm-inflator.

* Site page with versions dropdown hook.

* Copy helm-inflator/local-configs to versions.

* Updated directory structure to remove latest.

* Use semver to sort version list.

* Add catalog generator go command.

* Add named examples to directory structure.

* Add named examples to web page.

* Delete intermediary helm-template dir.

* Account for directories without releases.

* Add names and descriptions for existing funcs.

* Don't use hidden directories as examples.

* Move catalog generation script to its own dir.

* Get function descriptions from `kpt fn doc`

* Remove comment.

* Trim new line from desription.

* Add catalog json generation.

* Get dropdown information from catalog json.

* Add site generator to makefile.

* Update catalog generator to design doc.

* Change the GitHub icon link on func pages.

* Link to function dir in GH instead of just repo.

* Address PR comments.

* Switch yaml fetch to cat-file.

* Reinclude reverted deletions.

* Make kubeval hermetic (#233)

* make kubeval hermetic

* use json parser

* openapi2jsonschema should handle strict

* rebase on new fork openapi2jsonschema

* Use [email protected] in metadata.yaml (#245)

* remove validators directory in examples (#247)

* Update the catalog title

Per style guide: `kpt` not `KPT`.

* Update README.md

* add check to verify docs (#246)

* check metadata files

* check examples and handle release branches

* update how to install mdrip in CI

* Do not process hidden function versions. (#252)

* Rename functions (#251)

gatekeeper-validate -> enforce-gatekeeper
set-annotation -> set-annotations
set-label -> set-labels
helm-inflator -> inflate-helm-chart
istioctl-analyze -> analyze-istio

* use GITHUB_BASE_REF env var (#254)

* Specify how function config should be documented

* Update README.md

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#259)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* add usage doc for kubeval (#257)

* add usage doc for kubeval

* update usage doc

* update usage doc

* update usage doc

* update usage doc

* Fix search-replace image typo (#262)

* Separate api layer apply-setters (#266)

* SeparateApiLayerApplySetters

* Update package name

* Check functions catalog site for breakage on repo changes. (#250)

* Add Firebase files.

* Add placeholder sidebar.

* Add make command to run site locally.

* Check site on changes to function/example dirs.

* Fix lint errors in shell scripts.

* Change os.MkdirTemp to ioutil.TempDir

* Remaining lint error.

* Update hosting site name.

* Add comment to Dockerfile.

* Move site files from examples/ to site/

* Add successful site running output.

* Output missing function.

* Return command of bad git checkout.

* Move firebase files to site.

* Better errors at copy stage.

* Update license years in shell scripts.

* Set bash script flags.

* Run docker in attached mode.

* Revert "Run docker in attached mode."

This reverts commit 5c57a1a.

* Use named docker container

* Separate api layer from cmd/function and validate inputs (#264)

* Validate input cases for Search and Replace

* Suggested changes

* Update package name

* Setup firebase hosting (#269)

* Update firebase hosting deployment. (#270)

* Fix miscellaneous styling issues. (#272)

* Allow cross-origin linking.

* Add favicon to catalog.

* Match kpt.dev styling.

* Top level links to overview page.

* fix: upgrade @types/node from 14.14.21 to 14.14.39 (#273)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.39.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Bump underscore from 1.12.0 to 1.13.1 in /functions/ts/kubeval (#283)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/analyze-istio (#282)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/ts/kubeval (#281)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/contrib/ts/sops (#280)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/analyze-istio (#279)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/inflate-helm-chart (#278)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore from 1.12.0 to 1.13.1 in /functions/contrib/ts/sops (#284)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/inflate-helm-chart (#277)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add usage doc template for TS functions (#271)

* fix README styling for examples (#276)

* fix: upgrade @types/node from 14.14.39 to 14.14.41 (#286)

Snyk has created this PR to upgrade @types/node from 14.14.39 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Format function (#242)

* Format function

* Update short description

* Suggested changes 1

* Update fmt to format

* Add simple example

* Update short description

* Suggested docs changes

* Add test block

* Remove new lines

* openapi to OpenAPI

* Suggested changes

* Remove orchestrator reference

* Only build on release or main branch changes. (#292)

* Add make generate as pre-commit hook (#287)

* Update cmd docs with latest README.md

* Add make generate pre-commit hook

* Update .github/hooks/pre-commit

Co-authored-by: Mengqi Yu <[email protected]>

Co-authored-by: Mengqi Yu <[email protected]>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/contrib/ts/sops (#291)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/analyze-istio (#290)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/ts/kubeval (#289)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/inflate-helm-chart (#288)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Hash setter names for regex matching (#293)

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#296)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.21 to 14.14.41 (#295)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* improve error message for kubeval when encounter unknown CRDs (#297)

* Use image paths as names for landing page. (#301)

* Updating SOPS to 3.7.1 (#241)

Sops 3.7.1 introduces a limited AGE support[1]
Disabling gpg importing key debug by default (can be overridden)

[1]
https://github.com/mozilla/sops#encrypting-using-age

* Escape regex characters in setter pattern (#300)

* Escape regex characters in setter pattern

* Use image paths as names for landing page. (#301)

* Updates test and example for pattern escape

Co-authored-by: etefera <[email protected]>

* Adds .vscode to .gitignore (#303)

* Apply setters empty values checks (#299)

* Apply setters empty values

* {} for empty map

* stop setting LOG_TO_STDERR=true in kubeval (#304)

* Add kpt logo to catalog site. (#302)

* Log message for no search results (#306)

* Log message for no search results

* update message

* make file scheme more visible in kubeval help text (#305)

* make file scheme more visible

* Use URI instead of URL

* Create setters example (#294)

* Create setters example

* Suggested changes

* Results for apply-setters (#307)

* Results for apply-setters

* Suggested changes

* Error for no matches

* Remove results

* fix: upgrade @types/jasmine from 3.6.9 to 3.6.10 (#311)

Snyk has created this PR to upgrade @types/jasmine from 3.6.9 to 3.6.10.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#312)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#313)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#315)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* upsert-resource function (#298)

* upsert-resource function

* Check set annotations error

* Deep copy matched resource

* update diff.patch

* Suggested changes

* Refactor to handle meta annotations

* Suggested changes

* Check for fn config annotation

* remove new line

* Suggested changes

* Better handle empty values for apply-setters (#317)

* Better handle empty values

* Empty string and empty sequence

* Fix function (#308)

* Fix function

* Update resources grouping in packages

* Simple example

* lint changes

* Remove diff.patch and add later

* Docs changes

* Output results

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#319)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* Upgrade kyaml to v0.10.20 in functions (#318)

* Upgrade kyaml to v0.10.19 in apply-setters, search-replace

* Update other functions

* Upgrade to v0.10.20

* Add setters first to the pipelint (#320)

* Add "open an issue" link to README (#321)

* Skip missing and contributed funcs in site. (#322)

* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.

* Update example packages to use new kpt (#275)

* update README in examples

* use new kpt in tests

* update CI

* temporarily skip sops e2e test

* fix eval tests

* replace inline CRD config with configPath

* make pkg name before flags

* code review

* update expected stderr

* address comments

* Switch back to function name in catalog. (#326)

* fix: upgrade @types/node from 14.14.43 to 14.14.44 (#331)

Snyk has created this PR to upgrade @types/node from 14.14.43 to 14.14.44.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.10 to 3.7.0 (#330)

Snyk has created this PR to upgrade @types/jasmine from 3.6.10 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade prettier from 2.2.1 to 2.3.0 (#335)

Snyk has created this PR to upgrade prettier from 2.2.1 to 2.3.0.

See this package in npm:
https://www.npmjs.com/package/prettier

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.0 to 3.7.1 (#334)

Snyk has created this PR to upgrade @types/jasmine from 3.7.0 to 3.7.1.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.1 to 3.7.2 (#336)

Snyk has created this PR to upgrade @types/jasmine from 3.7.1 to 3.7.2.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* set imagePullPolicy to ifNotPresent in e2e tests (#332)

* set imagePullPolicy to ifNotPresent in e2e tests

This is to ensure we are testing the newly built images

* not use internal package

* Use never for image-pull-policy in e2e tests

* rename enforce-gatekeeper to gatekeeper (#327)

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/ts/kubeval (#337)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/analyze-istio (#338)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/contrib/ts/sops (#339)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/inflate-helm-chart (#340)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update docs for 1.0 compatibility (#341)

* update usage doc for gatekeeper and starlark (#342)

* update usage doc for gatekeeper and starlark

* code review

* update pkg in tests dir

* code review

* Rename simple to set-namespace and add a few more examples

* fix: upgrade @types/node from 14.14.44 to 14.14.45 (#343)

Snyk has created this PR to upgrade @types/node from 14.14.44 to 14.14.45.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* bump kyaml to v0.10.20 for starlark and gatekeeper (#344)

* bump kyaml to v0.10.20 for starlark and gatekeeper

* minor tweak

* fix: upgrade @types/jasmine from 3.7.2 to 3.7.4 (#349)

Snyk has created this PR to upgrade @types/jasmine from 3.7.2 to 3.7.4.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* added create-setters function  (#333)

* create-setters added

* create-setters: functionality

* added comments

* updated tests, generated docs

* updated Results

* fixed typos

* modified functions

* added comments

* create-setters

* create-setters added

* create-setters: functionality

* added comments

* updated tests, generated docs

* updated Results

* fixed typos

* modified functions

* added comments

* scalar-setters

* modified docs

* added tests for linecomment

* added examples

* fixed typo

* doc changes

* fixed markdown

* checks

* updated kptfile

* address comments

* docs style

* docs style

* diff

* changes

Co-authored-by: etefera <[email protected]>
Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: phani <[email protected]>
Co-authored-by: Morten Torkildsen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexey Odinokov <[email protected]>
Co-authored-by: Stefan Henseler <[email protected]>
Co-authored-by: Sam Wronski <[email protected]>
Co-authored-by: NagaHarshita <[email protected]>
mengqiy pushed a commit that referenced this pull request Jun 8, 2021
* fork openapi2jsonschema in fn kubeval (#240)

* fork github.com/instrumenta/openapi2jsonschema@d697cbff8a25f520e125e3a5f79cb4e9b972e8ce

* drop forked directory

* Add a catalog landing page (#176)

* Stage multiple versions of helm-inflator.

* Site page with versions dropdown hook.

* Copy helm-inflator/local-configs to versions.

* Updated directory structure to remove latest.

* Use semver to sort version list.

* Add catalog generator go command.

* Add named examples to directory structure.

* Add named examples to web page.

* Delete intermediary helm-template dir.

* Account for directories without releases.

* Add names and descriptions for existing funcs.

* Don't use hidden directories as examples.

* Move catalog generation script to its own dir.

* Get function descriptions from `kpt fn doc`

* Remove comment.

* Trim new line from desription.

* Add catalog json generation.

* Get dropdown information from catalog json.

* Add site generator to makefile.

* Update catalog generator to design doc.

* Change the GitHub icon link on func pages.

* Link to function dir in GH instead of just repo.

* Address PR comments.

* Switch yaml fetch to cat-file.

* Reinclude reverted deletions.

* Make kubeval hermetic (#233)

* make kubeval hermetic

* use json parser

* openapi2jsonschema should handle strict

* rebase on new fork openapi2jsonschema

* Use [email protected] in metadata.yaml (#245)

* remove validators directory in examples (#247)

* Update the catalog title

Per style guide: `kpt` not `KPT`.

* Update README.md

* add check to verify docs (#246)

* check metadata files

* check examples and handle release branches

* update how to install mdrip in CI

* Do not process hidden function versions. (#252)

* Rename functions (#251)

gatekeeper-validate -> enforce-gatekeeper
set-annotation -> set-annotations
set-label -> set-labels
helm-inflator -> inflate-helm-chart
istioctl-analyze -> analyze-istio

* use GITHUB_BASE_REF env var (#254)

* Specify how function config should be documented

* Update README.md

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#259)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* add usage doc for kubeval (#257)

* add usage doc for kubeval

* update usage doc

* update usage doc

* update usage doc

* update usage doc

* Fix search-replace image typo (#262)

* Separate api layer apply-setters (#266)

* SeparateApiLayerApplySetters

* Update package name

* Check functions catalog site for breakage on repo changes. (#250)

* Add Firebase files.

* Add placeholder sidebar.

* Add make command to run site locally.

* Check site on changes to function/example dirs.

* Fix lint errors in shell scripts.

* Change os.MkdirTemp to ioutil.TempDir

* Remaining lint error.

* Update hosting site name.

* Add comment to Dockerfile.

* Move site files from examples/ to site/

* Add successful site running output.

* Output missing function.

* Return command of bad git checkout.

* Move firebase files to site.

* Better errors at copy stage.

* Update license years in shell scripts.

* Set bash script flags.

* Run docker in attached mode.

* Revert "Run docker in attached mode."

This reverts commit 5c57a1a.

* Use named docker container

* Separate api layer from cmd/function and validate inputs (#264)

* Validate input cases for Search and Replace

* Suggested changes

* Update package name

* Setup firebase hosting (#269)

* Update firebase hosting deployment. (#270)

* Fix miscellaneous styling issues. (#272)

* Allow cross-origin linking.

* Add favicon to catalog.

* Match kpt.dev styling.

* Top level links to overview page.

* fix: upgrade @types/node from 14.14.21 to 14.14.39 (#273)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.39.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Bump underscore from 1.12.0 to 1.13.1 in /functions/ts/kubeval (#283)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/analyze-istio (#282)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/ts/kubeval (#281)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/contrib/ts/sops (#280)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/analyze-istio (#279)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/inflate-helm-chart (#278)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore from 1.12.0 to 1.13.1 in /functions/contrib/ts/sops (#284)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/inflate-helm-chart (#277)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add usage doc template for TS functions (#271)

* fix README styling for examples (#276)

* fix: upgrade @types/node from 14.14.39 to 14.14.41 (#286)

Snyk has created this PR to upgrade @types/node from 14.14.39 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Format function (#242)

* Format function

* Update short description

* Suggested changes 1

* Update fmt to format

* Add simple example

* Update short description

* Suggested docs changes

* Add test block

* Remove new lines

* openapi to OpenAPI

* Suggested changes

* Remove orchestrator reference

* Only build on release or main branch changes. (#292)

* Add make generate as pre-commit hook (#287)

* Update cmd docs with latest README.md

* Add make generate pre-commit hook

* Update .github/hooks/pre-commit

Co-authored-by: Mengqi Yu <[email protected]>

Co-authored-by: Mengqi Yu <[email protected]>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/contrib/ts/sops (#291)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/analyze-istio (#290)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/ts/kubeval (#289)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/inflate-helm-chart (#288)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Hash setter names for regex matching (#293)

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#296)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.21 to 14.14.41 (#295)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* improve error message for kubeval when encounter unknown CRDs (#297)

* Use image paths as names for landing page. (#301)

* Updating SOPS to 3.7.1 (#241)

Sops 3.7.1 introduces a limited AGE support[1]
Disabling gpg importing key debug by default (can be overridden)

[1]
https://github.com/mozilla/sops#encrypting-using-age

* Escape regex characters in setter pattern (#300)

* Escape regex characters in setter pattern

* Use image paths as names for landing page. (#301)

* Updates test and example for pattern escape

Co-authored-by: etefera <[email protected]>

* Adds .vscode to .gitignore (#303)

* Apply setters empty values checks (#299)

* Apply setters empty values

* {} for empty map

* stop setting LOG_TO_STDERR=true in kubeval (#304)

* Add kpt logo to catalog site. (#302)

* Log message for no search results (#306)

* Log message for no search results

* update message

* make file scheme more visible in kubeval help text (#305)

* make file scheme more visible

* Use URI instead of URL

* Create setters example (#294)

* Create setters example

* Suggested changes

* Results for apply-setters (#307)

* Results for apply-setters

* Suggested changes

* Error for no matches

* Remove results

* fix: upgrade @types/jasmine from 3.6.9 to 3.6.10 (#311)

Snyk has created this PR to upgrade @types/jasmine from 3.6.9 to 3.6.10.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#312)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#313)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#315)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* upsert-resource function (#298)

* upsert-resource function

* Check set annotations error

* Deep copy matched resource

* update diff.patch

* Suggested changes

* Refactor to handle meta annotations

* Suggested changes

* Check for fn config annotation

* remove new line

* Suggested changes

* Better handle empty values for apply-setters (#317)

* Better handle empty values

* Empty string and empty sequence

* Fix function (#308)

* Fix function

* Update resources grouping in packages

* Simple example

* lint changes

* Remove diff.patch and add later

* Docs changes

* Output results

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#319)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* Upgrade kyaml to v0.10.20 in functions (#318)

* Upgrade kyaml to v0.10.19 in apply-setters, search-replace

* Update other functions

* Upgrade to v0.10.20

* Add setters first to the pipelint (#320)

* Add "open an issue" link to README (#321)

* Skip missing and contributed funcs in site. (#322)

* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.

* Update example packages to use new kpt (#275)

* update README in examples

* use new kpt in tests

* update CI

* temporarily skip sops e2e test

* fix eval tests

* replace inline CRD config with configPath

* make pkg name before flags

* code review

* update expected stderr

* address comments

* Switch back to function name in catalog. (#326)

* fix: upgrade @types/node from 14.14.43 to 14.14.44 (#331)

Snyk has created this PR to upgrade @types/node from 14.14.43 to 14.14.44.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.10 to 3.7.0 (#330)

Snyk has created this PR to upgrade @types/jasmine from 3.6.10 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade prettier from 2.2.1 to 2.3.0 (#335)

Snyk has created this PR to upgrade prettier from 2.2.1 to 2.3.0.

See this package in npm:
https://www.npmjs.com/package/prettier

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.0 to 3.7.1 (#334)

Snyk has created this PR to upgrade @types/jasmine from 3.7.0 to 3.7.1.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.1 to 3.7.2 (#336)

Snyk has created this PR to upgrade @types/jasmine from 3.7.1 to 3.7.2.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* set imagePullPolicy to ifNotPresent in e2e tests (#332)

* set imagePullPolicy to ifNotPresent in e2e tests

This is to ensure we are testing the newly built images

* not use internal package

* Use never for image-pull-policy in e2e tests

* rename enforce-gatekeeper to gatekeeper (#327)

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/ts/kubeval (#337)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/analyze-istio (#338)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/contrib/ts/sops (#339)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/inflate-helm-chart (#340)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update docs for 1.0 compatibility (#341)

* update usage doc for gatekeeper and starlark (#342)

* update usage doc for gatekeeper and starlark

* code review

* update pkg in tests dir

* code review

* Rename simple to set-namespace and add a few more examples

* fix: upgrade @types/node from 14.14.44 to 14.14.45 (#343)

Snyk has created this PR to upgrade @types/node from 14.14.44 to 14.14.45.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* bump kyaml to v0.10.20 for starlark and gatekeeper (#344)

* bump kyaml to v0.10.20 for starlark and gatekeeper

* minor tweak

* fix: upgrade @types/jasmine from 3.7.2 to 3.7.4 (#349)

Snyk has created this PR to upgrade @types/jasmine from 3.7.2 to 3.7.4.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* added create-setters function  (#333)

* create-setters added

* create-setters: functionality

* added comments

* updated tests, generated docs

* updated Results

* fixed typos

* modified functions

* added comments

* create-setters

* create-setters added

* create-setters: functionality

* added comments

* updated tests, generated docs

* updated Results

* fixed typos

* modified functions

* added comments

* scalar-setters

* modified docs

* added tests for linecomment

* added examples

* fixed typo

* doc changes

* fixed markdown

* checks

* updated kptfile

* address comments

* docs style

* docs style

* diff

* changes

Co-authored-by: etefera <[email protected]>
Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: phani <[email protected]>
Co-authored-by: Morten Torkildsen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexey Odinokov <[email protected]>
Co-authored-by: Stefan Henseler <[email protected]>
Co-authored-by: Sam Wronski <[email protected]>
Co-authored-by: NagaHarshita <[email protected]>
mengqiy pushed a commit that referenced this pull request Jun 8, 2021
* use GITHUB_BASE_REF env var (#254)

* Specify how function config should be documented

* Update README.md

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#259)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* add usage doc for kubeval (#257)

* add usage doc for kubeval

* update usage doc

* update usage doc

* update usage doc

* update usage doc

* Fix search-replace image typo (#262)

* Separate api layer apply-setters (#266)

* SeparateApiLayerApplySetters

* Update package name

* Check functions catalog site for breakage on repo changes. (#250)

* Add Firebase files.

* Add placeholder sidebar.

* Add make command to run site locally.

* Check site on changes to function/example dirs.

* Fix lint errors in shell scripts.

* Change os.MkdirTemp to ioutil.TempDir

* Remaining lint error.

* Update hosting site name.

* Add comment to Dockerfile.

* Move site files from examples/ to site/

* Add successful site running output.

* Output missing function.

* Return command of bad git checkout.

* Move firebase files to site.

* Better errors at copy stage.

* Update license years in shell scripts.

* Set bash script flags.

* Run docker in attached mode.

* Revert "Run docker in attached mode."

This reverts commit 5c57a1a.

* Use named docker container

* Separate api layer from cmd/function and validate inputs (#264)

* Validate input cases for Search and Replace

* Suggested changes

* Update package name

* Setup firebase hosting (#269)

* Update firebase hosting deployment. (#270)

* Fix miscellaneous styling issues. (#272)

* Allow cross-origin linking.

* Add favicon to catalog.

* Match kpt.dev styling.

* Top level links to overview page.

* fix: upgrade @types/node from 14.14.21 to 14.14.39 (#273)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.39.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Bump underscore from 1.12.0 to 1.13.1 in /functions/ts/kubeval (#283)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/analyze-istio (#282)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/ts/kubeval (#281)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash from 4.17.20 to 4.17.21 in /functions/contrib/ts/sops (#280)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/analyze-istio (#279)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump lodash in /functions/contrib/ts/inflate-helm-chart (#278)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore from 1.12.0 to 1.13.1 in /functions/contrib/ts/sops (#284)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump underscore in /functions/contrib/ts/inflate-helm-chart (#277)

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](jashkenas/underscore@1.12.0...1.13.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add usage doc template for TS functions (#271)

* fix README styling for examples (#276)

* fix: upgrade @types/node from 14.14.39 to 14.14.41 (#286)

Snyk has created this PR to upgrade @types/node from 14.14.39 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* Format function (#242)

* Format function

* Update short description

* Suggested changes 1

* Update fmt to format

* Add simple example

* Update short description

* Suggested docs changes

* Add test block

* Remove new lines

* openapi to OpenAPI

* Suggested changes

* Remove orchestrator reference

* Only build on release or main branch changes. (#292)

* Add make generate as pre-commit hook (#287)

* Update cmd docs with latest README.md

* Add make generate pre-commit hook

* Update .github/hooks/pre-commit

Co-authored-by: Mengqi Yu <[email protected]>

Co-authored-by: Mengqi Yu <[email protected]>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/contrib/ts/sops (#291)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/analyze-istio (#290)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info from 2.8.8 to 2.8.9 in /functions/ts/kubeval (#289)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump hosted-git-info in /functions/contrib/ts/inflate-helm-chart (#288)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Hash setter names for regex matching (#293)

* fix: upgrade typescript from 4.2.3 to 4.2.4 (#296)

Snyk has created this PR to upgrade typescript from 4.2.3 to 4.2.4.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.21 to 14.14.41 (#295)

Snyk has created this PR to upgrade @types/node from 14.14.21 to 14.14.41.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* improve error message for kubeval when encounter unknown CRDs (#297)

* Use image paths as names for landing page. (#301)

* Updating SOPS to 3.7.1 (#241)

Sops 3.7.1 introduces a limited AGE support[1]
Disabling gpg importing key debug by default (can be overridden)

[1]
https://github.com/mozilla/sops#encrypting-using-age

* Escape regex characters in setter pattern (#300)

* Escape regex characters in setter pattern

* Use image paths as names for landing page. (#301)

* Updates test and example for pattern escape

Co-authored-by: etefera <[email protected]>

* Adds .vscode to .gitignore (#303)

* Apply setters empty values checks (#299)

* Apply setters empty values

* {} for empty map

* stop setting LOG_TO_STDERR=true in kubeval (#304)

* Add kpt logo to catalog site. (#302)

* Log message for no search results (#306)

* Log message for no search results

* update message

* make file scheme more visible in kubeval help text (#305)

* make file scheme more visible

* Use URI instead of URL

* Create setters example (#294)

* Create setters example

* Suggested changes

* Results for apply-setters (#307)

* Results for apply-setters

* Suggested changes

* Error for no matches

* Remove results

* fix: upgrade @types/jasmine from 3.6.9 to 3.6.10 (#311)

Snyk has created this PR to upgrade @types/jasmine from 3.6.9 to 3.6.10.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#312)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.41 to 14.14.42 (#313)

Snyk has created this PR to upgrade @types/node from 14.14.41 to 14.14.42.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#315)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* upsert-resource function (#298)

* upsert-resource function

* Check set annotations error

* Deep copy matched resource

* update diff.patch

* Suggested changes

* Refactor to handle meta annotations

* Suggested changes

* Check for fn config annotation

* remove new line

* Suggested changes

* Better handle empty values for apply-setters (#317)

* Better handle empty values

* Empty string and empty sequence

* Fix function (#308)

* Fix function

* Update resources grouping in packages

* Simple example

* lint changes

* Remove diff.patch and add later

* Docs changes

* Output results

* fix: upgrade @types/node from 14.14.42 to 14.14.43 (#319)

Snyk has created this PR to upgrade @types/node from 14.14.42 to 14.14.43.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/5ee802a9-8df2-4243-be28-e1da63426b99?utm_source=github&utm_medium=upgrade-pr

* Upgrade kyaml to v0.10.20 in functions (#318)

* Upgrade kyaml to v0.10.19 in apply-setters, search-replace

* Update other functions

* Upgrade to v0.10.20

* Add setters first to the pipelint (#320)

* Add "open an issue" link to README (#321)

* Skip missing and contributed funcs in site. (#322)

* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.

* Update example packages to use new kpt (#275)

* update README in examples

* use new kpt in tests

* update CI

* temporarily skip sops e2e test

* fix eval tests

* replace inline CRD config with configPath

* make pkg name before flags

* code review

* update expected stderr

* address comments

* Switch back to function name in catalog. (#326)

* fix: upgrade @types/node from 14.14.43 to 14.14.44 (#331)

Snyk has created this PR to upgrade @types/node from 14.14.43 to 14.14.44.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.6.10 to 3.7.0 (#330)

Snyk has created this PR to upgrade @types/jasmine from 3.6.10 to 3.7.0.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade prettier from 2.2.1 to 2.3.0 (#335)

Snyk has created this PR to upgrade prettier from 2.2.1 to 2.3.0.

See this package in npm:
https://www.npmjs.com/package/prettier

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.0 to 3.7.1 (#334)

Snyk has created this PR to upgrade @types/jasmine from 3.7.0 to 3.7.1.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* fix: upgrade @types/jasmine from 3.7.1 to 3.7.2 (#336)

Snyk has created this PR to upgrade @types/jasmine from 3.7.1 to 3.7.2.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* set imagePullPolicy to ifNotPresent in e2e tests (#332)

* set imagePullPolicy to ifNotPresent in e2e tests

This is to ensure we are testing the newly built images

* not use internal package

* Use never for image-pull-policy in e2e tests

* rename enforce-gatekeeper to gatekeeper (#327)

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/ts/kubeval (#337)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/analyze-istio (#338)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws from 6.2.1 to 6.2.2 in /functions/contrib/ts/sops (#339)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws in /functions/contrib/ts/inflate-helm-chart (#340)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update docs for 1.0 compatibility (#341)

* update usage doc for gatekeeper and starlark (#342)

* update usage doc for gatekeeper and starlark

* code review

* update pkg in tests dir

* code review

* Rename simple to set-namespace and add a few more examples

* fix: upgrade @types/node from 14.14.44 to 14.14.45 (#343)

Snyk has created this PR to upgrade @types/node from 14.14.44 to 14.14.45.

See this package in npm:
https://www.npmjs.com/package/@types/node

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* bump kyaml to v0.10.20 for starlark and gatekeeper (#344)

* bump kyaml to v0.10.20 for starlark and gatekeeper

* minor tweak

* fix: upgrade @types/jasmine from 3.7.2 to 3.7.4 (#349)

Snyk has created this PR to upgrade @types/jasmine from 3.7.2 to 3.7.4.

See this package in npm:
https://www.npmjs.com/package/@types/jasmine

See this project in Snyk:
https://app.snyk.io/org/kpt-fn-bot/project/206705c7-640c-491f-9f5b-bcb93537444e?utm_source=github&utm_medium=upgrade-pr

* added create-setters function  (#333)

* create-setters added

* create-setters: functionality

* added comments

* updated tests, generated docs

* updated Results

* fixed typos

* modified functions

* added comments

* create-setters

* create-setters added

* create-setters: functionality

* added comments

* updated tests, generated docs

* updated Results

* fixed typos

* modified functions

* added comments

* scalar-setters

* modified docs

* added tests for linecomment

* added examples

* fixed typo

* doc changes

* fixed markdown

* checks

* updated kptfile

* address comments

* docs style

* docs style

* diff

* changes

Co-authored-by: Frank Farzan <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: phani <[email protected]>
Co-authored-by: etefera <[email protected]>
Co-authored-by: Morten Torkildsen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexey Odinokov <[email protected]>
Co-authored-by: Stefan Henseler <[email protected]>
Co-authored-by: Sam Wronski <[email protected]>
Co-authored-by: NagaHarshita <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA OK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants