Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Rework setup to use a preview copy of ytt
Browse files Browse the repository at this point in the history
  • Loading branch information
jtigger committed Jun 17, 2021
1 parent dfd3258 commit 3e6b80e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,23 @@ Thank you for your help!

A few steps to take before we get going...

1. Make sure you've installed the latest version of `ytt`: https://github.com/vmware-tanzu/carvel-ytt/releases
1. Obtain a copy of `ytt` built for this session (your guide will provide this for you).

2. Ensure that this copy of `ytt` is on your path (it's 0.35.0-preview)
```console
$ ytt version
ytt version 0.35.0-preview
```

2. Either clone or download a copy of this repository to your machine:
```console
git clone https://github.com/k14s/ytt-schema-v1-preview.git
cd ytt-schema-v1-preview
```

3. Let's enable the schema features by default using an alias.
```console
alias ytts='ytt --enable-experiment-schema'
```
and verify it's working...
3. Let's verify that your copy of `ytt` is working:
```console
ytts -f app-to-deploy/config
ytt -f app-to-deploy/config
```

## Housekeeping
Expand Down
7 changes: 5 additions & 2 deletions app-to-deploy/README-bonus.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ The relevant section in the documentation includes this:
> **Configuring Honeycomb**
>
> For debugging, it may be useful to emit events to Honeycomb. This can be enabled by
> passing an additional data file to the `ytt` command.
> passing an additional data values file to the `ytt` command.
>
> `honeycomb-values.yml`
> ```
> #@data/values
> ---
> honeycomb:
> dataet: my-dataset
> writekey: MY_WRITE_KEY
> ```
>
> ```console
> $ ytt -f config/ --data-values-file values.yml --data-values-file honeycomb-values.yml
> ```
> ...
6 changes: 3 additions & 3 deletions app-to-deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Before you _actually_ deploy it, you'd like to render the configuration and be c
The configuration is found in the `app-to-deploy` directory:

```console
cd app-to-deploy
tree
$ cd app-to-deploy
$ tree config
```

This configuration is apparently using the new `ytt` schema features. You've been pointed to the `ytt` documentation: https://carvel.dev/ytt/docs/latest/ytt-schema
Expand All @@ -40,7 +40,7 @@ The documentation for this application explains:
> ```
> running this...
> ```console
> ytts -f config/ --data-values-file values.yml
> $ ytt -f config/ --data-values-file values.yml
> ```
>
> will render the customized configuration, setting the number of instances of the API server to 2.
Expand Down
4 changes: 4 additions & 0 deletions app-to-deploy/honeycomb-values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
honeycombx:
dataet: my-dataset
writekey: MY_WRITE_KEY

0 comments on commit 3e6b80e

Please sign in to comment.