-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fix various usability problems in yaml.*
#638
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e3b6106
Allow `yaml.ConfigGroup` to take URLs as argument
hausdorff eaea759
Return useful errors when we fail to fetch URL YAML
hausdorff df24763
Return useful error messages when we fail to parse YAML
hausdorff a559e41
Use JSON schema when parsing YAML
hausdorff 13abb76
Copy istio charts to local directory since upstream is flaky
lblackstone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
13 changes: 13 additions & 0 deletions
13
tests/integration/istio/step1/charts/istio-init/Chart.yaml
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,13 @@ | ||
apiVersion: v1 | ||
appVersion: 1.1.0 | ||
description: Helm chart to initialize Istio CRDs | ||
engine: gotpl | ||
icon: https://istio.io/favicons/android-192x192.png | ||
keywords: | ||
- istio | ||
- crd | ||
name: istio-init | ||
sources: | ||
- http://github.com/istio/istio | ||
tillerVersion: '>=2.7.2-0' | ||
version: 1.1.0 |
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,77 @@ | ||
# Istio | ||
|
||
[Istio](https://istio.io/) is an open platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce policies and aggregate telemetry data. | ||
|
||
## Introduction | ||
|
||
This chart bootstraps Istio's [CRDs](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/#customresourcedefinitions) | ||
which are an internal implementation detail of Istio. CRDs define data structures for storing runtime configuration | ||
specified by a human operator. | ||
|
||
This chart must be run to completion prior to running other Istio charts, or other Istio charts will fail to initialize. | ||
|
||
## Prerequisites | ||
|
||
- Kubernetes 1.9 or newer cluster with RBAC (Role-Based Access Control) enabled is required | ||
- Helm 2.7.2 or newer or alternately the ability to modify RBAC rules is also required | ||
|
||
## Resources Required | ||
|
||
The chart deploys pods that consume minimal resources. | ||
|
||
## Installing the Chart | ||
|
||
1. If a service account has not already been installed for Tiller, install one: | ||
``` | ||
$ kubectl apply -f install/kubernetes/helm/helm-service-account.yaml | ||
``` | ||
|
||
1. If Tiller has not already been installed in your cluster, Install Tiller on your cluster with the service account: | ||
``` | ||
$ helm init --service-account tiller | ||
``` | ||
|
||
1. Install the Istio initializer chart: | ||
``` | ||
$ helm install install/kubernetes/helm/istio-init --name istio-init --namespace istio-system | ||
``` | ||
|
||
> Although you can install the `istio-init` chart to any namespace, it is recommended to install `istio-init` in the same namespace(`istio-system`) as other Istio charts. | ||
|
||
## Configuration | ||
|
||
The Helm chart ships with reasonable defaults. There may be circumstances in which defaults require overrides. | ||
To override Helm values, use `--set key=value` argument during the `helm install` command. Multiple `--set` operations may be used in the same Helm operation. | ||
|
||
Helm charts expose configuration options which are currently in alpha. The currently exposed options are explained in the following table: | ||
|
||
| Parameter | Description | Values | Default | | ||
| --- | --- | --- | --- | | ||
| `global.hub` | Specifies the HUB for most images used by Istio | registry/namespace | `docker.io/istio` | | ||
| `global.tag` | Specifies the TAG for most images used by Istio | valid image tag | `0.8.latest` | | ||
| `global.imagePullPolicy` | Specifies the image pull policy | valid image pull policy | `IfNotPresent` | | ||
|
||
|
||
## Uninstalling the Chart | ||
|
||
> Uninstalling this chart does not delete Istio's registered CRDs. Istio by design expects | ||
> CRDs to leak into the Kubernetes environment. As CRDs contain all runtime configuration | ||
> data in CutomResources the Istio designers feel it is better to explicitly delete this | ||
> configuration rather then unexpectedly lose it. | ||
|
||
To uninstall/delete the `istio-init` release but continue to track the release: | ||
``` | ||
$ helm delete istio-init | ||
``` | ||
|
||
To uninstall/delete the `istio-init` release completely and make its name free for later use: | ||
``` | ||
$ helm delete istio-init --purge | ||
``` | ||
|
||
> Warning: Deleting CRDs will delete any configuration that you have made to Istio. | ||
|
||
To delete all CRDs, run the following command | ||
``` | ||
$ for i in istio-init/files/*crd*yaml; do kubectl delete -f $i; done | ||
``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be instead attempt to parse a URL with https://nodejs.org/api/url.html#url_class_url and return
true
if parsing succeeds? This would allow us to handle file URLs, etc.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I do see that what you've written matches the prior behavior of
ConfigFile
, so no urgency here)