This file contains hidden or 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
| package main | |
| import ( | |
| "crypto/sha256" | |
| "crypto/tls" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" |
This file contains hidden or 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
| spec: | |
| serviceClassName: user-provided-service | |
| planName: default | |
| parameters: | |
| - name: username # easy name/value pair case | |
| value: root | |
| - name: password # pull value from a secret's key | |
| valueFrom: | |
| secretKeyRef: | |
| name: mySecret1 |
This file contains hidden or 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
| Some aspects that influence my thinking on this: | |
| - having PodPresets in a Binding is causing problems | |
| - first, because we'll be constantly chasing the real PodPreset definition | |
| - second, because we actually don't want a full PodPreset with all of its features, | |
| we just need the bits related to Secrets | |
| - third, PodPresets (as of now) are immutable | |
| - we need to allow for people to specify more than one LabelSelector at a time to support | |
| upgrading of apps | |
| - as long as the LabelSelector is immutable and embedded in a Binding we should separate the | |
| idea of asking for creds from linking the creds to an app to allow for changing LabelSelectors |
This file contains hidden or 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
| { | |
| "_id": "apsMyserviceParametersDemo_id", | |
| "catalog": { | |
| "bindable": true, | |
| "name": "apsMyserviceParametersDemo", | |
| "tags": [ | |
| "big_data", | |
| "ibm_created" | |
| ], | |
| "version": "", |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: PersistentVolume | |
| metadata: | |
| name: local-volume-test | |
| labels: | |
| type: local | |
| spec: | |
| capacity: | |
| storage: 5Gi | |
| accessModes: |
This file contains hidden or 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
| all: init build test lint | |
| .PHONY: format coverage | |
| # If DOCKER is defined then make it the full docker cmd line we want to use | |
| ifneq ($(origin DOCKER),undefined) | |
| DOCKER=docker run --rm -ti \ | |
| -v $(PWD):/go/src/github.com/kubernetes-incubator/service-catalog \ | |
| scbuildimage | |
| endif |
This file contains hidden or 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
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "net" | |
| "os" |
This file contains hidden or 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
| package main | |
| /* | |
| fakepod: | |
| This program will monitor all of the containers running on a node and for each | |
| one will check to see if its a Kubernetes managed one. If so, then it skips it. | |
| If it's not managed by Kubernetes then we want to calculate the total amount | |
| of resources used by all of these containers and create a pod which reserves |