-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1056 support (more) remote files in
zarf.yaml
manifests (#1633)
Support added for the following resources to be URLs: - manifests + kustomizations - data injectsions - helm chart values files files + helm charts already had support for URLs additionally, URLs can be verified w/ SHA256 checksums, stored alongside the URL: ``` https://k8s.io/examples/application/deployment.yaml@c57f73449b26eae02ca2a549c388807d49ef6d3f2dc040a9bbb1290128d97157 github.com/stefanprodan/podinfo//kustomize?ref=0647aea75b85755411b007a290b9321668370be5 ``` This also supports image discovery during `zarf prepare find-images` ## Related Issue Fixes #1056 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed --------- Signed-off-by: razzle <[email protected]> Co-authored-by: Wayne Starr <[email protected]>
- Loading branch information
Showing
19 changed files
with
456 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Remote Manifests | ||
|
||
This example shows how you to specify remote resources for a component's `manifests`. | ||
|
||
:::info | ||
|
||
To view the example source code, select the `Edit this page` link below the article and select the parent folder. | ||
|
||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: remote-manifests | ||
version: 0.0.1 | ||
|
||
components: | ||
- name: remote-manifests-and-kustomizations | ||
required: true | ||
manifests: | ||
- name: simple-nginx-deployment | ||
namespace: nginx | ||
files: | ||
# to verify integrity of a remote manifest, you can use the sha256sum of the file | ||
# append the sha256sum to the end of the url, separated by an @ | ||
# example: | ||
- https://k8s.io/examples/application/deployment.yaml@c57f73449b26eae02ca2a549c388807d49ef6d3f2dc040a9bbb1290128d97157 | ||
# this sha256 can be discovered using the following: | ||
# curl -s https://k8s.io/examples/application/deployment.yaml | sha256sum | ||
# or | ||
# zarf prepare sha256sum https://k8s.io/examples/application/deployment.yaml | ||
- name: podinfo | ||
namespace: podinfo | ||
kustomizations: | ||
# note this syntax: https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md | ||
# using a specific commit hash (essentially the same thing as sha256summ'ing the kustomization) | ||
# ?ref= is not a requirement, but it is recommended to use a specific commit hash / git tag to ensure | ||
# that the kustomization is not changed in a way that breaks your deployment | ||
# example: | ||
- github.com/stefanprodan/podinfo//kustomize?ref=0647aea75b85755411b007a290b9321668370be5 | ||
actions: | ||
onDeploy: | ||
# the following checks were computed by viewing the success state of the package deployment | ||
# and creating `wait` actions that match | ||
after: | ||
- wait: | ||
cluster: | ||
kind: deployment | ||
name: nginx-deployment | ||
namespace: nginx | ||
condition: available | ||
- wait: | ||
cluster: | ||
kind: deployment | ||
name: podinfo | ||
namespace: podinfo | ||
condition: available | ||
# image discovery is supported in remote manifests and kustomizations | ||
# using the following command: | ||
# zarf prepare find-images | ||
images: | ||
- nginx:1.14.2 | ||
- ghcr.io/stefanprodan/podinfo:6.3.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.