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
#!/bin/sh | |
svc=nginxtest | |
admin_config_path="cacerts/kubelet/admin_kubeconfig" | |
for rc in nginxtest positive_test negative_test ; do | |
#cleanup and bring up test rc | |
kubectl delete -f test/${rc}.yaml --kubeconfig=${admin_config_path} | |
kubectl create -f test/${rc}.yaml --kubeconfig=${admin_config_path} | |
done |
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
go func() { | |
w, er := session.StdinPipe() | |
defer w.Close() | |
if er != nil { | |
fmt.Println("doesnt work ", er) | |
} | |
files, _ := ioutil.ReadDir(src) | |
fmt.Println(src) | |
fmt.Fprintln(w, "D0755 0 ", src) |
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
- name: get uuid | |
action: uri url=http://foo.com/uuid returncontent=yes method=GET | |
register: uuid |
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
#!/usr/bin/env ruby | |
$ | |
require 'json' | |
require 'date' | |
$ | |
d = DateTime.now | |
time_date = {"time" => DateTime.now } | |
print time_date.to_json |