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
extension String { | |
func startsWith(string: String) -> Bool { | |
guard let range = rangeOfString(string, options:[.AnchoredSearch, .CaseInsensitiveSearch]) else { | |
return false | |
} | |
return range.startIndex == startIndex | |
} |
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
prometheus: | |
url: http://linkerd-prometheus.linkerd.svc | |
rules: | |
default: false | |
custom: | |
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}' | |
resources: | |
template: <<.Resource>> | |
name: |
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
prometheus: | |
url: http://linkerd-prometheus.linkerd.svc | |
rules: | |
default: false | |
custom: | |
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}' | |
resources: | |
template: <<.Resource>> | |
name: |
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
apiVersion: autoscaling/v2beta2 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: emoji-hpa | |
spec: | |
scaleTargetRef: | |
apiVersion: apps/v1 | |
kind: Deployment | |
name: emoji | |
minReplicas: 1 |
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
# Default values for example. | |
# This is a YAML-formatted file. | |
# Declare variables to be passed into your templates. | |
subchart: | |
backendEndpoint: "{{ .Release.Name}}.{{ .Release.Namespace}}:1337" | |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: subchart-config | |
data: | |
backend: "{{ .Values.backendEndpoint }}" | |
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
... | |
env: | |
- name: SPECIAL_LEVEL_KEY | |
valueFrom: | |
configMapKeyRef: | |
name: backend-config | |
key: test |
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
mysub-chart: | |
servicename: mysubchart-service |
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
def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials( | |
com.cloudbees.plugins.credentials.Credentials.class | |
) | |
for (c in creds) { | |
println(c.id) | |
if (c.properties.username) { | |
println(" description: " + c.description) | |
} | |
if (c.properties.username) { |