Top Level Namespace
Included Modules
- Sam::DSL
Extended Modules
- Sam::DSL
Defined in:
Constant Summary
-
BASE_CONFIG =
"./config.yml"
-
CHAOS_CONTAINER_KILL =
Base64.decode_string("YXBpVmVyc2lvbjogY2hhb3MtbWVzaC5vcmcvdjFhbHBoYTEKa2luZDogUG9kQ2hhb3MKbWV0YWRh\ndGE6CiAgbmFtZTogY29udGFpbmVyLWtpbGwKICBuYW1lc3BhY2U6IGRlZmF1bHQKc3BlYzoKICBh\nY3Rpb246IGNvbnRhaW5lci1raWxsCiAgbW9kZTogb25lCiAgY29udGFpbmVyTmFtZTogInRlc3Qt\nc2VsZWN0b3IiCiAgc2VsZWN0b3I6CiAgICBsYWJlbFNlbGVjdG9yczoKICAgICAgJ3Rlc3Qtc2Vs\nZWN0b3InOiAndGVzdC1zZWxlY3RvcicKICBzY2hlZHVsZXI6CiAgICBjcm9uOiAiQGV2ZXJ5IDMw\ncyIK\n")
-
CHAOS_CPU_HOG =
Base64.decode_string("YXBpVmVyc2lvbjogY2hhb3MtbWVzaC5vcmcvdjFhbHBoYTEKa2luZDogU3RyZXNzQ2hhb3MKbWV0\nYWRhdGE6CiAgbmFtZTogY3B1LWhvZy10ZXN0CiAgbmFtZXNwYWNlOiBkZWZhdWx0CnNwZWM6CiAg\nbW9kZTogb25lCiAgc2VsZWN0b3I6CiAgICBsYWJlbFNlbGVjdG9yczoKICAgICAgJ3Rlc3Qtc2Vs\nZWN0b3InOiAndGVzdC1zZWxlY3RvcicKICBzdHJlc3NvcnM6IAogICAgY3B1OiAKICAgICAgd29y\na2VyczogMQogICAgICBsb2FkOiAxMDAKICBkdXJhdGlvbjogIjMwcyIKICBzY2hlZHVsZXI6CiAg\nICBjcm9uOiAiQGV2ZXJ5IDJtIgo=\n")
-
CHAOS_MESH_OFFLINE_DIR =
"#{TarClient::TAR_REPOSITORY_DIR}/chaos-mesh_chaos-mesh"
-
CHAOS_MESH_VERSION =
"v0.8.0"
-
CHAOS_NETWORK_LOSS =
Base64.decode_string("YXBpVmVyc2lvbjogY2hhb3MtbWVzaC5vcmcvdjFhbHBoYTEKa2luZDogTmV0d29ya0NoYW9zCm1l\ndGFkYXRhOgogIG5hbWU6IG5ldHdvcmstbG9zcy10ZXN0CiAgbmFtZXNwYWNlOiBkZWZhdWx0CnNw\nZWM6CiAgYWN0aW9uOiBsb3NzCiAgbW9kZTogb25lCiAgc2VsZWN0b3I6CiAgICBsYWJlbFNlbGVj\ndG9yczoKICAgICAgJ3Rlc3Qtc2VsZWN0b3InOiAndGVzdC1zZWxlY3RvcicKICBsb3NzOgogICAg\nbG9zczogJzEwMCcKICAgIGNvcnJlbGF0aW9uOiAnMTAwJwogIGR1cmF0aW9uOiAnNDBzJwogIHNj\naGVkdWxlcjoKICAgIGNyb246ICdAZXZlcnkgNjAwcycK\n")
-
CLUSTER_TOOLS =
Base64.decode_string("YXBpVmVyc2lvbjogYXBwcy92MQpraW5kOiBEYWVtb25TZXQKbWV0YWRhdGE6CiAgICBuYW1lOiBj\nbHVzdGVyLXRvb2xzCnNwZWM6CiAgc2VsZWN0b3I6CiAgICBtYXRjaExhYmVsczoKICAgICAgbmFt\nZTogY2x1c3Rlci10b29scwogIHRlbXBsYXRlOgogICAgbWV0YWRhdGE6CiAgICAgIGxhYmVsczoK\nICAgICAgICBuYW1lOiBjbHVzdGVyLXRvb2xzCiAgICBzcGVjOgogICAgICBjb250YWluZXJzOgog\nICAgICAgIC0gbmFtZTogY2x1c3Rlci10b29scwogICAgICAgICAgaW1hZ2U6IGNvbmZvcm1hbmNl\nL2NsdXN0ZXItdG9vbHM6djEuMC4wCiAgICAgICAgICBpbWFnZVB1bGxQb2xpY3k6IEFsd2F5cwog\nICAgICAgICAgY29tbWFuZDogWyIvYmluL3NoIl0KICAgICAgICAgIGFyZ3M6IFsiLWMiLCAic2xl\nZXAgaW5maW5pdHkiXQogICAgICAgICAgdm9sdW1lTW91bnRzOgogICAgICAgICAgLSBtb3VudFBh\ndGg6IC9ydW4vY29udGFpbmVyZC9jb250YWluZXJkLnNvY2sKICAgICAgICAgICAgbmFtZTogY29u\ndGFpbmVyZC12b2x1bWUKICAgICAgdm9sdW1lczoKICAgICAgLSBuYW1lOiBjb250YWluZXJkLXZv\nbHVtZQogICAgICAgIGhvc3RQYXRoOgogICAgICAgICAgcGF0aDogL3Zhci9ydW4vY29udGFpbmVy\nZC9jb250YWluZXJkLnNvY2sK\n")
-
CNF_DIR =
"cnfs"
-
CONFIG_FILE =
"cnf-testsuite.yml"
-
CONSTRAINT_TEMPLATE =
Base64.decode_string("YXBpVmVyc2lvbjogdGVtcGxhdGVzLmdhdGVrZWVwZXIuc2gvdjFiZXRhMQpraW5kOiBDb25zdHJh\naW50VGVtcGxhdGUKbWV0YWRhdGE6CiAgbmFtZTogcmVxdWlyZXRhZ3MKc3BlYzoKICBjcmQ6CiAg\nICBzcGVjOgogICAgICBuYW1lczoKICAgICAgICBraW5kOiBSZXF1aXJlVGFncwogIHRhcmdldHM6\nCiAgICAtIHRhcmdldDogYWRtaXNzaW9uLms4cy5nYXRla2VlcGVyLnNoCiAgICAgIHJlZ286IHwK\nICAgICAgICBwYWNrYWdlIHJlcXVpcmV0YWdzCiAgICAgICAgdmlvbGF0aW9uW3sibXNnIjogbXNn\nLCAiZGV0YWlscyI6IHt9fV17CiAgICAgICAgICBpbnB1dC5yZXZpZXcua2luZC5raW5kID09ICJQ\nb2QiCiAgICAgICAgICBpbWFnZSA6PSBpbnB1dC5yZXZpZXcub2JqZWN0LnNwZWMuY29udGFpbmVy\nc1tfXS5pbWFnZQogICAgICAgICAgZW5zdXJlKGltYWdlKQogICAgICAgICAgbXNnIDo9IHNwcmlu\ndGYoIlZpb2xhdGlvbiBmb3IgUG9kICV2LCBpdCB1c2VzIGFuIGltYWdlIHRhZyB0aGF0IGlzIG5v\ndCB2ZXJzaW9uZWQiLCBbaW5wdXQucmV2aWV3Lm9iamVjdC5tZXRhZGF0YS5uYW1lXSkKICAgICAg\nICB9CiAgICAgICAgCiAgICAgICAgZW5zdXJlKGltYWdlKSB7CiAgICAgICAgICBjb250YWlucyhp\nbWFnZSwgIjpsYXRlc3QiKQogICAgICAgIH0KICAgICAgICBlbnN1cmUoaW1hZ2UpIHsKICAgICAg\nICAgIG5vdCBjb250YWlucyhpbWFnZSwiOiIpCiAgICAgICAgfQoK\n")
-
DEFAULT_POINTSFILENAME =
"points_v1.yml"
-
todo move to helm module CHART_YAML = "Chart.yaml"
-
DISABLE_CNI =
Base64.decode_string("a2luZDogQ2x1c3RlcgphcGlWZXJzaW9uOiBraW5kLngtazhzLmlvL3YxYWxwaGE0Cm5ldHdvcmtp\nbmc6CiAgZGlzYWJsZURlZmF1bHRDTkk6IHRydWUgIyBkaXNhYmxlIGtpbmRuZXQKICAjICBwb2RT\ndWJuZXQ6IDE5Mi4xNjguMC4wLzE2ICMgc2V0IHRvIENhbGljbydzIGRlZmF1bHQgc3VibmV0Cg==\n")
-
ELASTIC_PROVISIONING_DRIVERS_REGEX =
/kubernetes.io\/aws-ebs|kubernetes.io\/azure-file|kubernetes.io\/azure-disk|kubernetes.io\/cinder|kubernetes.io\/gce-pd|kubernetes.io\/glusterfs|kubernetes.io\/quobyte|kubernetes.io\/rbd|kubernetes.io\/vsphere-volume|kubernetes.io\/portworx-volume|kubernetes.io\/scaleio|kubernetes.io\/storageos|rook-ceph.rbd.csi.ceph.com/
-
ELASTIC_PROVISIONING_DRIVERS_REGEX_SPEC =
/kubernetes.io\/aws-ebs|kubernetes.io\/azure-file|kubernetes.io\/azure-disk|kubernetes.io\/cinder|kubernetes.io\/gce-pd|kubernetes.io\/glusterfs|kubernetes.io\/quobyte|kubernetes.io\/rbd|kubernetes.io\/vsphere-volume|kubernetes.io\/portworx-volume|kubernetes.io\/scaleio|kubernetes.io\/storageos|rook-ceph.rbd.csi.ceph.com|rancher.io\/local-path/
-
EMPTY_JSON =
JSON.parse("{}")
-
EMPTY_JSON_ARRAY =
JSON.parse("[]")
-
ENFORCE_IMAGE_TAG =
Base64.decode_string("YXBpVmVyc2lvbjogY29uc3RyYWludHMuZ2F0ZWtlZXBlci5zaC92MWJldGExCmtpbmQ6IFJlcXVp\ncmVUYWdzCm1ldGFkYXRhOgogIG5hbWU6IGJsb2NrLWxhdGVzdC10YWcKc3BlYzoKICBtYXRjaDoK\nICAgIGtpbmRzOgogICAgICAtIGFwaUdyb3VwczogWyIiXQogICAgICAgIGtpbmRzOiBbIlBvZCJd\nCiAgICAgIAo=\n")
-
FAILED =
"failed"
-
FALCO_OFFLINE_DIR =
"#{TarClient::TAR_REPOSITORY_DIR}/falcosecurity_falco"
-
FALCO_RULES =
Base64.decode_string("Y3VzdG9tUnVsZXM6CiAgcnVsZXMtcm9vdC55YW1sOiB8LQogICAgLSBydWxlOiBEZXRlY3QgUm9v\ndCBDb250YWluZXIgUHJvY2Vzc2VzLgogICAgICBkZXNjOiBMaXN0IGNvbnRhaW5lciBwcm9jZXNz\nIHJ1biBieSBhIHJvb3QgdXNlci4KICAgICAgY29uZGl0aW9uOiAoZXZ0LnR5cGUgIT0gY29udGFp\nbmVyIGFuZCBjb250YWluZXIgYW5kIGs4cy5wb2QubmFtZSAhPSAiPE5BPiIgYW5kIHVzZXIudWlk\nID0gMCkKICAgICAgb3V0cHV0OiA+CiAgICAgICAgQSBjb250YWluZXIgd2l0aCBhIHJvb3QgcHJv\nY2Nlc3Mgd2FzIGRldGVjdGVkLiAoazhzX3BvZD0lazhzLnBvZC5uYW1lKSBwcm9jX25hbWU9JXBy\nb2MubmFtZSB1c2VyX3VpZD0ldXNlci51aWQKICAgICAgcHJpb3JpdHk6IE5PVElDRQogICAgICB0\nYWdzOiBbY29udGFpbmVyLCByb290XQoKICAgICAgICAK\n")
-
FLUENTD_VALUES =
Base64.decode_string("ZmlsZUNvbmZpZ3M6CiAgMDRfb3V0cHV0cy5jb25mOiB8LQogICAgPGxhYmVsIEBPVVRQVVQ+CiAg\nICAgIDxtYXRjaCAqKj4KICAgICAgICBAdHlwZSBmaWxlCiAgICAgICAgcGF0aCAiL3Rlc3RkYXRh\nIgogICAgICA8L21hdGNoPgogICAgPC9sYWJlbD4K\n")
-
IGNORED_SECRET_TYPES =
["kubernetes.io/service-account-token", "kubernetes.io/dockercfg", "kubernetes.io/dockerconfigjson", "helm.sh/release.v1"]
-
KIND_VERSION =
"0.11.1"
-
KUBESCAPE_FRAMEWORK_VERSION =
"1.0.108"
-
KUBESCAPE_VERSION =
"1.0.132"
-
LOGGING =
LogginGenerator.new
-
NA =
"na"
-
NODE_FAILED_VALUES =
Base64.decode_string("dG9sZXJhdGlvbnM6Ci0ga2V5OiAibm9kZS5rdWJlcm5ldGVzLmlvL3VucmVhY2hhYmxlIgogIG9w\nZXJhdG9yOiAiRXhpc3RzIgogIGVmZmVjdDogIk5vRXhlY3V0ZSIKICB0b2xlcmF0aW9uU2Vjb25k\nczogMQotIGtleTogIm5vZGUua3ViZXJuZXRlcy5pby9ub3QtcmVhZHkiCiAgb3BlcmF0b3I6ICJF\neGlzdHMiCiAgZWZmZWN0OiAiTm9FeGVjdXRlIgogIHRvbGVyYXRpb25TZWNvbmRzOiAxCgo=\n")
-
OFFLINE_MANIFESTS_PATH =
"/tmp/manifests"
-
OPA_OFFLINE_DIR =
"#{TarClient::TAR_REPOSITORY_DIR}/gatekeeper_gatekeeper"
-
PASSED =
"passed"
-
POINTSFILE =
Base64.decode_string("LS0tCi0gbmFtZTogZGVmYXVsdF9zY29yaW5nCiAgdGFnczogCiAgcGFzczogNQogIGZhaWw6IC0x\nIAogIHNraXBwZWQ6IDAgCiAgbmE6IDAgCiAgbmV1dHJhbDogMCAKCi0gbmFtZTogcmVhc29uYWJs\nZV9pbWFnZV9zaXplCiAgdGFnczogbWljcm9zZXJ2aWNlLCBkeW5hbWljLCB3b3JrbG9hZAotIG5h\nbWU6IHJlYXNvbmFibGVfc3RhcnR1cF90aW1lIAogIHRhZ3M6IG1pY3Jvc2VydmljZSwgZHluYW1p\nYywgd29ya2xvYWQKLSBuYW1lOiBzaW5nbGVfcHJvY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aF9tb3VudHMKICB0YWdzOiBzZWN1cml0eSwgZHluYW1pYywg\nd29ya2xvYWQKCi0gbmFtZTogaW5ncmVzc19lZ3Jlc3NfYmxvY2tlZCAKICB0YWdzOiBzZWN1cml0\neSwgZHluYW1pYywgd29ya2xvYWQKCi0gbmFtZTogbG9nX291dHB1dAogIHRhZ3M6IG9ic2VydmFi\naWxpdHksIGR5bmFtaWMsIHdvcmtsb2FkCi0gbmFtZTogcHJvbWV0aGV1c190cmFmZmljIAogIHRh\nZ3M6IG9ic2VydmFiaWxpdHksIGR5bmFtaWMsIHdvcmtsb2FkCiAgcGFzczogMTAKICBmYWlsOiAw\nIAotIG5hbWU6IG9wZW5fbWV0cmljcyAKICB0YWdzOiBvYnNlcnZhYmlsaXR5LCBkeW5hbWljLCB3\nb3JrbG9hZAogIHBhc3M6IDUgCiAgZmFpbDogMCAKLSBuYW1lOiByb3V0ZWRfbG9ncyAKICB0YWdz\nOiBvYnNlcnZhYmlsaXR5LCBkeW5hbWljLCB3b3JrbG9hZAogIHBhc3M6IDUgCiAgZmFpbDogMCAK\nLSBuYW1lOiB0cmFjaW5nIAogIHRhZ3M6IG9ic2VydmFiaWxpdHksIGR5bmFtaWMsIHdvcmtsb2Fk\nCiAgcGFzczogNSAKICBmYWlsOiAwIAotIG5hbWU6IGFscGhhX2s4c19hcGlzCiAgdGFnczogY29u\nZmlndXJhdGlvbiwgZHluYW1pYywgd29ya2xvYWQK\n")
-
PRIVILEGED_WHITELIST_CONTAINERS =
["chaos-daemon"]
-
REASONABLE_STARTUP_BUFFER =
10.0
-
REBOOT_DAEMON =
Base64.decode_string("YXBpVmVyc2lvbjogYXBwcy92MQpraW5kOiBEYWVtb25TZXQKbWV0YWRhdGE6CiAgICBuYW1lOiBy\nZWJvb3QKc3BlYzoKICBzZWxlY3RvcjoKICAgIG1hdGNoTGFiZWxzOgogICAgICBuYW1lOiByZWJv\nb3QKICB0ZW1wbGF0ZToKICAgIG1ldGFkYXRhOgogICAgICBsYWJlbHM6CiAgICAgICAgbmFtZTog\ncmVib290CiAgICBzcGVjOgogICAgICBjb250YWluZXJzOgogICAgICAgIC0gbmFtZTogcmVib290\nCiAgICAgICAgICBpbWFnZTogY29uZm9ybWFuY2UvcmVib290X2RhZW1vbjpsYXRlc3QKICAgICAg\nICAgIGNvbW1hbmQ6IFsiL2VudHJ5cG9pbnQuc2giXQogICAgICAgICAgdm9sdW1lTW91bnRzOgog\nICAgICAgICAgLSBtb3VudFBhdGg6IC9zeXNycQogICAgICAgICAgICBuYW1lOiBzeXNycS12b2x1\nbWUKICAgICAgdm9sdW1lczoKICAgICAgLSAgbmFtZTogc3lzcnEtdm9sdW1lCiAgICAgICAgIGhv\nc3RQYXRoOgogICAgICAgICAgIHBhdGg6IC9wcm9jL3N5c3JxLXRyaWdnZXIK\n")
-
SKIPPED =
"skipped"
-
SONOBUOY_K8S_VERSION =
"0.19.0"
-
SONOBUOY_OS =
"linux"
-
TOOLS_DIR =
"tools"
-
VERBOSE_LOGGING =
VerboseLogginGenerator.new
Method Summary
-
acceptable_kubectl_version?(kubectl_response, verbose = false)
Check if client version is not 3 minor versions behind server version
- change_capacity(base_replicas, target_replica_count, args, config, resource = {kind: "", metadata: {name: ""}})
-
check_alpha(args)
if the alpha flag or wip flag is true, then alpha tests should be run
-
check_alpha
if the alpha flag or wip flag is true, then alpha tests should be run
-
check_beta(args)
if the beta flag or alpha flag is true, then beta tests should be run
-
check_beta
if the beta flag or alpha flag is true, then beta tests should be run
- check_cnf_config(args)
- check_destructive(args)
- check_destructive
- check_dockerd(wait_count = 1)
- check_feature_level(args)
- check_poc(args)
- check_poc
- check_verbose(args)
- check_wip(args)
- check_wip
- clusterctl_global_response(verbose = false)
-
clusterctl_installation(verbose = false)
todo collection in modules similar to ohai: https://github.com/chef/ohai
- clusterctl_local_response(verbose = false)
- clusterctl_version(clusterctl_response, verbose = false)
- curl_global_response(verbose = false)
- curl_installation(verbose = false)
- curl_local_response(verbose = false)
- curl_version(curl_response, verbose = false)
- dockerd_filename
- dockerd_name_helper
- dockerd_tempname
- dockerd_tempname_helper
- ensure_kubeconfig!
- git_global_response(verbose = false)
- git_installation(verbose = false)
- git_local_response(verbose = false)
- git_version(git_response, verbose = false)
- helm_global_response(verbose = false)
-
helm_installation(verbose = false)
TODO put this in a module
- helm_local_response(verbose = false)
- helm_v2_version(helm_response)
- helm_v3_version(helm_response)
- helm_version(helm_response, verbose = false)
-
image_pull(yml, offline)
todo put this in bootstrap utils
- increase_decrease_capacity_failure_msg(target_replicas, emoji)
- kubectl_global_response(verbose = false)
- kubectl_installation(verbose = false, offline_mode = false)
- kubectl_local_response(verbose = false)
-
kubectl_version(kubectl_response, version_for = "client", verbose = false)
Extracts Kubernetes client version or server version
- local_helm_installed?
- log_formatter
- loglevel
- named_sha_list(resp_json)
-
optional_key_as_string(totem_config, key_name)
this method extracts a string value from a config section if it exists if the value is an integer it will be converted to a string before extraction
- secrets_used_skipped_msg(emoji)
- setup_calico_cluster(cluster_name : String, offline : Bool) : KindManager::Cluster
- setup_cilium_cluster(cluster_name : String, offline : Bool) : KindManager::Cluster
- sonobuoy_details(cmd_path : String)
- stdout_failure(msg)
- stdout_info(msg)
- stdout_score(test_name, full_name)
- stdout_score(test_name)
- stdout_success(msg)
- stdout_warning(msg)
- toggle(toggle_name)
- update_yml(yml_file, top_level_key, value)
- upsert_dynamic_task(task, status : CNFManager::Points::Results::ResultStatus, message)
- upsert_failed_task(task, message)
- upsert_na_task(task, message)
- upsert_passed_task(task, message)
- upsert_skipped_task(task, message)
-
version_less_than(v1str, v2str)
compare 2 SemVer strings and return true if v1 is less than v2
- wait_for_scaling(resource, target_replica_count, args)
- wget_global_response(verbose = false)
- wget_installation(verbose = false)
- wget_local_response(verbose = false)
- wget_version(wget_response, verbose = false)
Method Detail
Check if client version is not 3 minor versions behind server version
Checks to see if dockerd is already installed. Alternatively
can be used to wait for dockerd is installed by passing a higher wait_count)
todo collection in modules similar to ohai: https://github.com/chef/ohai
Extracts Kubernetes client version or server version
version = kubectl_version(kubectl_response, "client")
version # => "1.12"
version = kubectl_version(kubectl_response, "server")
version # => "1.12"
For reference, below are example client and server version strings from "kubectl version" output
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T16:31:21Z", GoVersion:"go1.16.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-21T01:11:42Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
TODO Function could be updated to rely on the JSON output of "kubectl version -o json" instead of regex parsing
Returns the version as a string (Example: 1.12, 1.20, etc)
this method extracts a string value from a config section if it exists if the value is an integer it will be converted to a string before extraction
compare 2 SemVer strings and return true if v1 is less than v2