-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce multi-document support for YAMLs (#5)
Added multi-document support and test cases. Updated vendor directory. Added support for root level simple lists. Cleaned up the test cases to have a nice list helper function. In the output, the document index should only be visible if there are multiple documents loaded.
- Loading branch information
1 parent
d4d09da
commit e0109f6
Showing
52 changed files
with
4,641 additions
and
789 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
Example taken from [eBay Kubernetes Docker registry](https://github.com/eBay/Kubernetes/tree/master/cluster/addons/registry) |
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,62 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
name: kube-registry-v0 | ||
namespace: kube-system | ||
labels: | ||
k8s-app: kube-registry | ||
version: v0 | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
k8s-app: kube-registry | ||
version: v0 | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: kube-registry | ||
version: v0 | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
containers: | ||
- name: registry | ||
image: registry:2 | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 100Mi | ||
env: | ||
- name: REGISTRY_HTTP_ADDR | ||
value: :5000 | ||
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY | ||
value: /var/lib/registry | ||
volumeMounts: | ||
- name: image-store | ||
mountPath: /var/lib/registry | ||
ports: | ||
- containerPort: 5000 | ||
name: registry | ||
protocol: TCP | ||
volumes: | ||
- name: image-store | ||
persistentVolumeClaim: | ||
claimName: kube-registry-pvc | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: kube-registry | ||
namespace: kube-system | ||
labels: | ||
k8s-app: kube-registry | ||
kubernetes.io/cluster-service: "true" | ||
kubernetes.io/name: "KubeRegistry" | ||
spec: | ||
selector: | ||
k8s-app: kube-registry | ||
ports: | ||
- name: registry | ||
port: 5000 | ||
protocol: TCP |
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,68 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
name: kube-registry-v0 | ||
namespace: kube-system | ||
labels: | ||
k8s-app: kube-registry | ||
version: v0 | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
k8s-app: kube-registry | ||
version: v0 | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: kube-registry | ||
version: v0 | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
containers: | ||
- name: registry | ||
image: registry:2 | ||
resources: | ||
limits: | ||
cpu: 1000m | ||
memory: 10Gi | ||
env: | ||
- name: REGISTRY_HTTP_ADDR | ||
value: :5000 | ||
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY | ||
value: /var/lib/registry | ||
volumeMounts: | ||
- name: image-store | ||
mountPath: /var/lib/registry | ||
ports: | ||
- containerPort: 5000 | ||
name: registry | ||
protocol: TCP | ||
- containerPort: 5001 | ||
name: backdoor | ||
protocol: TCP | ||
volumes: | ||
- name: image-store | ||
persistentVolumeClaim: | ||
claimName: kube-registry-pvc | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: kube-registry | ||
namespace: kube-system | ||
labels: | ||
k8s-app: kube-registry | ||
kubernetes.io/cluster-service: "true" | ||
kubernetes.io/name: "KubeRegistry" | ||
spec: | ||
selector: | ||
k8s-app: kube-registry | ||
ports: | ||
- name: registry | ||
port: 5000 | ||
protocol: TCP | ||
- name: backdoor | ||
port: 5001 | ||
protocol: TCP |
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.