├── test ├── junit │ └── .gitignore ├── acse-conf │ ├── acse-svc-canary-dcos.json │ ├── acse-svc-canary-k8s.json │ ├── acse-svc-canary-swarmmode.json │ ├── acse-svc-canary-k8s-win.json │ ├── acse-scale.json │ ├── acse-scale-vnet.json │ ├── acse-pr-non-k8s.json │ ├── acse-upgrade-win.json │ ├── acse-upgrade-lnx.json │ └── acse-regression-dcos.json ├── e2e │ ├── kubernetes │ │ ├── workloads │ │ │ ├── storageclass-azurefile.yaml │ │ │ ├── policies │ │ │ │ ├── client-one-deny-egress-policy.yaml │ │ │ │ └── client-one-deny-ingress-policy.yaml │ │ │ ├── pvc-premium.yaml │ │ │ ├── pvc-azurefile.yaml │ │ │ ├── cuda-vector-add.yaml │ │ │ ├── pod-pvc.yaml │ │ │ ├── ingress-nginx-ilb.yaml │ │ │ ├── nginx-master.yaml │ │ │ ├── iis-azurefile.yaml │ │ │ ├── dns-liveness.yaml │ │ │ ├── validate-dns.yaml │ │ │ └── nvidia-smi.yaml │ │ └── kubernetes_suite_test.go │ ├── swarm-deployments.json │ ├── dcos-deployments.json │ └── swarmmode-deployments.json ├── shunit │ ├── deploy_template.sh │ ├── scale_agent_pool.sh │ └── generate_template.sh └── cluster-tests │ ├── utils.sh │ └── dcos │ └── marathon.json ├── .gitattributes ├── vendor ├── github.com │ ├── modern-go │ │ ├── reflect2 │ │ │ ├── reflect2_amd64.s │ │ │ ├── relfect2_386.s │ │ │ ├── relfect2_arm.s │ │ │ ├── relfect2_arm64.s │ │ │ ├── relfect2_mipsx.s │ │ │ ├── relfect2_s390x.s │ │ │ ├── relfect2_amd64p32.s │ │ │ ├── relfect2_mips64x.s │ │ │ ├── relfect2_ppc64x.s │ │ │ ├── go_below_17.go │ │ │ ├── go_above_17.go │ │ │ ├── go_below_19.go │ │ │ └── go_above_19.go │ │ └── concurrent │ │ │ ├── go_above_19.go │ │ │ ├── log.go │ │ │ ├── executor.go │ │ │ └── go_below_19.go │ ├── go-bindata │ │ └── go-bindata │ │ │ ├── testdata │ │ │ ├── symlinkFile │ │ │ │ └── file1 │ │ │ ├── symlinkParent │ │ │ │ └── symlinkTarget │ │ │ └── symlinkRecursiveParent │ │ │ │ └── symlinkTarget │ │ │ ├── LICENSE │ │ │ ├── asset.go │ │ │ ├── go-bindata │ │ │ └── AppendSliceValue.go │ │ │ └── stringwriter.go │ ├── mattn │ │ ├── go-isatty │ │ │ ├── doc.go │ │ │ ├── isatty_others.go │ │ │ ├── isatty_solaris.go │ │ │ ├── isatty_linux.go │ │ │ ├── isatty_appengine.go │ │ │ ├── isatty_bsd.go │ │ │ └── isatty_linux_ppc64x.go │ │ └── go-colorable │ │ │ ├── colorable_appengine.go │ │ │ └── colorable_others.go │ ├── spf13 │ │ └── cobra │ │ │ ├── command_notwin.go │ │ │ └── command_win.go │ ├── onsi │ │ ├── ginkgo │ │ │ ├── reporters │ │ │ │ ├── stenographer │ │ │ │ │ └── support │ │ │ │ │ │ ├── go-isatty │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── isatty_appengine.go │ │ │ │ │ │ ├── isatty_linux.go │ │ │ │ │ │ ├── isatty_solaris.go │ │ │ │ │ │ ├── isatty_bsd.go │ │ │ │ │ │ └── isatty_windows.go │ │ │ │ │ │ └── go-colorable │ │ │ │ │ │ └── colorable_others.go │ │ │ │ └── reporter.go │ │ │ ├── internal │ │ │ │ ├── remote │ │ │ │ │ ├── syscall_dup_solaris.go │ │ │ │ │ ├── syscall_dup_unix.go │ │ │ │ │ ├── syscall_dup_linux_arm64.go │ │ │ │ │ └── output_interceptor.go │ │ │ │ ├── specrunner │ │ │ │ │ └── random_id.go │ │ │ │ ├── leafnodes │ │ │ │ │ └── interfaces.go │ │ │ │ └── spec_iterator │ │ │ │ │ └── spec_iterator.go │ │ │ └── types │ │ │ │ ├── code_location.go │ │ │ │ └── synchronization.go │ │ └── gomega │ │ │ ├── matchers │ │ │ ├── support │ │ │ │ └── goraph │ │ │ │ │ ├── node │ │ │ │ │ └── node.go │ │ │ │ │ └── util │ │ │ │ │ └── util.go │ │ │ ├── be_nil_matcher.go │ │ │ ├── be_true_matcher.go │ │ │ ├── be_false_matcher.go │ │ │ ├── be_zero_matcher.go │ │ │ └── be_empty_matcher.go │ │ │ └── types │ │ │ └── types.go │ ├── imdario │ │ └── mergo │ │ │ └── testdata │ │ │ └── license.yml │ ├── kelseyhightower │ │ └── envconfig │ │ │ ├── env_os.go │ │ │ ├── env_syscall.go │ │ │ └── doc.go │ ├── influxdata │ │ └── influxdb │ │ │ ├── models │ │ │ └── uint_support.go │ │ │ └── pkg │ │ │ └── escape │ │ │ └── strings.go │ ├── hpcloud │ │ └── tail │ │ │ ├── ratelimiter │ │ │ └── storage.go │ │ │ ├── tail_posix.go │ │ │ └── tail_windows.go │ ├── dgrijalva │ │ └── jwt-go │ │ │ └── doc.go │ ├── Azure │ │ └── azure-sdk-for-go │ │ │ └── NOTICE │ ├── golang │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── gogo │ │ └── protobuf │ │ │ ├── GOLANG_CONTRIBUTORS │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── sirupsen │ │ └── logrus │ │ │ ├── terminal_bsd.go │ │ │ ├── terminal_linux.go │ │ │ └── doc.go │ ├── inconshreveable │ │ └── mousetrap │ │ │ ├── trap_others.go │ │ │ └── LICENSE │ ├── blang │ │ └── semver │ │ │ ├── json.go │ │ │ ├── sort.go │ │ │ └── sql.go │ ├── howeyc │ │ └── gopass │ │ │ ├── terminal.go │ │ │ └── LICENSE.txt │ ├── google │ │ └── gofuzz │ │ │ └── doc.go │ ├── googleapis │ │ └── gnostic │ │ │ └── compiler │ │ │ └── main.go │ └── davecgh │ │ └── go-spew │ │ └── LICENSE ├── golang.org │ └── x │ │ ├── net │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── http2 │ │ │ ├── not_go19.go │ │ │ ├── go16.go │ │ │ ├── go19.go │ │ │ ├── not_go16.go │ │ │ └── not_go18.go │ │ └── context │ │ │ └── go19.go │ │ ├── sync │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ ├── sys │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── unix │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── constants.go │ │ │ ├── syscall_no_getwd.go │ │ │ ├── zsysnum_solaris_amd64.go │ │ │ ├── env_unset.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── pagesize_unix.go │ │ │ ├── flock_linux_32bit.go │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── race0.go │ │ │ ├── env_unix.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── asm_linux_arm64.s │ │ │ ├── str.go │ │ │ ├── file_unix.go │ │ │ ├── race.go │ │ │ ├── asm_linux_s390x.s │ │ │ ├── asm_linux_ppc64x.s │ │ │ ├── asm_linux_arm.s │ │ │ ├── asm_linux_mips64x.s │ │ │ ├── flock.go │ │ │ ├── asm_freebsd_arm.s │ │ │ ├── asm_netbsd_arm.s │ │ │ ├── asm_openbsd_arm.s │ │ │ ├── asm_darwin_386.s │ │ │ ├── asm_freebsd_386.s │ │ │ ├── asm_netbsd_386.s │ │ │ └── asm_openbsd_386.s │ │ └── windows │ │ │ ├── mksyscall.go │ │ │ ├── env_unset.go │ │ │ ├── asm_windows_386.s │ │ │ ├── asm_windows_amd64.s │ │ │ ├── race0.go │ │ │ ├── types_windows_386.go │ │ │ ├── types_windows_amd64.go │ │ │ ├── str.go │ │ │ ├── env_windows.go │ │ │ └── race.go │ │ ├── text │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── language │ │ │ ├── go1_2.go │ │ │ ├── common.go │ │ │ └── gen_common.go │ │ ├── secure │ │ │ └── bidirule │ │ │ │ ├── bidirule10.0.0.go │ │ │ │ └── bidirule9.0.0.go │ │ └── encoding │ │ │ ├── japanese │ │ │ └── all.go │ │ │ └── simplifiedchinese │ │ │ └── all.go │ │ ├── time │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ └── crypto │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── ssh │ │ └── terminal │ │ │ ├── util_linux.go │ │ │ └── util_bsd.go │ │ └── curve25519 │ │ ├── const_amd64.h │ │ └── const_amd64.s ├── gopkg.in │ ├── fsnotify.v1 │ │ ├── open_mode_bsd.go │ │ └── open_mode_darwin.go │ └── go-playground │ │ └── validator.v9 │ │ └── translations.go └── k8s.io │ ├── client-go │ ├── tools │ │ └── clientcmd │ │ │ └── api │ │ │ ├── doc.go │ │ │ └── v1 │ │ │ └── doc.go │ └── kubernetes │ │ ├── typed │ │ ├── authentication │ │ │ ├── v1 │ │ │ │ ├── generated_expansion.go │ │ │ │ └── doc.go │ │ │ └── v1beta1 │ │ │ │ └── generated_expansion.go │ │ ├── authorization │ │ │ ├── v1 │ │ │ │ ├── generated_expansion.go │ │ │ │ └── doc.go │ │ │ └── v1beta1 │ │ │ │ └── generated_expansion.go │ │ ├── certificates │ │ │ └── v1beta1 │ │ │ │ └── generated_expansion.go │ │ ├── batch │ │ │ ├── v1 │ │ │ │ ├── generated_expansion.go │ │ │ │ └── doc.go │ │ │ ├── v1beta1 │ │ │ │ └── generated_expansion.go │ │ │ └── v2alpha1 │ │ │ │ └── generated_expansion.go │ │ ├── apps │ │ │ ├── v1 │ │ │ │ └── doc.go │ │ │ ├── v1beta1 │ │ │ │ └── doc.go │ │ │ └── v1beta2 │ │ │ │ └── doc.go │ │ ├── core │ │ │ └── v1 │ │ │ │ └── doc.go │ │ ├── rbac │ │ │ ├── v1 │ │ │ │ └── doc.go │ │ │ └── v1beta1 │ │ │ │ └── doc.go │ │ ├── events │ │ │ └── v1beta1 │ │ │ │ └── generated_expansion.go │ │ ├── networking │ │ │ └── v1 │ │ │ │ ├── generated_expansion.go │ │ │ │ └── doc.go │ │ ├── storage │ │ │ └── v1 │ │ │ │ ├── doc.go │ │ │ │ └── generated_expansion.go │ │ └── autoscaling │ │ │ └── v1 │ │ │ └── doc.go │ │ ├── doc.go │ │ └── import.go │ ├── api │ ├── apps │ │ ├── v1 │ │ │ └── doc.go │ │ ├── v1beta1 │ │ │ └── doc.go │ │ └── v1beta2 │ │ │ └── doc.go │ ├── batch │ │ ├── v1 │ │ │ └── doc.go │ │ ├── v1beta1 │ │ │ └── doc.go │ │ └── v2alpha1 │ │ │ └── doc.go │ ├── storage │ │ ├── v1 │ │ │ └── doc.go │ │ └── v1beta1 │ │ │ └── doc.go │ ├── autoscaling │ │ ├── v1 │ │ │ └── doc.go │ │ └── v2beta1 │ │ │ └── doc.go │ ├── extensions │ │ └── v1beta1 │ │ │ └── doc.go │ ├── networking │ │ └── v1 │ │ │ └── doc.go │ ├── rbac │ │ └── v1 │ │ │ └── doc.go │ ├── events │ │ └── v1beta1 │ │ │ └── doc.go │ ├── authentication │ │ └── v1 │ │ │ └── doc.go │ └── core │ │ └── v1 │ │ └── doc.go │ └── apimachinery │ └── pkg │ ├── types │ └── doc.go │ ├── api │ └── errors │ │ └── doc.go │ └── util │ ├── sets │ └── doc.go │ └── errors │ └── doc.go ├── .prowci ├── .gitignore ├── config.yaml ├── plugins.yaml └── ingress.yaml ├── extensions ├── choco │ └── v1 │ │ └── supported-orchestrators.json ├── winrm │ └── v1 │ │ ├── supported-orchestrators.json │ │ └── enableWinrm.ps1 ├── hello-world-k8s │ ├── v1 │ │ └── supported-orchestrators.json │ └── README.md ├── windows-patches │ └── v1 │ │ └── supported-orchestrators.json ├── microsoft-oms-agent-k8s │ └── v1 │ │ └── supported-orchestrators.json ├── prometheus-grafana-k8s │ └── v1 │ │ └── supported-orchestrators.json └── hello-world │ └── v1 │ ├── hello.sh │ └── supported-orchestrators.json ├── examples ├── windows │ ├── kubernetes.json.env │ └── kubernetes-hybrid.json.env ├── disks-storageaccount │ ├── kubernetes.json.env │ └── README.md ├── kubernetes-config │ ├── kubernetes-no-dashboard.json.env │ └── kubernetes-rescheduler.json.env ├── vnet │ ├── kubernetesvnet-azure-cni.json.env │ ├── kubernetesvnet.json.env │ ├── kubernetesvnet1.5.json.env │ ├── kubernetesvnet1.6.json.env │ ├── k8s-vnet-postdeploy.sh │ ├── vnetarmtemplate │ │ └── deploy.ps1 │ └── README.md ├── k8s-upgrade │ ├── v1.7.7.json.env │ ├── v1.7.9.json.env │ ├── v1.8.4.json.env │ ├── v1.7.9-win.json.env │ ├── v1.7.9-hybrid.json.env │ └── k8s-upgrade.sh ├── azure-cni │ ├── k8s-scaledown.json.env │ ├── k8s-scaleup.json.env │ ├── k8s-vnet-scaledown.json.env │ └── k8s-vnet-scaleup.json.env ├── managed-identity │ └── kubernetes-msi.json.env ├── kubernetes-labels │ └── images │ │ └── kubernetesnodelabels.png ├── disks-managed │ └── README.md ├── cosmos-etcd │ └── readme.md └── kubernetes.json ├── windows └── Dockerfile ├── docs └── images │ ├── acrblade.png │ ├── dockerps.png │ ├── dockerinfo.png │ ├── kubernetes.png │ ├── rdptunnels.png │ ├── simpleweb.png │ ├── dockernodels.png │ ├── pageant-tray.png │ ├── putty-address.png │ ├── architectures.vsdx │ ├── deployfirstapp.png │ ├── dockerserviceps.png │ ├── findingoutputs.png │ ├── pageant-addkey.png │ ├── dockercomposescale.png │ ├── dockerservicescale.png │ ├── hybrid-trafficflow.png │ ├── kubernetes-nginx1.png │ ├── kubernetes-nginx2.png │ ├── kubernetes-nginx3.png │ ├── kubernetes-nginx4.png │ ├── kubernetes-remote.png │ ├── kubernetes-windows.png │ ├── newapp-status.pn.png │ ├── putty-port80tunnel.png │ ├── kubernetes-dashboard.png │ ├── k8s-monitoring-grafana1.png │ ├── k8s-monitoring-grafana2.png │ ├── kubernetes-hybrid-env.png │ ├── portal-resourcegroups.png │ ├── putty-agentforwarding.png │ ├── azure_monitor_aks_engine.png │ ├── k8s-monitoring-dashboard.png │ ├── portal-kubernetes-outputs.png │ ├── portal-publicipaddresses.png │ └── proposed-template-refactor.jpg ├── parts ├── k8s │ ├── system.conf │ ├── addons │ │ ├── kubernetesmasteraddons-elb-svc.yaml │ │ └── kubernetesmasteraddons-aad-default-admin-group-rbac.yaml │ ├── artifacts │ │ └── kubernetesazurekms.service │ ├── setup-custom-search-domains.sh │ ├── kubernetesjumpboxcustomdata.yml │ └── manifests │ │ └── kubernetesmaster-kube-addon-manager.yaml ├── swarm │ └── swarmparams.t ├── dcos │ └── bstrap │ │ └── bootstrapvars.t ├── masteroutputs.t └── agentoutputs.t ├── OWNERS ├── scripts ├── copyright.txt ├── update-enus-po.sh ├── devenv.ps1 ├── copyright-header.sh ├── validate-dependencies.sh ├── devenv.sh └── validate-copyright-header.sh ├── translations ├── cs_CZ │ └── LC_MESSAGES │ │ └── acsengine.mo ├── de_DE │ └── LC_MESSAGES │ │ └── acsengine.mo ├── en_US │ └── LC_MESSAGES │ │ └── acsengine.mo ├── es_ES │ └── LC_MESSAGES │ │ └── acsengine.mo ├── fr_FR │ └── LC_MESSAGES │ │ └── acsengine.mo ├── hu_HU │ └── LC_MESSAGES │ │ └── acsengine.mo ├── it_IT │ └── LC_MESSAGES │ │ └── acsengine.mo ├── ja_JP │ └── LC_MESSAGES │ │ └── acsengine.mo ├── ko_KR │ └── LC_MESSAGES │ │ └── acsengine.mo ├── nl_NL │ └── LC_MESSAGES │ │ └── acsengine.mo ├── pl_PL │ └── LC_MESSAGES │ │ └── acsengine.mo ├── pt_BR │ └── LC_MESSAGES │ │ └── acsengine.mo ├── pt_PT │ └── LC_MESSAGES │ │ └── acsengine.mo ├── ru_RU │ └── LC_MESSAGES │ │ └── acsengine.mo ├── sv_SE │ └── LC_MESSAGES │ │ └── acsengine.mo ├── tr_TR │ └── LC_MESSAGES │ │ └── acsengine.mo ├── zh_CN │ └── LC_MESSAGES │ │ └── acsengine.mo └── zh_TW │ └── LC_MESSAGES │ └── acsengine.mo ├── pkg ├── engine │ ├── testdata │ │ ├── rename.sh │ │ ├── agentPoolOnly │ │ │ ├── v20180331 │ │ │ │ ├── agents.json │ │ │ │ └── agentsWithOnlyNetworkPlugin.json │ │ │ └── v20170831 │ │ │ │ └── agents.json │ │ ├── v20160330 │ │ │ ├── defaults.json │ │ │ └── dcos.json │ │ ├── v20160930 │ │ │ ├── defaults.json │ │ │ └── dcos.json │ │ └── v20170131 │ │ │ ├── defaults.json │ │ │ └── dcos.json │ ├── doc.go │ └── fileloader.go ├── i18n │ ├── translations │ │ └── en_US │ │ │ └── LC_MESSAGES │ │ │ └── acsengine.mo │ └── resourceloader.go ├── api │ ├── doc.go │ ├── vlabs │ │ └── doc.go │ ├── agentPoolOnlyApi │ │ ├── vlabs │ │ │ └── doc.go │ │ ├── v20170831 │ │ │ └── doc.go │ │ └── v20180331 │ │ │ └── doc.go │ ├── v20160330 │ │ ├── doc.go │ │ ├── merge.go │ │ └── const.go │ ├── v20160930 │ │ └── doc.go │ ├── v20170131 │ │ └── doc.go │ ├── v20170701 │ │ └── doc.go │ └── v20170930 │ │ ├── doc.go │ │ └── const.go ├── operations │ ├── kubernetesupgrade │ │ ├── doc.go │ │ ├── v16upgrader.go │ │ ├── v17upgrader.go │ │ └── v18upgrader.go │ └── dcosupgrade │ │ └── doc.go └── armhelpers │ ├── const.go │ ├── providers.go │ ├── deploymentOperations.go │ └── network.go ├── cmd ├── translations │ └── en_US │ │ └── LC_MESSAGES │ │ └── acsengine.mo └── cmd_suite_test.go ├── .dockerignore ├── packer ├── cleanup-vhd.sh └── settings-example.json ├── makedev.ps1 ├── main.go ├── .codecov └── codecov.yml ├── packer.mk └── Dockerfile.k8swin /test/junit/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * -crlf 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.prowci/.gitignore: -------------------------------------------------------------------------------- 1 | # prow-related secrets 2 | hmac 3 | oauth 4 | -------------------------------------------------------------------------------- /extensions/choco/v1/supported-orchestrators.json: -------------------------------------------------------------------------------- 1 | ["Kubernetes"] 2 | -------------------------------------------------------------------------------- /extensions/winrm/v1/supported-orchestrators.json: -------------------------------------------------------------------------------- 1 | ["Kubernetes"] 2 | -------------------------------------------------------------------------------- /examples/windows/kubernetes.json.env: -------------------------------------------------------------------------------- 1 | export EXPECTED_NODE_COUNT=3 2 | -------------------------------------------------------------------------------- /extensions/hello-world-k8s/v1/supported-orchestrators.json: -------------------------------------------------------------------------------- 1 | ["Kubernetes"] -------------------------------------------------------------------------------- /examples/windows/kubernetes-hybrid.json.env: -------------------------------------------------------------------------------- 1 | export EXPECTED_NODE_COUNT=5 2 | -------------------------------------------------------------------------------- /extensions/windows-patches/v1/supported-orchestrators.json: -------------------------------------------------------------------------------- 1 | ["Kubernetes"] 2 | -------------------------------------------------------------------------------- /examples/disks-storageaccount/kubernetes.json.env: -------------------------------------------------------------------------------- 1 | export EXPECTED_NODE_COUNT=7 2 | -------------------------------------------------------------------------------- /examples/kubernetes-config/kubernetes-no-dashboard.json.env: -------------------------------------------------------------------------------- 1 | EXPECTED_DASHBOARD=0 -------------------------------------------------------------------------------- /extensions/microsoft-oms-agent-k8s/v1/supported-orchestrators.json: -------------------------------------------------------------------------------- 1 | ["Kubernetes"] -------------------------------------------------------------------------------- /extensions/prometheus-grafana-k8s/v1/supported-orchestrators.json: -------------------------------------------------------------------------------- 1 | ["Kubernetes"] -------------------------------------------------------------------------------- /examples/kubernetes-config/kubernetes-rescheduler.json.env: -------------------------------------------------------------------------------- 1 | EXPECTED_RESCHEDULER=1 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/testdata/symlinkFile/file1: -------------------------------------------------------------------------------- 1 | ../symlinkSrc/file1 -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/testdata/symlinkParent/symlinkTarget: -------------------------------------------------------------------------------- 1 | ../symlinkSrc/ -------------------------------------------------------------------------------- /windows/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM microsoft/nanoserver:1803 2 | 3 | CMD cmd /c ping -t localhost 4 | -------------------------------------------------------------------------------- /docs/images/acrblade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/acrblade.png -------------------------------------------------------------------------------- /docs/images/dockerps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/dockerps.png -------------------------------------------------------------------------------- /docs/images/dockerinfo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/dockerinfo.png -------------------------------------------------------------------------------- /docs/images/kubernetes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/kubernetes.png -------------------------------------------------------------------------------- /docs/images/rdptunnels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/rdptunnels.png -------------------------------------------------------------------------------- /docs/images/simpleweb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/simpleweb.png -------------------------------------------------------------------------------- /parts/k8s/system.conf: -------------------------------------------------------------------------------- 1 | [Manager] 2 | JoinControllers=cpu,cpuacct,cpuset,net_cls,net_prio,hugetlb,memory 3 | -------------------------------------------------------------------------------- /docs/images/dockernodels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/dockernodels.png -------------------------------------------------------------------------------- /docs/images/pageant-tray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/pageant-tray.png -------------------------------------------------------------------------------- /docs/images/putty-address.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/putty-address.png -------------------------------------------------------------------------------- /examples/vnet/kubernetesvnet-azure-cni.json.env: -------------------------------------------------------------------------------- 1 | AKSE_PREDEPLOY=examples/vnet/k8s-vnet-azure-cni-predeploy.sh 2 | -------------------------------------------------------------------------------- /extensions/hello-world/v1/hello.sh: -------------------------------------------------------------------------------- 1 | # Script file to run hello-world in bash 2 | 3 | #!/bin/bash 4 | echo "hello" -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/testdata/symlinkRecursiveParent/symlinkTarget: -------------------------------------------------------------------------------- 1 | ../symlinkRecursiveParent/ -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - brendandburns 3 | - CecileRobertMichon 4 | - jackfrancis 5 | - mboersma 6 | - tariq1890 7 | -------------------------------------------------------------------------------- /docs/images/architectures.vsdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/architectures.vsdx -------------------------------------------------------------------------------- /docs/images/deployfirstapp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/deployfirstapp.png -------------------------------------------------------------------------------- /docs/images/dockerserviceps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/dockerserviceps.png -------------------------------------------------------------------------------- /docs/images/findingoutputs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/findingoutputs.png -------------------------------------------------------------------------------- /docs/images/pageant-addkey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/pageant-addkey.png -------------------------------------------------------------------------------- /docs/images/dockercomposescale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/dockercomposescale.png -------------------------------------------------------------------------------- /docs/images/dockerservicescale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/dockerservicescale.png -------------------------------------------------------------------------------- /docs/images/hybrid-trafficflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/hybrid-trafficflow.png -------------------------------------------------------------------------------- /docs/images/kubernetes-nginx1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/kubernetes-nginx1.png -------------------------------------------------------------------------------- /docs/images/kubernetes-nginx2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/kubernetes-nginx2.png -------------------------------------------------------------------------------- /docs/images/kubernetes-nginx3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/kubernetes-nginx3.png -------------------------------------------------------------------------------- /docs/images/kubernetes-nginx4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/kubernetes-nginx4.png -------------------------------------------------------------------------------- /docs/images/kubernetes-remote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/kubernetes-remote.png -------------------------------------------------------------------------------- /docs/images/kubernetes-windows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/kubernetes-windows.png -------------------------------------------------------------------------------- /docs/images/newapp-status.pn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/newapp-status.pn.png -------------------------------------------------------------------------------- /docs/images/putty-port80tunnel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/putty-port80tunnel.png -------------------------------------------------------------------------------- /docs/images/kubernetes-dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/kubernetes-dashboard.png -------------------------------------------------------------------------------- /docs/images/k8s-monitoring-grafana1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/k8s-monitoring-grafana1.png -------------------------------------------------------------------------------- /docs/images/k8s-monitoring-grafana2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/k8s-monitoring-grafana2.png -------------------------------------------------------------------------------- /docs/images/kubernetes-hybrid-env.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/kubernetes-hybrid-env.png -------------------------------------------------------------------------------- /docs/images/portal-resourcegroups.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/portal-resourcegroups.png -------------------------------------------------------------------------------- /docs/images/putty-agentforwarding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/putty-agentforwarding.png -------------------------------------------------------------------------------- /examples/k8s-upgrade/v1.7.7.json.env: -------------------------------------------------------------------------------- 1 | AKSE_POSTDEPLOY=examples/k8s-upgrade/k8s-upgrade.sh 2 | EXPECTED_ORCHESTRATOR_VERSION=1.8.1 3 | -------------------------------------------------------------------------------- /examples/k8s-upgrade/v1.7.9.json.env: -------------------------------------------------------------------------------- 1 | AKSE_POSTDEPLOY=examples/k8s-upgrade/k8s-upgrade.sh 2 | EXPECTED_ORCHESTRATOR_VERSION=1.8.9 3 | -------------------------------------------------------------------------------- /examples/k8s-upgrade/v1.8.4.json.env: -------------------------------------------------------------------------------- 1 | AKSE_POSTDEPLOY=examples/k8s-upgrade/k8s-upgrade.sh 2 | EXPECTED_ORCHESTRATOR_VERSION=1.9.4 3 | -------------------------------------------------------------------------------- /scripts/copyright.txt: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | -------------------------------------------------------------------------------- /docs/images/azure_monitor_aks_engine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/azure_monitor_aks_engine.png -------------------------------------------------------------------------------- /docs/images/k8s-monitoring-dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/k8s-monitoring-dashboard.png -------------------------------------------------------------------------------- /docs/images/portal-kubernetes-outputs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/portal-kubernetes-outputs.png -------------------------------------------------------------------------------- /docs/images/portal-publicipaddresses.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/portal-publicipaddresses.png -------------------------------------------------------------------------------- /examples/k8s-upgrade/v1.7.9-win.json.env: -------------------------------------------------------------------------------- 1 | AKSE_POSTDEPLOY=examples/k8s-upgrade/k8s-upgrade.sh 2 | EXPECTED_ORCHESTRATOR_VERSION=1.8.9 3 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/command_notwin.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package cobra 4 | 5 | var preExecHookFn func(*Command) 6 | -------------------------------------------------------------------------------- /docs/images/proposed-template-refactor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/docs/images/proposed-template-refactor.jpg -------------------------------------------------------------------------------- /examples/k8s-upgrade/v1.7.9-hybrid.json.env: -------------------------------------------------------------------------------- 1 | AKSE_POSTDEPLOY=examples/k8s-upgrade/k8s-upgrade.sh 2 | EXPECTED_ORCHESTRATOR_VERSION=1.8.9 3 | -------------------------------------------------------------------------------- /extensions/hello-world/v1/supported-orchestrators.json: -------------------------------------------------------------------------------- 1 | ["Kubernetes","Swarm","SwarmMode","DCOS", "DCOS173", "DCOS184", "DCOS188", "DCOS190"] -------------------------------------------------------------------------------- /translations/cs_CZ/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/cs_CZ/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/de_DE/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/de_DE/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/en_US/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/en_US/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/es_ES/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/es_ES/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/fr_FR/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/fr_FR/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/hu_HU/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/hu_HU/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/it_IT/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/it_IT/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/ja_JP/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/ja_JP/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/ko_KR/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/ko_KR/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/nl_NL/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/nl_NL/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/pl_PL/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/pl_PL/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/pt_BR/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/pt_BR/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/pt_PT/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/pt_PT/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/ru_RU/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/ru_RU/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/sv_SE/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/sv_SE/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/tr_TR/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/tr_TR/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/zh_CN/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/zh_CN/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /translations/zh_TW/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/translations/zh_TW/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /pkg/engine/testdata/rename.sh: -------------------------------------------------------------------------------- 1 | #/bin/bash 2 | 3 | for f in $(find . -name "*.err"); do 4 | len=${#f} 5 | mv ${f} ${f::len-4}; 6 | done 7 | -------------------------------------------------------------------------------- /cmd/translations/en_US/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/cmd/translations/en_US/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /examples/azure-cni/k8s-scaledown.json.env: -------------------------------------------------------------------------------- 1 | AKSE_POSTDEPLOY=examples/azure-cni/k8s-scale.sh 2 | 3 | NEW_AGENT_NODE_COUNT=2 4 | EXPECTED_NODE_COUNT=3 5 | -------------------------------------------------------------------------------- /examples/azure-cni/k8s-scaleup.json.env: -------------------------------------------------------------------------------- 1 | AKSE_POSTDEPLOY=examples/azure-cni/k8s-scale.sh 2 | 3 | NEW_AGENT_NODE_COUNT=3 4 | EXPECTED_NODE_COUNT=4 5 | -------------------------------------------------------------------------------- /examples/vnet/kubernetesvnet.json.env: -------------------------------------------------------------------------------- 1 | AKSE_PREDEPLOY=examples/vnet/k8s-vnet-predeploy.sh 2 | AKSE_POSTDEPLOY=examples/vnet/k8s-vnet-postdeploy.sh 3 | -------------------------------------------------------------------------------- /examples/vnet/kubernetesvnet1.5.json.env: -------------------------------------------------------------------------------- 1 | AKSE_PREDEPLOY=examples/vnet/k8s-vnet-predeploy.sh 2 | AKSE_POSTDEPLOY=examples/vnet/k8s-vnet-postdeploy.sh 3 | -------------------------------------------------------------------------------- /examples/vnet/kubernetesvnet1.6.json.env: -------------------------------------------------------------------------------- 1 | AKSE_PREDEPLOY=examples/vnet/k8s-vnet-predeploy.sh 2 | AKSE_POSTDEPLOY=examples/vnet/k8s-vnet-postdeploy.sh 3 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/imdario/mergo/testdata/license.yml: -------------------------------------------------------------------------------- 1 | import: ../../../../fossene/db/schema/thing.yml 2 | fields: 3 | site: string 4 | author: root 5 | -------------------------------------------------------------------------------- /pkg/i18n/translations/en_US/LC_MESSAGES/acsengine.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/pkg/i18n/translations/en_US/LC_MESSAGES/acsengine.mo -------------------------------------------------------------------------------- /vendor/github.com/kelseyhightower/envconfig/env_os.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package envconfig 4 | 5 | import "os" 6 | 7 | var lookupEnv = os.LookupEnv 8 | -------------------------------------------------------------------------------- /examples/managed-identity/kubernetes-msi.json.env: -------------------------------------------------------------------------------- 1 | CLUSTER_SERVICE_PRINCIPAL_CLIENT_ID=msi 2 | CLUSTER_SERVICE_PRINCIPAL_CLIENT_SECRET=msi 3 | 4 | EXPECTED_NODE_COUNT=5 -------------------------------------------------------------------------------- /vendor/github.com/influxdata/influxdb/models/uint_support.go: -------------------------------------------------------------------------------- 1 | // +build uint uint64 2 | 3 | package models 4 | 5 | func init() { 6 | EnableUintSupport() 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go: -------------------------------------------------------------------------------- 1 | package node 2 | 3 | type Node struct { 4 | Id int 5 | } 6 | 7 | type NodeOrderedSet []Node 8 | -------------------------------------------------------------------------------- /examples/kubernetes-labels/images/kubernetesnodelabels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tikyau/aks-engine/master/examples/kubernetes-labels/images/kubernetesnodelabels.png -------------------------------------------------------------------------------- /scripts/update-enus-po.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | scripts/update-translation.sh -l en_US -p 4 | 5 | mv acsengine.po translations/en_US/LC_MESSAGES/acsengine.po 6 | rm acsengine.pot -------------------------------------------------------------------------------- /vendor/github.com/kelseyhightower/envconfig/env_syscall.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package envconfig 4 | 5 | import "syscall" 6 | 7 | var lookupEnv = syscall.Getenv 8 | -------------------------------------------------------------------------------- /pkg/api/doc.go: -------------------------------------------------------------------------------- 1 | // Package api stores an unversioned API. 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | package api 6 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | ./aks-engine 2 | ./aks-engine.exe 3 | ./_output 4 | ./test/aks-engine-test/aks-engine-test 5 | ## autogenerated 6 | ./pkg/i18n/translations.go 7 | ./pkg/engine/templates.go 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "math" 4 | 5 | func Odd(n int) bool { 6 | return math.Mod(float64(n), 2.0) == 1.0 7 | } 8 | -------------------------------------------------------------------------------- /pkg/api/vlabs/doc.go: -------------------------------------------------------------------------------- 1 | // Package vlabs stores an experimental API model. 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | package vlabs 6 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/ratelimiter/storage.go: -------------------------------------------------------------------------------- 1 | package ratelimiter 2 | 3 | type Storage interface { 4 | GetBucketFor(string) (*LeakyBucket, error) 5 | SetBucketFor(string, LeakyBucket) error 6 | } 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /examples/azure-cni/k8s-vnet-scaledown.json.env: -------------------------------------------------------------------------------- 1 | AKSE_PREDEPLOY=examples/vnet/k8s-vnet-azure-cni-predeploy.sh 2 | AKSE_POSTDEPLOY=examples/azure-cni/k8s-scale.sh 3 | 4 | NEW_AGENT_NODE_COUNT=2 5 | EXPECTED_NODE_COUNT=3 6 | -------------------------------------------------------------------------------- /examples/azure-cni/k8s-vnet-scaleup.json.env: -------------------------------------------------------------------------------- 1 | AKSE_PREDEPLOY=examples/vnet/k8s-vnet-azure-cni-predeploy.sh 2 | AKSE_POSTDEPLOY=examples/azure-cni/k8s-scale.sh 3 | 4 | NEW_AGENT_NODE_COUNT=3 5 | EXPECTED_NODE_COUNT=4 6 | -------------------------------------------------------------------------------- /pkg/api/agentPoolOnlyApi/vlabs/doc.go: -------------------------------------------------------------------------------- 1 | // Package vlabs stores an experimental API model. 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | package vlabs 6 | -------------------------------------------------------------------------------- /vendor/github.com/dgrijalva/jwt-go/doc.go: -------------------------------------------------------------------------------- 1 | // Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html 2 | // 3 | // See README.md for more info. 4 | package jwt 5 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /test/acse-conf/acse-svc-canary-dcos.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "dcos.json", 5 | "category": "canary", 6 | "location": "eastus2euap" 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/NOTICE: -------------------------------------------------------------------------------- 1 | Microsoft Azure-SDK-for-Go 2 | Copyright 2014-2017 Microsoft 3 | 4 | This product includes software developed at 5 | the Microsoft Corporation (https://www.microsoft.com). 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/LICENSE: -------------------------------------------------------------------------------- 1 | This work is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication 2 | license. Its contents can be found at: 3 | http://creativecommons.org/publicdomain/zero/1.0 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /pkg/engine/doc.go: -------------------------------------------------------------------------------- 1 | // Package engine takes an AKS cluster model and generates the corresponding template 2 | // Copyright (c) Microsoft Corporation. All rights reserved. 3 | // Licensed under the MIT license. 4 | package engine 5 | -------------------------------------------------------------------------------- /test/acse-conf/acse-svc-canary-k8s.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "kubernetes.json", 5 | "category": "canary", 6 | "location": "eastus2euap" 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_17.go: -------------------------------------------------------------------------------- 1 | //+build !go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { 8 | return nil 9 | } 10 | -------------------------------------------------------------------------------- /test/acse-conf/acse-svc-canary-swarmmode.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "swarmmode.json", 5 | "category": "canary", 6 | "location": "eastus2euap" 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /test/acse-conf/acse-svc-canary-k8s-win.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "windows/kubernetes.json", 5 | "category": "canary", 6 | "location": "eastus2euap" 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /packer/cleanup-vhd.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -eux 2 | 3 | ## Cleanup packer SSH key and machine ID generated for this boot 4 | rm -f /root/.ssh/authorized_keys 5 | rm -f /home/packer/.ssh/authorized_keys 6 | rm -f /etc/machine-id 7 | touch /etc/machine-id -------------------------------------------------------------------------------- /pkg/api/agentPoolOnlyApi/v20170831/doc.go: -------------------------------------------------------------------------------- 1 | // Package v20170831 stores the API model for version "2017-08-31." 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | package v20170831 6 | -------------------------------------------------------------------------------- /pkg/api/agentPoolOnlyApi/v20180331/doc.go: -------------------------------------------------------------------------------- 1 | // Package v20180331 stores the API model for version "2018-03-31." 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | package v20180331 6 | -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/storageclass-azurefile.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | kind: StorageClass 3 | apiVersion: storage.k8s.io/v1 4 | metadata: 5 | name: azurefile 6 | provisioner: kubernetes.io/azure-file 7 | parameters: 8 | skuName: Standard_LRS -------------------------------------------------------------------------------- /pkg/operations/kubernetesupgrade/doc.go: -------------------------------------------------------------------------------- 1 | // Package kubernetesupgrade allows upgrading of Kubernetes clusters. 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | package kubernetesupgrade 6 | -------------------------------------------------------------------------------- /test/acse-conf/acse-scale.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "azure-cni/k8s-scaleup.json" 5 | }, 6 | { 7 | "cluster_definition": "azure-cni/k8s-scaledown.json" 8 | } 9 | ] 10 | } 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_17.go: -------------------------------------------------------------------------------- 1 | //+build go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | //go:linkname resolveTypeOff reflect.resolveTypeOff 8 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 9 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/tail_posix.go: -------------------------------------------------------------------------------- 1 | // +build linux darwin freebsd netbsd openbsd 2 | 3 | package tail 4 | 5 | import ( 6 | "os" 7 | ) 8 | 9 | func OpenFile(name string) (file *os.File, err error) { 10 | return os.Open(name) 11 | } 12 | -------------------------------------------------------------------------------- /examples/vnet/k8s-vnet-postdeploy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | rt=$(az network route-table list -g ${RESOURCE_GROUP} | jq -r '.[].id') 4 | 5 | az network vnet subnet update -n KubernetesSubnet -g ${RESOURCE_GROUP} --vnet-name KubernetesCustomVNET --route-table $rt 6 | -------------------------------------------------------------------------------- /makedev.ps1: -------------------------------------------------------------------------------- 1 | $REPO_PATH = "github.com/Azure/aks-engine" 2 | $DEV_ENV_IMAGE = "quay.io/deis/go-dev:v1.17.3" 3 | $DEV_ENV_WORK_DIR = "/go/src/$REPO_PATH" 4 | 5 | docker.exe run -it --rm -w $DEV_ENV_WORK_DIR -v `"$($PWD)`":$DEV_ENV_WORK_DIR $DEV_ENV_IMAGE bash 6 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | 3 | package remote 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | func syscallDup(oldfd int, newfd int) (err error) { 8 | return unix.Dup2(oldfd, newfd) 9 | } 10 | -------------------------------------------------------------------------------- /test/acse-conf/acse-scale-vnet.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "azure-cni/k8s-vnet-scaleup.json" 5 | }, 6 | { 7 | "cluster_definition": "azure-cni/k8s-vnet-scaledown.json" 8 | } 9 | ] 10 | } 11 | 12 | -------------------------------------------------------------------------------- /test/shunit/deploy_template.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${HOME}/test/common.sh" 4 | 5 | function shunittest_deploy_template { 6 | set -eux -o pipefail 7 | 8 | export OUTPUT="${HOME}/_output/${INSTANCE_NAME}" 9 | 10 | deploy_template 11 | } 12 | -------------------------------------------------------------------------------- /test/shunit/scale_agent_pool.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${HOME}/test/common.sh" 4 | 5 | function shunittest_scale_agent_pool { 6 | set -eux -o pipefail 7 | 8 | export OUTPUT="${HOME}/_output/${INSTANCE_NAME}" 9 | 10 | scale_agent_pool 11 | } 12 | -------------------------------------------------------------------------------- /scripts/devenv.ps1: -------------------------------------------------------------------------------- 1 | $pwd = (Get-Location).Path 2 | 3 | docker build --pull -t aks-engine . 4 | docker run --security-opt seccomp:unconfined -it ` 5 | -v ${pwd}:/gopath/src/github.com/Azure/aks-engine ` 6 | -w /gopath/src/github.com/Azure/aks-engine ` 7 | aks-engine /bin/bash 8 | -------------------------------------------------------------------------------- /test/shunit/generate_template.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${HOME}/test/common.sh" 4 | 5 | function shunittest_generate_template { 6 | set -eux -o pipefail 7 | 8 | export OUTPUT="${HOME}/_output/${INSTANCE_NAME}" 9 | 10 | generate_template 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/GOLANG_CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | The contributors to the Go protobuf repository: 2 | 3 | # This source code was written by the Go contributors. 4 | # The master list of contributors is in the main Go distribution, 5 | # visible at http://tip.golang.org/CONTRIBUTORS. -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | type Termios unix.Termios 11 | -------------------------------------------------------------------------------- /test/e2e/swarm-deployments.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "swarm.json", 5 | "location": "westus2" 6 | }, 7 | { 8 | "cluster_definition": "disks-managed/swarm-preAttachedDisks-vmss.json", 9 | "location": "westus2" 10 | } 11 | ] 12 | } -------------------------------------------------------------------------------- /test/acse-conf/acse-pr-non-k8s.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "swarm.json", 5 | "location": "westus2" 6 | }, 7 | { 8 | "cluster_definition": "swarmmode.json", 9 | "location": "westcentralus" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/tail_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package tail 4 | 5 | import ( 6 | "github.com/hpcloud/tail/winfile" 7 | "os" 8 | ) 9 | 10 | func OpenFile(name string) (file *os.File, err error) { 11 | return winfile.OpenFile(name, os.O_RDONLY, 0) 12 | } 13 | -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/policies/client-one-deny-egress-policy.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: NetworkPolicy 3 | metadata: 4 | namespace: client-one 5 | name: default-deny-egress 6 | spec: 7 | podSelector: 8 | matchLabels: {} 9 | policyTypes: 10 | - Egress -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/policies/client-one-deny-ingress-policy.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: NetworkPolicy 3 | metadata: 4 | namespace: client-one 5 | name: default-deny-ingress 6 | spec: 7 | podSelector: 8 | matchLabels: {} 9 | policyTypes: 10 | - Ingress -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/pvc-premium.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolumeClaim 3 | metadata: 4 | name: azure-managed-disk 5 | spec: 6 | accessModes: 7 | - ReadWriteOnce 8 | storageClassName: managed-premium 9 | resources: 10 | requests: 11 | storage: 5Gi 12 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_unix.go: -------------------------------------------------------------------------------- 1 | // +build !linux !arm64 2 | // +build !windows 3 | // +build !solaris 4 | 5 | package remote 6 | 7 | import "syscall" 8 | 9 | func syscallDup(oldfd int, newfd int) (err error) { 10 | return syscall.Dup2(oldfd, newfd) 11 | } 12 | -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/pvc-azurefile.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | kind: PersistentVolumeClaim 3 | apiVersion: v1 4 | metadata: 5 | name: pvc-azurefile 6 | spec: 7 | accessModes: 8 | - ReadWriteMany 9 | resources: 10 | requests: 11 | storage: 5Gi 12 | storageClassName: azurefile -------------------------------------------------------------------------------- /scripts/copyright-header.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -euo pipefail 4 | 5 | for i in $(find .. -type f -iname '*.go' ! -path '../vendor/*') # do not run on the vendor dir 6 | do 7 | if ! grep -q Copyright "$i" 8 | then 9 | cat copyright.txt "$i" > "$i".new && mv "$i".new "$i" 10 | fi 11 | done 12 | -------------------------------------------------------------------------------- /test/acse-conf/acse-upgrade-win.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "k8s-upgrade/v1.7.9-win.json", 5 | "location": "eastus" 6 | }, 7 | { 8 | "cluster_definition": "k8s-upgrade/v1.7.9-hybrid.json", 9 | "location": "westus" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /extensions/winrm/v1/enableWinrm.ps1: -------------------------------------------------------------------------------- 1 | $cert = New-SelfSignedCertificate -DnsName (hostname) -CertStoreLocation Cert:\LocalMachine\My 2 | winrm create winrm/config/Listener?Address=*+Transport=HTTPS "@{Hostname=`"$(hostname)`"; CertificateThumbprint=`"$($cert.Thumbprint)`"}" 3 | winrm set winrm/config/service/auth "@{Basic=`"true`"}" -------------------------------------------------------------------------------- /pkg/armhelpers/const.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package armhelpers 5 | 6 | import "time" 7 | 8 | // DefaultARMOperationTimeout defines a default (permissive) ARM operation timeout 9 | const DefaultARMOperationTimeout = 150 * time.Minute 10 | -------------------------------------------------------------------------------- /test/cluster-tests/utils.sh: -------------------------------------------------------------------------------- 1 | 2 | function log { 3 | local message="$1" 4 | local caller="$(caller 0)" 5 | now=$(date +"%D %T %Z") 6 | 7 | if [[ ! -z "${LOGFILE:-}" ]]; then 8 | echo "[${now}] [${caller}] ${message}" | tee -a ${LOGFILE} 9 | else 10 | echo "[${now}] [${caller}] ${message}" 11 | fi 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map is a wrapper for sync.Map introduced in go1.9 8 | type Map struct { 9 | sync.Map 10 | } 11 | 12 | // NewMap creates a thread safe Map 13 | func NewMap() *Map { 14 | return &Map{} 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/go1_2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.2 6 | 7 | package language 8 | 9 | import "sort" 10 | 11 | var sortStable = sort.Stable 12 | -------------------------------------------------------------------------------- /packer/settings-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "client_id": "", 3 | "client_secret": "", 4 | "tenant_id": "", 5 | "subscription_id": "", 6 | "resource_group_name": "aksimages", 7 | "managed_image_resource_group_name": "aksimages", 8 | "storage_account_name": "", 9 | "location": "West US 2", 10 | "vm_size": "Standard_D2_v2" 11 | } -------------------------------------------------------------------------------- /pkg/operations/dcosupgrade/doc.go: -------------------------------------------------------------------------------- 1 | // Package dcosupgrade allows upgrading of ACS clusters with DC/OS as the orchestrator. 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | // 6 | // Deprecated: This code remains only to support the legacy ACS service. 7 | package dcosupgrade 8 | -------------------------------------------------------------------------------- /scripts/validate-dependencies.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | exit_code=0 4 | 5 | echo "==> Running dep check <==" 6 | 7 | dep check || exit_code=1 8 | 9 | if [ $exit_code -ne 0 ]; then 10 | echo "The dependency state is out of sync. Please run dep ensure." 11 | else 12 | echo "dep check passed." 13 | fi 14 | 15 | exit $exit_code -------------------------------------------------------------------------------- /pkg/api/v20160330/doc.go: -------------------------------------------------------------------------------- 1 | // Package v20160330 stores the API model for version "2016-03-30." 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | // 6 | // Deprecated: Use the vlabs package instead. This code remains only to 7 | // support the legacy ACS service. 8 | package v20160330 9 | -------------------------------------------------------------------------------- /pkg/api/v20160930/doc.go: -------------------------------------------------------------------------------- 1 | // Package v20160930 stores the API model for version "2016-09-30." 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | // 6 | // Deprecated: Use the vlabs package instead. This code remains only to 7 | // support the legacy ACS service. 8 | package v20160930 9 | -------------------------------------------------------------------------------- /pkg/api/v20170131/doc.go: -------------------------------------------------------------------------------- 1 | // Package v20170131 stores the API model for version "2017-01-31." 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | // 6 | // Deprecated: Use the vlabs package instead. This code remains only to 7 | // support the legacy ACS service. 8 | package v20170131 9 | -------------------------------------------------------------------------------- /pkg/api/v20170701/doc.go: -------------------------------------------------------------------------------- 1 | // Package v20170701 stores the API model for version "2017-07-01." 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | // 6 | // Deprecated: Use the vlabs package instead. This code remains only to 7 | // support the legacy ACS service. 8 | package v20170701 9 | -------------------------------------------------------------------------------- /pkg/api/v20170930/doc.go: -------------------------------------------------------------------------------- 1 | // Package v20170930 stores the API model for version "2017-09-30." 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT license. 5 | // 6 | // Deprecated: Use the vlabs package instead. This code remains only to 7 | // support the legacy ACS service. 8 | package v20170930 9 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 7 | // terminal. This is also always false on this environment. 8 | func IsCygwinTerminal(fd uintptr) bool { 9 | return false 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /cmd/cmd_suite_test.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package cmd_test 5 | 6 | import ( 7 | "testing" 8 | 9 | . "github.com/Azure/aks-engine/pkg/test" 10 | ) 11 | 12 | func TestCmd(t *testing.T) { 13 | 14 | RunSpecsWithReporters(t, "cmd", "Cmd Suite") 15 | 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/cuda-vector-add.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: batch/v1 2 | kind: Job 3 | metadata: 4 | name: cuda-vector-add 5 | spec: 6 | template: 7 | metadata: 8 | name: cuda-vector-add 9 | spec: 10 | restartPolicy: Never 11 | containers: 12 | - name: cuda-vector-add 13 | image: k8s.gcr.io/cuda-vector-add:v0.1 -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/specrunner/random_id.go: -------------------------------------------------------------------------------- 1 | package specrunner 2 | 3 | import ( 4 | "crypto/rand" 5 | "fmt" 6 | ) 7 | 8 | func randomID() string { 9 | b := make([]byte, 8) 10 | _, err := rand.Read(b) 11 | if err != nil { 12 | return "" 13 | } 14 | return fmt.Sprintf("%x-%x-%x-%x", b[0:2], b[2:4], b[4:6], b[6:8]) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype, cap) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/code_location.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | type CodeLocation struct { 8 | FileName string 9 | LineNumber int 10 | FullStackTrace string 11 | } 12 | 13 | func (codeLocation CodeLocation) String() string { 14 | return fmt.Sprintf("%s:%d", codeLocation.FileName, codeLocation.LineNumber) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // +build linux,arm64 2 | 3 | package remote 4 | 5 | import "syscall" 6 | 7 | // linux_arm64 doesn't have syscall.Dup2 which ginkgo uses, so 8 | // use the nearly identical syscall.Dup3 instead 9 | func syscallDup(oldfd int, newfd int) (err error) { 10 | return syscall.Dup3(oldfd, newfd, 0) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package terminal 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 8 | -------------------------------------------------------------------------------- /vendor/gopkg.in/fsnotify.v1/open_mode_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build freebsd openbsd netbsd dragonfly 6 | 7 | package fsnotify 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const openMode = unix.O_NONBLOCK | unix.O_RDONLY 12 | -------------------------------------------------------------------------------- /parts/k8s/addons/kubernetesmasteraddons-elb-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | kubernetes.io/cluster-service: "true" 6 | addonmanager.kubernetes.io/mode: EnsureExists 7 | name: elb 8 | namespace: kube-system 9 | spec: 10 | ports: 11 | - port: 8765 12 | targetPort: 9376 13 | selector: 14 | app: "" 15 | type: LoadBalancer -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/pod-pvc.yaml: -------------------------------------------------------------------------------- 1 | kind: Pod 2 | apiVersion: v1 3 | metadata: 4 | name: zone-pv-pod 5 | spec: 6 | containers: 7 | - name: myfrontend 8 | image: nginx 9 | volumeMounts: 10 | - mountPath: "/mnt/azure" 11 | name: volume 12 | volumes: 13 | - name: volume 14 | persistentVolumeClaim: 15 | claimName: azure-managed-disk 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_no_getwd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build dragonfly freebsd netbsd openbsd 6 | 7 | package unix 8 | 9 | const ImplementsGetwd = false 10 | 11 | func Getwd() (string, error) { return "", ENOTSUP } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | // TODO(aram): remove these before Go 1.3. 10 | const ( 11 | SYS_EXECVE = 59 12 | SYS_FCNTL = 62 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/gopkg.in/fsnotify.v1/open_mode_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin 6 | 7 | package fsnotify 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | // note: this constant is not defined on BSD 12 | const openMode = unix.O_EVTONLY 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Unsetenv(key string) error { 12 | // This was added in Go 1.4. 13 | return syscall.Unsetenv(key) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /test/e2e/kubernetes/kubernetes_suite_test.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package kubernetes_test 5 | 6 | import ( 7 | . "github.com/onsi/ginkgo" 8 | . "github.com/onsi/gomega" 9 | 10 | "testing" 11 | ) 12 | 13 | func TestKubernetes(t *testing.T) { 14 | RegisterFailHandler(Fail) 15 | RunSpecs(t, "Kubernetes Suite") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/const_amd64.h: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // This code was translated into a form compatible with 6a from the public 6 | // domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html 7 | 8 | #define REDMASK51 0x0007FFFFFFFFFFFF 9 | -------------------------------------------------------------------------------- /test/acse-conf/acse-upgrade-lnx.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "k8s-upgrade/v1.7.7.json", 5 | "location": "eastus" 6 | }, 7 | { 8 | "cluster_definition": "k8s-upgrade/v1.7.9.json", 9 | "location": "centralus" 10 | }, 11 | { 12 | "cluster_definition": "k8s-upgrade/v1.8.4.json", 13 | "location": "westus2" 14 | } 15 | ] 16 | } 17 | 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/output_interceptor.go: -------------------------------------------------------------------------------- 1 | package remote 2 | 3 | import "os" 4 | 5 | /* 6 | The OutputInterceptor is used by the ForwardingReporter to 7 | intercept and capture all stdin and stderr output during a test run. 8 | */ 9 | type OutputInterceptor interface { 10 | StartInterceptingOutput() error 11 | StopInterceptingAndReturnOutput() (string, error) 12 | StreamTo(*os.File) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /examples/disks-managed/README.md: -------------------------------------------------------------------------------- 1 | # Microsoft Azure Kubernetes Engine - Managed Disks 2 | 3 | ## Overview 4 | 5 | AKS Engine enables you to create customized Kubernetes cluster on Microsoft Azure with [managed disks](https://docs.microsoft.com/en-us/azure/storage/storage-managed-disks-overview). 6 | 7 | These examples are provided as a reference, note that managed disks is the default storage account type if none is specified. 8 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_linux.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build !appengine 7 | 8 | package logrus 9 | 10 | import "golang.org/x/sys/unix" 11 | 12 | const ioctlReadTermios = unix.TCGETS 13 | 14 | type Termios unix.Termios 15 | -------------------------------------------------------------------------------- /parts/swarm/swarmparams.t: -------------------------------------------------------------------------------- 1 | , 2 | "dockerEngineDownloadRepo": { 3 | "defaultValue": "", 4 | "metadata": { 5 | "description": "Docker engine download repo." 6 | }, 7 | "type": "string" 8 | }, 9 | "dockerComposeDownloadURL": { 10 | "defaultValue": "", 11 | "metadata": { 12 | "description": "Docker compose download URL." 13 | }, 14 | "type": "string" 15 | } -------------------------------------------------------------------------------- /vendor/github.com/kelseyhightower/envconfig/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Kelsey Hightower. All rights reserved. 2 | // Use of this source code is governed by the MIT License that can be found in 3 | // the LICENSE file. 4 | 5 | // Package envconfig implements decoding of environment variables based on a user 6 | // defined specification. A typical use is using environment variables for 7 | // configuration settings. 8 | package envconfig 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.9 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func configureServer19(s *http.Server, conf *Server) error { 14 | // not supported prior to go1.9 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build go1.4 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | func Unsetenv(key string) error { 13 | // This was added in Go 1.4. 14 | return syscall.Unsetenv(key) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/japanese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd netbsd openbsd 6 | 7 | package terminal 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go16.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.6 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | "time" 12 | ) 13 | 14 | func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { 15 | return t1.ExpectContinueTimeout 16 | } 17 | -------------------------------------------------------------------------------- /.prowci/config.yaml: -------------------------------------------------------------------------------- 1 | log_level: debug 2 | 3 | tide: 4 | # target_url: http://prow-ci-bot-ingress.eastus.cloudapp.azure.com/tide.html 5 | merge_method: 6 | Azure/aks-engine: squash 7 | queries: 8 | - repos: 9 | - Azure/aks-engine 10 | labels: 11 | - lgtm 12 | - approved 13 | missingLabels: 14 | - needs-ok-to-test 15 | - DO-NOT-MERGE 16 | - do-not-merge/work-in-progress 17 | - do-not-merge/hold 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/leafnodes/interfaces.go: -------------------------------------------------------------------------------- 1 | package leafnodes 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/types" 5 | ) 6 | 7 | type BasicNode interface { 8 | Type() types.SpecComponentType 9 | Run() (types.SpecState, types.SpecFailure) 10 | CodeLocation() types.CodeLocation 11 | } 12 | 13 | type SubjectNode interface { 14 | BasicNode 15 | 16 | Text() string 17 | Flag() types.FlagType 18 | Samples() int 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/simplifiedchinese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simplifiedchinese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{GB18030, GBK, HZGB2312} 13 | -------------------------------------------------------------------------------- /pkg/operations/kubernetesupgrade/v16upgrader.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package kubernetesupgrade 5 | 6 | // Compiler to verify QueueMessageProcessor implements OperationsProcessor 7 | var _ UpgradeWorkFlow = &Kubernetes16upgrader{} 8 | 9 | // Kubernetes16upgrader upgrades a Kubernetes 1.5 cluster to 1.6 10 | type Kubernetes16upgrader struct { 11 | Upgrader 12 | } 13 | -------------------------------------------------------------------------------- /pkg/operations/kubernetesupgrade/v17upgrader.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package kubernetesupgrade 5 | 6 | // Compiler to verify QueueMessageProcessor implements OperationsProcessor 7 | var _ UpgradeWorkFlow = &Kubernetes17upgrader{} 8 | 9 | // Kubernetes17upgrader upgrades a Kubernetes 1.6 cluster to 1.7 10 | type Kubernetes17upgrader struct { 11 | Upgrader 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.9 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func configureServer19(s *http.Server, conf *Server) error { 14 | s.RegisterOnShutdown(conf.state.startGracefulShutdown) 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /pkg/operations/kubernetesupgrade/v18upgrader.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package kubernetesupgrade 5 | 6 | // Compiler to verify QueueMessageProcessor implements OperationsProcessor 7 | var _ UpgradeWorkFlow = &Kubernetes18upgrader{} 8 | 9 | // Kubernetes18upgrader upgrades a Kubernetes 1.7.x cluster to 1.8.x 10 | type Kubernetes18upgrader struct { 11 | Upgrader 12 | } 13 | -------------------------------------------------------------------------------- /pkg/engine/fileloader.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package engine 5 | 6 | //go:generate go-bindata -nometadata -pkg $GOPACKAGE -prefix ../../parts/ -o templates.go ../../parts/... 7 | //go:generate gofmt -s -l -w templates.go 8 | // fileloader use go-bindata (https://github.com/go-bindata/go-bindata) 9 | // go-bindata is the way we handle embedded files, like binary, template, etc. 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /examples/vnet/vnetarmtemplate/deploy.ps1: -------------------------------------------------------------------------------- 1 | $VerbosePreference="Continue" 2 | $deployName="myKubeVnet" 3 | $RGName=$deployName 4 | $locName="West US" 5 | #$templateFile = "azuredeploy.dcos.json" 6 | #$templateFile = "azuredeploy.swarm.json" 7 | $templateFile = "azuredeploy.kubernetes.json" 8 | New-AzureRmResourceGroup -Name $RGName -Location $locName -Force 9 | New-AzureRmResourceGroupDeployment -Name $deployName -ResourceGroupName $RGName -TemplateFile $templateFile 10 | -------------------------------------------------------------------------------- /pkg/i18n/resourceloader.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package i18n 5 | 6 | //go:generate go-bindata -nometadata -pkg $GOPACKAGE -prefix ../../ -o translations.go ../../translations/... 7 | //go:generate gofmt -s -l -w translations.go 8 | // resourceloader use go-bindata (https://github.com/go-bindata/go-bindata) 9 | // go-bindata is the way we handle embedded files, like binary, template, etc. 10 | -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/ingress-nginx-ilb.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: ingress-nginx 5 | annotations: 6 | service.beta.kubernetes.io/azure-load-balancer-internal: "true" 7 | spec: 8 | type: LoadBalancer 9 | ports: 10 | - name: http 11 | port: 80 12 | targetPort: 80 13 | protocol: TCP 14 | - name: https 15 | port: 443 16 | targetPort: 443 17 | protocol: TCP 18 | selector: 19 | app: ingress-nginx -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/nginx-master.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: nginx-master 5 | labels: 6 | app: nginx-master 7 | spec: 8 | containers: 9 | - image: library/nginx:latest 10 | name: nginx-master 11 | command: 12 | - sleep 13 | - "1000000" 14 | tolerations: 15 | - effect: NoSchedule 16 | key: node-role.kubernetes.io/master 17 | operator: "Exists" 18 | nodeSelector: 19 | kubernetes.io/role: master -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // 6 | // System calls for 386, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-8 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-4 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // 6 | // System calls for amd64, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-32 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-8 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // langAliasType is the type of an alias in langAliasMap. 8 | type langAliasType int8 9 | 10 | const ( 11 | langDeprecated langAliasType = iota 12 | langMacro 13 | langLegacy 14 | 15 | langAliasTypeUnknown langAliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/flock_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /scripts/devenv.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -eu -o pipefail 4 | set -x 5 | 6 | docker build --pull -t aks-engine . 7 | 8 | docker run -it \ 9 | --privileged \ 10 | --security-opt seccomp:unconfined \ 11 | -v /var/run/docker.sock:/var/run/docker.sock \ 12 | -v `pwd`:/gopath/src/github.com/Azure/aks-engine \ 13 | -v ~/.azure:/root/.azure \ 14 | -w /gopath/src/github.com/Azure/aks-engine \ 15 | aks-engine /bin/bash 16 | 17 | chown -R "$(logname):$(id -gn $(logname))" . ~/.azure 18 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package main 5 | 6 | import ( 7 | "github.com/Azure/aks-engine/cmd" 8 | "github.com/mattn/go-colorable" 9 | log "github.com/sirupsen/logrus" 10 | ) 11 | 12 | func main() { 13 | log.SetFormatter(&log.TextFormatter{ForceColors: true}) 14 | log.SetOutput(colorable.NewColorableStdout()) 15 | if err := cmd.NewRootCmd().Execute(); err != nil { 16 | log.Fatalln(err) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /scripts/validate-copyright-header.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -euo pipefail 4 | 5 | echo "==> Checking copyright headers <==" 6 | 7 | files=$(find . -type f -iname '*.go' ! -path './vendor/*') 8 | licRes=$(for file in $files; do 9 | awk 'NR<=3' "$file" | grep -Eq "(Copyright|generated|GENERATED)" || echo "$file"; 10 | done) 11 | 12 | if [ -n "$licRes" ]; then 13 | echo "Copyright header check failed:"; 14 | echo "${licRes}"; 15 | exit 1; 16 | fi 17 | -------------------------------------------------------------------------------- /test/e2e/dcos-deployments.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "disks-managed/dcos-preAttachedDisks-vmas.json", 5 | "location": "eastus" 6 | }, 7 | { 8 | "cluster_definition": "disks-managed/dcos-vmss.json", 9 | "location": "eastus" 10 | }, 11 | { 12 | "cluster_definition": "disks-storageaccount/dcos.json", 13 | "location": "eastus" 14 | }, 15 | { 16 | "cluster_definition": "vnet/dcosvnet.json", 17 | "location": "westus2" 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /parts/k8s/addons/kubernetesmasteraddons-aad-default-admin-group-rbac.yaml: -------------------------------------------------------------------------------- 1 | kind: ClusterRoleBinding 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | metadata: 4 | name: aad-default-admin-group 5 | labels: 6 | kubernetes.io/cluster-service: "true" 7 | addonmanager.kubernetes.io/mode: EnsureExists 8 | subjects: 9 | - kind: Group 10 | name: 11 | apiGroup: rbac.authorization.k8s.io 12 | roleRef: 13 | kind: ClusterRole 14 | name: cluster-admin 15 | apiGroup: rbac.authorization.k8s.io 16 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package colorable 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func NewColorable(file *os.File) io.Writer { 11 | if file == nil { 12 | panic("nil passed instead of *os.File to NewColorable()") 13 | } 14 | 15 | return file 16 | } 17 | 18 | func NewColorableStdout() io.Writer { 19 | return os.Stdout 20 | } 21 | 22 | func NewColorableStderr() io.Writer { 23 | return os.Stderr 24 | } 25 | -------------------------------------------------------------------------------- /vendor/gopkg.in/go-playground/validator.v9/translations.go: -------------------------------------------------------------------------------- 1 | package validator 2 | 3 | import ut "github.com/go-playground/universal-translator" 4 | 5 | // TranslationFunc is the function type used to register or override 6 | // custom translations 7 | type TranslationFunc func(ut ut.Translator, fe FieldError) string 8 | 9 | // RegisterTranslationsFunc allows for registering of translations 10 | // for a 'ut.Translator' for use withing the 'TranslationFunc' 11 | type RegisterTranslationsFunc func(ut ut.Translator) error 12 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine,!ppc64,!ppc64le 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | 11 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 12 | // terminal. This is also always false on this environment. 13 | func IsCygwinTerminal(fd uintptr) bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/spec_iterator/spec_iterator.go: -------------------------------------------------------------------------------- 1 | package spec_iterator 2 | 3 | import ( 4 | "errors" 5 | 6 | "github.com/onsi/ginkgo/internal/spec" 7 | ) 8 | 9 | var ErrClosed = errors.New("no more specs to run") 10 | 11 | type SpecIterator interface { 12 | Next() (*spec.Spec, error) 13 | NumberOfSpecsPriorToIteration() int 14 | NumberOfSpecsToProcessIfKnown() (int, bool) 15 | NumberOfSpecsThatWillBeRunIfKnown() (int, bool) 16 | } 17 | 18 | type Counter struct { 19 | Index int `json:"index"` 20 | } 21 | -------------------------------------------------------------------------------- /examples/cosmos-etcd/readme.md: -------------------------------------------------------------------------------- 1 | # Kubernetes on Cosmos 2 | 3 | This example deployment allows you to bootstrap a kubernetes cluster on Azure that uses Cosmos instead of locally installed and configured etcd. 4 | 5 | ## Preview Instruction 6 | Please follow instruction in https://aka.ms/azurecosmosetcd to enroll your subscription in the private preview preview of Cosmos etcd api. 7 | 8 | ## Get Support 9 | To get support during the preview you can file github issues on this repo. Please mention cosmosetcd team when filing the issue. 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/iis-azurefile.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | kind: Pod 3 | apiVersion: v1 4 | metadata: 5 | name: iis-azurefile 6 | labels: 7 | name: storage 8 | spec: 9 | containers: 10 | - image: microsoft/iis:windowsservercore-1803 11 | name: iis-azurefile 12 | volumeMounts: 13 | - name: azurefilevol 14 | mountPath: '/mnt/azure' 15 | nodeSelector: 16 | beta.kubernetes.io/os: windows 17 | volumes: 18 | - name: azurefilevol 19 | persistentVolumeClaim: 20 | claimName: pvc-azurefile -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go16.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.6 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | "time" 12 | ) 13 | 14 | func configureTransport(t1 *http.Transport) (*Transport, error) { 15 | return nil, errTransportVersion 16 | } 17 | 18 | func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { 19 | return 0 20 | 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build ppc64 ppc64le 3 | 4 | package isatty 5 | 6 | import ( 7 | "unsafe" 8 | 9 | syscall "golang.org/x/sys/unix" 10 | ) 11 | 12 | const ioctlReadTermios = syscall.TCGETS 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var termios syscall.Termios 17 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 18 | return err == 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/asset.go: -------------------------------------------------------------------------------- 1 | // This work is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication 2 | // license. Its contents can be found at: 3 | // http://creativecommons.org/publicdomain/zero/1.0/ 4 | 5 | package bindata 6 | 7 | // Asset holds information about a single asset to be processed. 8 | type Asset struct { 9 | Path string // Full file path. 10 | Name string // Key used in TOC -- name by which asset is referenced. 11 | Func string // Function name for the procedure returning the asset contents. 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/reporter.go: -------------------------------------------------------------------------------- 1 | package reporters 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/config" 5 | "github.com/onsi/ginkgo/types" 6 | ) 7 | 8 | type Reporter interface { 9 | SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) 10 | BeforeSuiteDidRun(setupSummary *types.SetupSummary) 11 | SpecWillRun(specSummary *types.SpecSummary) 12 | SpecDidComplete(specSummary *types.SpecSummary) 13 | AfterSuiteDidRun(setupSummary *types.SetupSummary) 14 | SpecSuiteDidEnd(summary *types.SuiteSummary) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /pkg/engine/testdata/agentPoolOnly/v20180331/agents.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "2018-03-31", 3 | "properties": { 4 | "dnsPrefix": "agents006", 5 | "fqdn": "agents006.azmk8s.io", 6 | "kubernetesVersion": "1.8.15", 7 | "agentPoolProfiles": [ 8 | { 9 | "name": "agentpool1", 10 | "count": 1, 11 | "vmSize": "Standard_D2_v2" 12 | } 13 | ], 14 | "servicePrincipalProfile": { 15 | "clientID": "ServicePrincipalClientID", 16 | "secret": "myServicePrincipalClientSecret" 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/dns-liveness.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | labels: 5 | test: liveness 6 | name: dns-liveness 7 | spec: 8 | containers: 9 | - name: dns-liveness 10 | image: k8s.gcr.io/busybox 11 | args: 12 | - /bin/sh 13 | - -c 14 | - while true; do sleep 600; done 15 | livenessProbe: 16 | exec: 17 | command: 18 | - nslookup 19 | - bbc.co.uk 20 | initialDelaySeconds: 5 21 | periodSeconds: 5 22 | nodeSelector: 23 | beta.kubernetes.io/os: linux 24 | -------------------------------------------------------------------------------- /parts/dcos/bstrap/bootstrapvars.t: -------------------------------------------------------------------------------- 1 | {{if .OrchestratorProfile.DcosConfig.BootstrapProfile}} 2 | , 3 | "dcosBootstrapURL": "[parameters('dcosBootstrapURL')]", 4 | "bootstrapVMSize": "[parameters('bootstrapVMSize')]", 5 | "bootstrapNSGID": "[resourceId('Microsoft.Network/networkSecurityGroups',variables('bootstrapNSGName'))]", 6 | "bootstrapNSGName": "[concat('bootstrap-nsg-', variables('nameSuffix'))]", 7 | "bootstrapVMName": "[concat('bootstrap-', variables('nameSuffix'))]", 8 | "bootstrapStaticIP": "[parameters('bootstrapStaticIP')]" 9 | {{end}} 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /parts/k8s/artifacts/kubernetesazurekms.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=azurekms 3 | Requires=docker.service 4 | After=network-online.target 5 | 6 | [Service] 7 | Type=simple 8 | Restart=always 9 | TimeoutStartSec=0 10 | ExecStart=/usr/bin/docker run \ 11 | --net=host \ 12 | --volume=/opt:/opt \ 13 | --volume=/etc/kubernetes:/etc/kubernetes \ 14 | --volume=/etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \ 15 | --volume=/var/lib/waagent:/var/lib/waagent \ 16 | microsoft/k8s-azure-kms:v0.0.7 17 | 18 | [Install] 19 | WantedBy=multi-user.target 20 | -------------------------------------------------------------------------------- /pkg/armhelpers/providers.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package armhelpers 5 | 6 | import ( 7 | "context" 8 | 9 | "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-05-01/resources" 10 | "github.com/Azure/go-autorest/autorest/to" 11 | ) 12 | 13 | // ListProviders returns all the providers for a given AzureClient 14 | func (az *AzureClient) ListProviders(ctx context.Context) (resources.ProviderListResultPage, error) { 15 | return az.providersClient.List(ctx, to.Int32Ptr(100), "") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/gen_common.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build ignore 6 | 7 | package main 8 | 9 | // This file contains code common to the maketables.go and the package code. 10 | 11 | // langAliasType is the type of an alias in langAliasMap. 12 | type langAliasType int8 13 | 14 | const ( 15 | langDeprecated langAliasType = iota 16 | langMacro 17 | langLegacy 18 | 19 | langAliasTypeUnknown langAliasType = -1 20 | ) 21 | -------------------------------------------------------------------------------- /.codecov/codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | notify: 3 | require_ci_to_pass: no 4 | 5 | coverage: 6 | precision: 2 7 | round: down 8 | range: "50...100" 9 | 10 | status: 11 | project: 12 | default: 13 | threshold: 0.5 14 | patch: 15 | default: 16 | threshold: 0.5 17 | changes: no 18 | 19 | parsers: 20 | gcov: 21 | branch_detection: 22 | conditional: yes 23 | loop: yes 24 | method: no 25 | macro: no 26 | 27 | comment: 28 | layout: "header, diff" 29 | behavior: default 30 | require_changes: no -------------------------------------------------------------------------------- /pkg/armhelpers/deploymentOperations.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package armhelpers 5 | 6 | import ( 7 | "context" 8 | ) 9 | 10 | // ListDeploymentOperations gets all deployments operations for a deployment. 11 | func (az *AzureClient) ListDeploymentOperations(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (DeploymentOperationsListResultPage, error) { 12 | list, err := az.deploymentOperationsClient.List(ctx, resourceGroupName, deploymentName, top) 13 | return &list, err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/trap_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package mousetrap 4 | 5 | // StartedByExplorer returns true if the program was invoked by the user 6 | // double-clicking on the executable from explorer.exe 7 | // 8 | // It is conservative and returns false if any of the internal calls fail. 9 | // It does not guarantee that the program was run from a terminal. It only can tell you 10 | // whether it was launched from explorer.exe 11 | // 12 | // On non-Windows platforms, it always returns false. 13 | func StartedByExplorer() bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | var kernel32 = syscall.NewLazyDLL("kernel32.dll") 12 | var procGetConsoleMode = kernel32.NewProc("GetConsoleMode") 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var st uint32 17 | r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, fd, uintptr(unsafe.Pointer(&st)), 0) 18 | return r != 0 && e == 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import "github.com/onsi/gomega/format" 4 | 5 | type BeNilMatcher struct { 6 | } 7 | 8 | func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) { 9 | return isNil(actual), nil 10 | } 11 | 12 | func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) { 13 | return format.Message(actual, "to be nil") 14 | } 15 | 16 | func (matcher *BeNilMatcher) NegatedFailureMessage(actual interface{}) (message string) { 17 | return format.Message(actual, "not to be nil") 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,!race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/json.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | // MarshalJSON implements the encoding/json.Marshaler interface. 8 | func (v Version) MarshalJSON() ([]byte, error) { 9 | return json.Marshal(v.String()) 10 | } 11 | 12 | // UnmarshalJSON implements the encoding/json.Unmarshaler interface. 13 | func (v *Version) UnmarshalJSON(data []byte) (err error) { 14 | var versionString string 15 | 16 | if err = json.Unmarshal(data, &versionString); err != nil { 17 | return 18 | } 19 | 20 | *v, err = Parse(versionString) 21 | 22 | return 23 | } 24 | -------------------------------------------------------------------------------- /parts/k8s/setup-custom-search-domains.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -x 3 | source /opt/azure/containers/provision_source.sh 4 | 5 | sudo echo " dns-search " >> /etc/network/interfaces.d/50-cloud-init.cfg 6 | systemctl_restart 20 5 10 restart networking 7 | wait_for_apt_locks 8 | retrycmd_if_failure 10 5 120 apt-get -y install realmd sssd sssd-tools samba-common samba samba-common python2.7 samba-libs packagekit 9 | wait_for_apt_locks 10 | echo "" | realm join -U @`echo "" | tr /a-z/ /A-Z/` `echo "" | tr /a-z/ /A-Z/` -------------------------------------------------------------------------------- /vendor/github.com/howeyc/gopass/terminal.go: -------------------------------------------------------------------------------- 1 | // +build !solaris 2 | 3 | package gopass 4 | 5 | import "golang.org/x/crypto/ssh/terminal" 6 | 7 | type terminalState struct { 8 | state *terminal.State 9 | } 10 | 11 | func isTerminal(fd uintptr) bool { 12 | return terminal.IsTerminal(int(fd)) 13 | } 14 | 15 | func makeRaw(fd uintptr) (*terminalState, error) { 16 | state, err := terminal.MakeRaw(int(fd)) 17 | 18 | return &terminalState{ 19 | state: state, 20 | }, err 21 | } 22 | 23 | func restore(fd uintptr, oldState *terminalState) error { 24 | return terminal.Restore(int(fd), oldState.state) 25 | } 26 | -------------------------------------------------------------------------------- /test/e2e/swarmmode-deployments.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "disks-managed/swarmmode-vmas.json", 5 | "location": "westus2" 6 | }, 7 | { 8 | "cluster_definition": "disks-managed/swarmmode-vmss.json", 9 | "location": "westus2" 10 | }, 11 | { 12 | "cluster_definition": "disks-storageaccount/swarmmode.json", 13 | "location": "westus2" 14 | }, 15 | { 16 | "cluster_definition": "v20170131/swarmmode.json", 17 | "location": "westus2" 18 | }, 19 | { 20 | "cluster_definition": "vnet/swarmmodevnet.json", 21 | "location": "westus2" 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/influxdata/influxdb/pkg/escape/strings.go: -------------------------------------------------------------------------------- 1 | package escape 2 | 3 | import "strings" 4 | 5 | var ( 6 | escaper = strings.NewReplacer(`,`, `\,`, `"`, `\"`, ` `, `\ `, `=`, `\=`) 7 | unescaper = strings.NewReplacer(`\,`, `,`, `\"`, `"`, `\ `, ` `, `\=`, `=`) 8 | ) 9 | 10 | // UnescapeString returns unescaped version of in. 11 | func UnescapeString(in string) string { 12 | if strings.IndexByte(in, '\\') == -1 { 13 | return in 14 | } 15 | return unescaper.Replace(in) 16 | } 17 | 18 | // String returns the escaped version of in. 19 | func String(in string) string { 20 | return escaper.Replace(in) 21 | } 22 | -------------------------------------------------------------------------------- /parts/masteroutputs.t: -------------------------------------------------------------------------------- 1 | "masterFQDN": { 2 | "type": "string", 3 | {{if not IsPrivateCluster}} 4 | "value": "[reference(concat('Microsoft.Network/publicIPAddresses/', variables('masterPublicIPAddressName'))).dnsSettings.fqdn]" 5 | {{else}} 6 | "value": "" 7 | {{end}} 8 | } 9 | {{if AnyAgentUsesAvailabilitySets}} 10 | , 11 | "agentStorageAccountSuffix": { 12 | "type": "string", 13 | "value": "[variables('storageAccountBaseName')]" 14 | }, 15 | "agentStorageAccountPrefixes": { 16 | "type": "array", 17 | "value": "[variables('storageAccountPrefixes')]" 18 | } 19 | {{end}} -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Vastech SA (PTY) LTD 14 | Walter Schulze 15 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/command_win.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package cobra 4 | 5 | import ( 6 | "os" 7 | "time" 8 | 9 | "github.com/inconshreveable/mousetrap" 10 | ) 11 | 12 | var preExecHookFn = preExecHook 13 | 14 | // enables an information splash screen on Windows if the CLI is started from explorer.exe. 15 | var MousetrapHelpText string = `This is a command line tool 16 | 17 | You need to open cmd.exe and run it from there. 18 | ` 19 | 20 | func preExecHook(c *Command) { 21 | if mousetrap.StartedByExplorer() { 22 | c.Print(MousetrapHelpText) 23 | time.Sleep(5 * time.Second) 24 | os.Exit(1) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/env_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Windows environment variables. 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | func Getenv(key string) (value string, found bool) { 12 | return syscall.Getenv(key) 13 | } 14 | 15 | func Setenv(key, value string) error { 16 | return syscall.Setenv(key, value) 17 | } 18 | 19 | func Clearenv() { 20 | syscall.Clearenv() 21 | } 22 | 23 | func Environ() []string { 24 | return syscall.Environ() 25 | } 26 | -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/validate-dns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: batch/v1 2 | kind: Job 3 | metadata: 4 | name: validate-dns 5 | spec: 6 | template: 7 | spec: 8 | restartPolicy: Never 9 | containers: 10 | - name: validate-bing 11 | image: library/busybox 12 | command: ['sh', '-c', 'until nslookup www.bing.com; do echo waiting for DNS resolution; sleep 1; done;'] 13 | - name: validate-google 14 | image: library/busybox 15 | command: ['sh', '-c', 'until nslookup google.com; do echo waiting for DNS resolution; sleep 1; done;'] 16 | nodeSelector: 17 | beta.kubernetes.io/os: linux -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014 Alan Shreve 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /test/e2e/kubernetes/workloads/nvidia-smi.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: batch/v1 2 | kind: Job 3 | metadata: 4 | name: nvidia-smi 5 | spec: 6 | template: 7 | metadata: 8 | name: nvidia-smi 9 | spec: 10 | restartPolicy: Never 11 | containers: 12 | - name: nvidia-smi 13 | image: nvidia/cuda 14 | command: 15 | - nvidia-smi 16 | resources: 17 | limits: 18 | alpha.kubernetes.io/nvidia-gpu: 1 19 | volumeMounts: 20 | - name: nvidia 21 | mountPath: /usr/local/nvidia/ 22 | volumes: 23 | - name: nvidia 24 | hostPath: 25 | path: /usr/local/nvidia -------------------------------------------------------------------------------- /.prowci/plugins.yaml: -------------------------------------------------------------------------------- 1 | approve: 2 | - repos: 3 | - Azure/aks-engine 4 | implicit_self_approve: true 5 | lgtm_acts_as_approve: true 6 | 7 | config_updater: 8 | maps: 9 | .prowci/config.yaml: 10 | name: config 11 | .prowci/plugins.yaml: 12 | name: plugins 13 | 14 | label: 15 | additional_labels: 16 | - orchestrator/k8s 17 | - DO-NOT-MERGE 18 | 19 | 20 | plugins: 21 | Azure/aks-engine: 22 | - approve 23 | - assign 24 | - cat 25 | - config-updater 26 | - dog 27 | - help 28 | - hold 29 | - label 30 | - lgtm 31 | - lifecycle 32 | - shrug 33 | - size 34 | - wip 35 | - yuks 36 | -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/go-bindata/AppendSliceValue.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "strings" 4 | 5 | // borrowed from https://github.com/hashicorp/serf/blob/master/command/agent/flag_slice_value.go 6 | 7 | // AppendSliceValue implements the flag.Value interface and allows multiple 8 | // calls to the same variable to append a list. 9 | type AppendSliceValue []string 10 | 11 | func (s *AppendSliceValue) String() string { 12 | return strings.Join(*s, ",") 13 | } 14 | 15 | func (s *AppendSliceValue) Set(value string) error { 16 | if *s == nil { 17 | *s = make([]string, 0, 1) 18 | } 19 | 20 | *s = append(*s, value) 21 | return nil 22 | } 23 | -------------------------------------------------------------------------------- /.prowci/ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | name: prow-ingress 5 | annotations: 6 | kubernetes.io/tls-acme: "true" 7 | # nginx.ingress.kubernetes.io/rewrite-target: / 8 | spec: 9 | tls: 10 | - secretName: prow-tls 11 | hosts: 12 | - prow-ci-bot-ingress.eastus.cloudapp.azure.com 13 | rules: 14 | - host: prow-ci-bot-ingress.eastus.cloudapp.azure.com 15 | http: 16 | paths: 17 | - path: /* 18 | backend: 19 | serviceName: deck 20 | servicePort: 80 21 | - path: /hook 22 | backend: 23 | serviceName: hook 24 | servicePort: 8888 25 | -------------------------------------------------------------------------------- /pkg/api/v20160330/merge.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package v20160330 5 | 6 | import ( 7 | "github.com/imdario/mergo" 8 | ) 9 | 10 | // Merge existing containerService attribute into cs 11 | func (cs *ContainerService) Merge(ecs *ContainerService) error { 12 | if ecs.Properties.WindowsProfile != nil { 13 | if cs.Properties.WindowsProfile == nil { 14 | cs.Properties.WindowsProfile = &WindowsProfile{} 15 | } 16 | if err := mergo.Merge(cs.Properties.WindowsProfile, 17 | *ecs.Properties.WindowsProfile); err != nil { 18 | return err 19 | } 20 | } 21 | return nil 22 | } 23 | -------------------------------------------------------------------------------- /examples/disks-storageaccount/README.md: -------------------------------------------------------------------------------- 1 | # Microsoft Azure Kubernetes Engine - Attached Disks 2 | 3 | ## Overview 4 | 5 | AKS Engine enables you to create customized Kubernetes cluster on Microsoft Azure with attached disks. 6 | 7 | The examples show you how to configure up to 4 attached disks. The disks can range from 1 to 1024 GB in size: 8 | 9 | 1. **dcos.json** - deploying and using [DC/OS](../../docs/dcos.md) 10 | 2. **kubernetes.json** - deploying and using [Kubernetes](../../docs/kubernetes.md) 11 | 3. **swarm.json** - deploying and using [Swarm](../../docs/swarm.md) 12 | 4. **swarmmode.json** - deploying and using [Swarm Mode](../../docs/swarmmode.md) 13 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/types/types.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | type GomegaFailHandler func(message string, callerSkip ...int) 4 | 5 | //A simple *testing.T interface wrapper 6 | type GomegaTestingT interface { 7 | Fatalf(format string, args ...interface{}) 8 | } 9 | 10 | //All Gomega matchers must implement the GomegaMatcher interface 11 | // 12 | //For details on writing custom matchers, check out: http://onsi.github.io/gomega/#adding_your_own_matchers 13 | type GomegaMatcher interface { 14 | Match(actual interface{}) (success bool, err error) 15 | FailureMessage(actual interface{}) (message string) 16 | NegatedFailureMessage(actual interface{}) (message string) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/synchronization.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type RemoteBeforeSuiteState int 8 | 9 | const ( 10 | RemoteBeforeSuiteStateInvalid RemoteBeforeSuiteState = iota 11 | 12 | RemoteBeforeSuiteStatePending 13 | RemoteBeforeSuiteStatePassed 14 | RemoteBeforeSuiteStateFailed 15 | RemoteBeforeSuiteStateDisappeared 16 | ) 17 | 18 | type RemoteBeforeSuiteData struct { 19 | Data []byte 20 | State RemoteBeforeSuiteState 21 | } 22 | 23 | func (r RemoteBeforeSuiteData) ToJSON() []byte { 24 | data, _ := json.Marshal(r) 25 | return data 26 | } 27 | 28 | type RemoteAfterSuiteData struct { 29 | CanRun bool 30 | } 31 | -------------------------------------------------------------------------------- /pkg/armhelpers/network.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package armhelpers 5 | 6 | import ( 7 | "context" 8 | ) 9 | 10 | // DeleteNetworkInterface deletes the specified network interface. 11 | func (az *AzureClient) DeleteNetworkInterface(ctx context.Context, resourceGroup, nicName string) error { 12 | future, err := az.interfacesClient.Delete(ctx, resourceGroup, nicName) 13 | if err != nil { 14 | return err 15 | } 16 | 17 | if err = future.WaitForCompletionRef(ctx, az.interfacesClient.Client); err != nil { 18 | return err 19 | } 20 | 21 | _, err = future.Result(az.interfacesClient) 22 | return err 23 | } 24 | -------------------------------------------------------------------------------- /pkg/engine/testdata/v20160330/defaults.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "2016-03-30", 3 | "properties": { 4 | "masterProfile": { 5 | "count": 3, 6 | "dnsPrefix": "masterdns1" 7 | }, 8 | "agentPoolProfiles": [ 9 | { 10 | "name": "agentprivate", 11 | "count": 3, 12 | "vmSize": "Standard_D2_v2", 13 | "dnsPrefix": "test-dcos-pool", 14 | "osType": "Linux" 15 | } 16 | ], 17 | "linuxProfile": { 18 | "adminUsername": "azureuser", 19 | "ssh": { 20 | "publicKeys": [ 21 | { 22 | "keyData": "ssh-rsa PUBLICKEY azureuser@linuxvm" 23 | } 24 | ] 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /pkg/engine/testdata/v20160930/defaults.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "2016-09-30", 3 | "properties": { 4 | "masterProfile": { 5 | "count": 3, 6 | "dnsPrefix": "masterdns1" 7 | }, 8 | "agentPoolProfiles": [ 9 | { 10 | "name": "agentprivate", 11 | "count": 3, 12 | "vmSize": "Standard_D2_v2", 13 | "dnsPrefix": "test-dcos-pool", 14 | "osType": "Linux" 15 | } 16 | ], 17 | "linuxProfile": { 18 | "adminUsername": "azureuser", 19 | "ssh": { 20 | "publicKeys": [ 21 | { 22 | "keyData": "ssh-rsa PUBLICKEY azureuser@linuxvm" 23 | } 24 | ] 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /pkg/engine/testdata/v20170131/defaults.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "2017-01-31", 3 | "properties": { 4 | "masterProfile": { 5 | "count": 3, 6 | "dnsPrefix": "masterdns1" 7 | }, 8 | "agentPoolProfiles": [ 9 | { 10 | "name": "agentprivate", 11 | "count": 3, 12 | "vmSize": "Standard_D2_v2", 13 | "dnsPrefix": "test-dcos-pool", 14 | "osType": "Linux" 15 | } 16 | ], 17 | "linuxProfile": { 18 | "adminUsername": "azureuser", 19 | "ssh": { 20 | "publicKeys": [ 21 | { 22 | "keyData": "ssh-rsa PUBLICKEY azureuser@linuxvm" 23 | } 24 | ] 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sort.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "sort" 5 | ) 6 | 7 | // Versions represents multiple versions. 8 | type Versions []Version 9 | 10 | // Len returns length of version collection 11 | func (s Versions) Len() int { 12 | return len(s) 13 | } 14 | 15 | // Swap swaps two versions inside the collection by its indices 16 | func (s Versions) Swap(i, j int) { 17 | s[i], s[j] = s[j], s[i] 18 | } 19 | 20 | // Less checks if version at index i is less than version at index j 21 | func (s Versions) Less(i, j int) bool { 22 | return s[i].LT(s[j]) 23 | } 24 | 25 | // Sort sorts a slice of versions 26 | func Sort(versions []Version) { 27 | sort.Sort(Versions(versions)) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/executor.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import "context" 4 | 5 | // Executor replace go keyword to start a new goroutine 6 | // the goroutine should cancel itself if the context passed in has been cancelled 7 | // the goroutine started by the executor, is owned by the executor 8 | // we can cancel all executors owned by the executor just by stop the executor itself 9 | // however Executor interface does not Stop method, the one starting and owning executor 10 | // should use the concrete type of executor, instead of this interface. 11 | type Executor interface { 12 | // Go starts a new goroutine controlled by the context 13 | Go(handler func(ctx context.Context)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sql.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "database/sql/driver" 5 | "fmt" 6 | ) 7 | 8 | // Scan implements the database/sql.Scanner interface. 9 | func (v *Version) Scan(src interface{}) (err error) { 10 | var str string 11 | switch src := src.(type) { 12 | case string: 13 | str = src 14 | case []byte: 15 | str = string(src) 16 | default: 17 | return fmt.Errorf("Version.Scan: cannot convert %T to string.", src) 18 | } 19 | 20 | if t, err := Parse(str); err == nil { 21 | *v = t 22 | } 23 | 24 | return 25 | } 26 | 27 | // Value implements the database/sql/driver.Valuer interface. 28 | func (v Version) Value() (driver.Value, error) { 29 | return v.String(), nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build arm64 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 21 | B syscall·RawSyscall(SB) 22 | 23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 24 | B syscall·RawSyscall6(SB) 25 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/tools/clientcmd/api/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | package api 19 | -------------------------------------------------------------------------------- /test/acse-conf/acse-regression-dcos.json: -------------------------------------------------------------------------------- 1 | { 2 | "deployments": [ 3 | { 4 | "cluster_definition": "dcos-releases/dcos1.9.json", 5 | "category": "version" 6 | }, 7 | { 8 | "cluster_definition": "disks-managed/dcos-preAttachedDisks-vmas.json", 9 | "category": "managed-disk" 10 | }, 11 | { 12 | "cluster_definition": "disks-managed/dcos-vmss.json", 13 | "category": "managed-disk" 14 | }, 15 | { 16 | "cluster_definition": "disks-storageaccount/dcos.json", 17 | "category": "managed-disk" 18 | }, 19 | { 20 | "cluster_definition": "vnet/dcosvnet.json", 21 | "category": "network" 22 | } 23 | ] 24 | } -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package logrus is a structured logger for Go, completely API compatible with the standard library logger. 3 | 4 | 5 | The simplest way to use Logrus is simply the package-level exported logger: 6 | 7 | package main 8 | 9 | import ( 10 | log "github.com/sirupsen/logrus" 11 | ) 12 | 13 | func main() { 14 | log.WithFields(log.Fields{ 15 | "animal": "walrus", 16 | "number": 1, 17 | "size": 10, 18 | }).Info("A walrus appears") 19 | } 20 | 21 | Output: 22 | time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 23 | 24 | For a full guide visit https://github.com/sirupsen/logrus 25 | */ 26 | package logrus 27 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/tools/clientcmd/api/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | package v1 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + uitoa(uint(-val)) 12 | } 13 | return uitoa(uint(val)) 14 | } 15 | 16 | func uitoa(val uint) string { 17 | var buf [32]byte // big enough for int64 18 | i := len(buf) - 1 19 | for val >= 10 { 20 | buf[i] = byte(val%10 + '0') 21 | i-- 22 | val /= 10 23 | } 24 | buf[i] = byte(val + '0') 25 | return string(buf[i:]) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,race 6 | 7 | package windows 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /pkg/api/v20170930/const.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package v20170930 5 | 6 | const ( 7 | // APIVersion is the version of this API 8 | APIVersion = "2017-09-30" 9 | ) 10 | 11 | // the orchestrators supported by 2017-07-01 12 | const ( 13 | // DCOS is the string constant for DCOS orchestrator type and defaults to DCOS187 14 | DCOS string = "DCOS" 15 | // Swarm is the string constant for the Swarm orchestrator type 16 | Swarm string = "Swarm" 17 | // Kubernetes is the string constant for the Kubernetes orchestrator type 18 | Kubernetes string = "Kubernetes" 19 | // DockerCE is the string constant for the Docker CE orchestrator type 20 | DockerCE string = "DockerCE" 21 | ) 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-bindata/go-bindata/stringwriter.go: -------------------------------------------------------------------------------- 1 | // This work is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication 2 | // license. Its contents can be found at: 3 | // http://creativecommons.org/publicdomain/zero/1.0/ 4 | 5 | package bindata 6 | 7 | import ( 8 | "io" 9 | ) 10 | 11 | const lowerHex = "0123456789abcdef" 12 | 13 | type StringWriter struct { 14 | io.Writer 15 | c int 16 | } 17 | 18 | func (w *StringWriter) Write(p []byte) (n int, err error) { 19 | if len(p) == 0 { 20 | return 21 | } 22 | 23 | buf := []byte(`\x00`) 24 | var b byte 25 | 26 | for n, b = range p { 27 | buf[2] = lowerHex[b/16] 28 | buf[3] = lowerHex[b%16] 29 | w.Writer.Write(buf) 30 | w.c++ 31 | } 32 | 33 | n++ 34 | 35 | return 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_true_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | "github.com/onsi/gomega/format" 6 | ) 7 | 8 | type BeTrueMatcher struct { 9 | } 10 | 11 | func (matcher *BeTrueMatcher) Match(actual interface{}) (success bool, err error) { 12 | if !isBool(actual) { 13 | return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) 14 | } 15 | 16 | return actual.(bool), nil 17 | } 18 | 19 | func (matcher *BeTrueMatcher) FailureMessage(actual interface{}) (message string) { 20 | return format.Message(actual, "to be true") 21 | } 22 | 23 | func (matcher *BeTrueMatcher) NegatedFailureMessage(actual interface{}) (message string) { 24 | return format.Message(actual, "not to be true") 25 | } 26 | -------------------------------------------------------------------------------- /packer.mk: -------------------------------------------------------------------------------- 1 | build-packer: 2 | @packer build -var-file=packer/settings.json packer/vhd-image-builder.json 3 | 4 | init-packer: 5 | @./packer/init-variables.sh 6 | 7 | az-login: 8 | az login --service-principal -u ${CLIENT_ID} -p ${CLIENT_SECRET} --tenant ${TENANT_ID} 9 | 10 | run-packer: az-login 11 | @packer version && $(MAKE) init-packer && ($(MAKE) build-packer | tee packer-output) 12 | 13 | az-copy: az-login 14 | azcopy --source "${OS_DISK_SAS}" --destination "${CLASSIC_BLOB}/${VHD_NAME}" --dest-sas "${CLASSIC_SAS_TOKEN}" 15 | 16 | generate-sas: az-login 17 | az storage container generate-sas --name vhds --permissions lr --connection-string "${CLASSIC_SA_CONNECTION_STRING}" --start ${START_DATE} --expiry ${EXPIRY_DATE} | tr -d '"' | tee -a vhd-sas && cat vhd-sas -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_false_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | "github.com/onsi/gomega/format" 6 | ) 7 | 8 | type BeFalseMatcher struct { 9 | } 10 | 11 | func (matcher *BeFalseMatcher) Match(actual interface{}) (success bool, err error) { 12 | if !isBool(actual) { 13 | return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) 14 | } 15 | 16 | return actual == false, nil 17 | } 18 | 19 | func (matcher *BeFalseMatcher) FailureMessage(actual interface{}) (message string) { 20 | return format.Message(actual, "to be false") 21 | } 22 | 23 | func (matcher *BeFalseMatcher) NegatedFailureMessage(actual interface{}) (message string) { 24 | return format.Message(actual, "not to be false") 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/const_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // This code was translated into a form compatible with 6a from the public 6 | // domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html 7 | 8 | // +build amd64,!gccgo,!appengine 9 | 10 | // These constants cannot be encoded in non-MOVQ immediates. 11 | // We access them directly from memory instead. 12 | 13 | DATA ·_121666_213(SB)/8, $996687872 14 | GLOBL ·_121666_213(SB), 8, $8 15 | 16 | DATA ·_2P0(SB)/8, $0xFFFFFFFFFFFDA 17 | GLOBL ·_2P0(SB), 8, $8 18 | 19 | DATA ·_2P1234(SB)/8, $0xFFFFFFFFFFFFE 20 | GLOBL ·_2P1234(SB), 8, $8 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/file_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import ( 8 | "os" 9 | "syscall" 10 | ) 11 | 12 | // FIXME: unexported function from os 13 | // syscallMode returns the syscall-specific mode bits from Go's portable mode bits. 14 | func syscallMode(i os.FileMode) (o uint32) { 15 | o |= uint32(i.Perm()) 16 | if i&os.ModeSetuid != 0 { 17 | o |= syscall.S_ISUID 18 | } 19 | if i&os.ModeSetgid != 0 { 20 | o |= syscall.S_ISGID 21 | } 22 | if i&os.ModeSticky != 0 { 23 | o |= syscall.S_ISVTX 24 | } 25 | // No mapping for Go's ModeTemporary (plan9 only). 26 | return 27 | } 28 | -------------------------------------------------------------------------------- /pkg/api/v20160330/const.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. 3 | 4 | package v20160330 5 | 6 | const ( 7 | // APIVersion is the version of this API 8 | APIVersion = "2016-03-30" 9 | ) 10 | 11 | // v20160330 supports orchestrators Mesos, Swarm, DCOS 12 | const ( 13 | Mesos string = "Mesos" 14 | Swarm string = "Swarm" 15 | DCOS string = "DCOS" 16 | ) 17 | 18 | // v20160330 supports OSTypes Windows and Linux 19 | const ( 20 | Windows OSType = "Windows" 21 | Linux OSType = "Linux" 22 | ) 23 | 24 | // validation values 25 | const ( 26 | // MinAgentCount are the minimum number of agents 27 | MinAgentCount = 1 28 | // MaxAgentCount are the maximum number of agents 29 | MaxAgentCount = 100 30 | ) 31 | -------------------------------------------------------------------------------- /vendor/github.com/google/gofuzz/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 Google Inc. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package fuzz is a library for populating go objects with random values. 18 | package fuzz 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,race linux,race freebsd,race 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /parts/k8s/kubernetesjumpboxcustomdata.yml: -------------------------------------------------------------------------------- 1 | #cloud-config 2 | 3 | write_files: 4 | 5 | - path: "/opt/azure/containers/provision_source.sh" 6 | permissions: "0744" 7 | encoding: gzip 8 | owner: "root" 9 | content: !!binary | 10 | {{WrapAsVariable "provisionSource"}} 11 | 12 | - path: "/home/{{WrapAsParameter "jumpboxUsername"}}/.kube/config" 13 | permissions: "0644" 14 | owner: "root" 15 | content: | 16 | {{WrapAsVariable "kubeconfig"}} 17 | 18 | runcmd: 19 | - . /opt/azure/containers/provision_source.sh 20 | - retrycmd_if_failure 10 5 10 curl -LO https://storage.googleapis.com/kubernetes-release/release/v{{.OrchestratorProfile.OrchestratorVersion}}/bin/linux/amd64/kubectl 21 | - chmod +x ./kubectl 22 | - sudo mv ./kubectl /usr/local/bin/kubectl -------------------------------------------------------------------------------- /pkg/engine/testdata/v20160330/dcos.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "2016-03-30", 3 | "properties": { 4 | "orchestratorProfile": { 5 | "orchestratorType": "DCOS" 6 | }, 7 | "masterProfile": { 8 | "count": 3, 9 | "dnsPrefix": "masterdns1" 10 | }, 11 | "agentPoolProfiles": [ 12 | { 13 | "name": "agentprivate", 14 | "count": 3, 15 | "vmSize": "Standard_D2_v2", 16 | "dnsPrefix": "test-dcos-pool", 17 | "osType": "Linux" 18 | } 19 | ], 20 | "linuxProfile": { 21 | "adminUsername": "azureuser", 22 | "ssh": { 23 | "publicKeys": [ 24 | { 25 | "keyData": "ssh-rsa PUBLICKEY azureuser@linuxvm" 26 | } 27 | ] 28 | } 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /pkg/engine/testdata/v20160930/dcos.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "2016-09-30", 3 | "properties": { 4 | "orchestratorProfile": { 5 | "orchestratorType": "DCOS" 6 | }, 7 | "masterProfile": { 8 | "count": 3, 9 | "dnsPrefix": "masterdns1" 10 | }, 11 | "agentPoolProfiles": [ 12 | { 13 | "name": "agentprivate", 14 | "count": 3, 15 | "vmSize": "Standard_D2_v2", 16 | "dnsPrefix": "test-dcos-pool", 17 | "osType": "Linux" 18 | } 19 | ], 20 | "linuxProfile": { 21 | "adminUsername": "azureuser", 22 | "ssh": { 23 | "publicKeys": [ 24 | { 25 | "keyData": "ssh-rsa PUBLICKEY azureuser@linuxvm" 26 | } 27 | ] 28 | } 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /pkg/engine/testdata/v20170131/dcos.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "2017-01-31", 3 | "properties": { 4 | "orchestratorProfile": { 5 | "orchestratorType": "DCOS" 6 | }, 7 | "masterProfile": { 8 | "count": 3, 9 | "dnsPrefix": "masterdns1" 10 | }, 11 | "agentPoolProfiles": [ 12 | { 13 | "name": "agentprivate", 14 | "count": 3, 15 | "vmSize": "Standard_D2_v2", 16 | "dnsPrefix": "test-dcos-pool", 17 | "osType": "Linux" 18 | } 19 | ], 20 | "linuxProfile": { 21 | "adminUsername": "azureuser", 22 | "ssh": { 23 | "publicKeys": [ 24 | { 25 | "keyData": "ssh-rsa PUBLICKEY azureuser@linuxvm" 26 | } 27 | ] 28 | } 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Anton Povarov 2 | Clayton Coleman 3 | Denis Smirnov 4 | DongYun Kang 5 | Dwayne Schultz 6 | Georg Apitz 7 | Gustav Paul 8 | Johan Brandhorst 9 | John Shahid 10 | John Tuley 11 | Laurent 12 | Patrick Lee 13 | Sergio Arbeo 14 | Stephen J Day 15 | Tamir Duberstein 16 | Todd Eisenberger 17 | Tormod Erevik Lea 18 | Walter Schulze 19 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/apps/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | package v1 // import "k8s.io/api/apps/v1" 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/batch/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | package v1 // import "k8s.io/api/batch/v1" 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/storage/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +groupName=storage.k8s.io 19 | // +k8s:openapi-gen=true 20 | package v1 21 | -------------------------------------------------------------------------------- /parts/agentoutputs.t: -------------------------------------------------------------------------------- 1 | {{if IsPublic .Ports}} 2 | {{ if not IsKubernetes }} 3 | "{{.Name}}FQDN": { 4 | "type": "string", 5 | "value": "[reference(concat('Microsoft.Network/publicIPAddresses/', variables('{{.Name}}IPAddressName'))).dnsSettings.fqdn]" 6 | }, 7 | {{end}} 8 | {{end}} 9 | {{if and .IsAvailabilitySets .IsStorageAccount}} 10 | "{{.Name}}StorageAccountOffset": { 11 | "type": "int", 12 | "value": "[variables('{{.Name}}StorageAccountOffset')]" 13 | }, 14 | "{{.Name}}StorageAccountCount": { 15 | "type": "int", 16 | "value": "[variables('{{.Name}}StorageAccountsCount')]" 17 | }, 18 | "{{.Name}}SubnetName": { 19 | "type": "string", 20 | "value": "[variables('{{.Name}}SubnetName')]" 21 | }, 22 | {{end}} -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/authentication/v1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/authorization/v1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/context/go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.9 6 | 7 | package context 8 | 9 | import "context" // standard library's context, as of Go 1.7 10 | 11 | // A Context carries a deadline, a cancelation signal, and other values across 12 | // API boundaries. 13 | // 14 | // Context's methods may be called by multiple goroutines simultaneously. 15 | type Context = context.Context 16 | 17 | // A CancelFunc tells an operation to abandon its work. 18 | // A CancelFunc does not wait for the work to stop. 19 | // After the first call, subsequent calls to a CancelFunc do nothing. 20 | type CancelFunc = context.CancelFunc 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_s390x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build s390x 6 | // +build linux 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for s390x, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | BR syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | BR syscall·Syscall6(SB) 23 | 24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 25 | BR syscall·RawSyscall(SB) 26 | 27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 28 | BR syscall·RawSyscall6(SB) 29 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/apps/v1beta1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | package v1beta1 // import "k8s.io/api/apps/v1beta1" 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/apps/v1beta2/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | package v1beta2 // import "k8s.io/api/apps/v1beta2" 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/autoscaling/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | package v1 // import "k8s.io/api/autoscaling/v1" 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/batch/v1beta1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | package v1beta1 // import "k8s.io/api/batch/v1beta1" 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1beta1 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1beta1 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/certificates/v1beta1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1beta1 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go18.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.8 6 | 7 | package http2 8 | 9 | import ( 10 | "io" 11 | "net/http" 12 | ) 13 | 14 | func configureServer18(h1 *http.Server, h2 *Server) error { 15 | // No IdleTimeout to sync prior to Go 1.8. 16 | return nil 17 | } 18 | 19 | func shouldLogPanic(panicValue interface{}) bool { 20 | return panicValue != nil 21 | } 22 | 23 | func reqGetBody(req *http.Request) func() (io.ReadCloser, error) { 24 | return nil 25 | } 26 | 27 | func reqBodyIsNoBody(io.ReadCloser) bool { return false } 28 | 29 | func go18httpNoBody() io.ReadCloser { return nil } // for tests only 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build ppc64 ppc64le 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for ppc64, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | BR syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | BR syscall·Syscall6(SB) 23 | 24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 25 | BR syscall·RawSyscall(SB) 26 | 27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 28 | BR syscall·RawSyscall6(SB) 29 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/batch/v2alpha1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | package v2alpha1 // import "k8s.io/api/batch/v2alpha1" 21 | -------------------------------------------------------------------------------- /examples/k8s-upgrade/k8s-upgrade.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # some tests set EXPECTED_ORCHESTRATOR_VERSION in .env files 6 | ENV_FILE="${CLUSTER_DEFINITION}.env" 7 | if [ -e "${ENV_FILE}" ]; then 8 | source "${ENV_FILE}" 9 | fi 10 | 11 | [[ ! -z "${EXPECTED_ORCHESTRATOR_VERSION:-}" ]] || (echo "Must specify EXPECTED_ORCHESTRATOR_VERSION" && exit 1) 12 | 13 | OUTPUT="_output/${INSTANCE_NAME}" 14 | 15 | ./bin/aks-engine upgrade \ 16 | --subscription-id ${SUBSCRIPTION_ID} \ 17 | --deployment-dir ${OUTPUT} \ 18 | --location ${LOCATION} \ 19 | --resource-group ${RESOURCE_GROUP} \ 20 | --upgrade-version ${EXPECTED_ORCHESTRATOR_VERSION} \ 21 | --auth-method client_secret \ 22 | --client-id ${SERVICE_PRINCIPAL_CLIENT_ID} \ 23 | --client-secret ${SERVICE_PRINCIPAL_CLIENT_SECRET} 24 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package colorable 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | _ "github.com/mattn/go-isatty" 10 | ) 11 | 12 | // NewColorable return new instance of Writer which handle escape sequence. 13 | func NewColorable(file *os.File) io.Writer { 14 | if file == nil { 15 | panic("nil passed instead of *os.File to NewColorable()") 16 | } 17 | 18 | return file 19 | } 20 | 21 | // NewColorableStdout return new instance of Writer which handle escape sequence for stdout. 22 | func NewColorableStdout() io.Writer { 23 | return os.Stdout 24 | } 25 | 26 | // NewColorableStderr return new instance of Writer which handle escape sequence for stderr. 27 | func NewColorableStderr() io.Writer { 28 | return os.Stderr 29 | } 30 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/extensions/v1beta1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | package v1beta1 // import "k8s.io/api/extensions/v1beta1" 21 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "github.com/onsi/gomega/format" 5 | "reflect" 6 | ) 7 | 8 | type BeZeroMatcher struct { 9 | } 10 | 11 | func (matcher *BeZeroMatcher) Match(actual interface{}) (success bool, err error) { 12 | if actual == nil { 13 | return true, nil 14 | } 15 | zeroValue := reflect.Zero(reflect.TypeOf(actual)).Interface() 16 | 17 | return reflect.DeepEqual(zeroValue, actual), nil 18 | 19 | } 20 | 21 | func (matcher *BeZeroMatcher) FailureMessage(actual interface{}) (message string) { 22 | return format.Message(actual, "to be zero-valued") 23 | } 24 | 25 | func (matcher *BeZeroMatcher) NegatedFailureMessage(actual interface{}) (message string) { 26 | return format.Message(actual, "not to be zero-valued") 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for arm, Linux 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 23 | B syscall·RawSyscall(SB) 24 | 25 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 26 | B syscall·RawSyscall6(SB) 27 | 28 | TEXT ·seek(SB),NOSPLIT,$0-32 29 | B syscall·seek(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_mips64x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build mips64 mips64le 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for mips64, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | JMP syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | JMP syscall·Syscall6(SB) 23 | 24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 25 | JMP syscall·RawSyscall(SB) 26 | 27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 28 | JMP syscall·RawSyscall6(SB) 29 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/autoscaling/v2beta1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | package v2beta1 // import "k8s.io/api/autoscaling/v2beta1" 21 | -------------------------------------------------------------------------------- /examples/vnet/README.md: -------------------------------------------------------------------------------- 1 | # Microsoft Azure Kubernetes Engine - Custom VNET 2 | 3 | ## Overview 4 | 5 | These examples show you how to build a customized Kubernetes cluster on Microsoft Azure where you can provide your own VNET. 6 | 7 | To try: 8 | 9 | 1. first deploy a custom vnet. An example of an arm template that does this is under directory vnetarmtemplate. 10 | 2. next configure the example templates and deploy according to the examples: 11 | 1. **kubernetes.json** - deploying and using [Kubernetes](../../docs/kubernetes/features.md#feat-custom-vnet) 12 | 2. **dcos.json** - deploying and using [DC/OS](../../docs/dcos.md) 13 | 3. **swarm.json** - deploying and using [Swarm](../../docs/swarm.md) 14 | 4. **swarmmodevnet.json** - deploying and using [Swarm Mode](../../docs/swarmmode.md) 15 | -------------------------------------------------------------------------------- /pkg/engine/testdata/agentPoolOnly/v20170831/agents.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "2017-08-31", 3 | "properties": { 4 | "dnsPrefix": "agents006", 5 | "fqdn": "agents006.azmk8s.io", 6 | "kubernetesVersion": "1.7.16", 7 | "agentPoolProfiles": [ 8 | { 9 | "name": "agentpool1", 10 | "count": 2, 11 | "vmSize": "Standard_D2_v2" 12 | } 13 | ], 14 | "linuxProfile": { 15 | "adminUsername": "azureuser", 16 | "ssh": { 17 | "publicKeys": [ 18 | { 19 | "keyData": "ssh-rsa PUBLICKEY azureuser@linuxvm" 20 | } 21 | ] 22 | } 23 | }, 24 | "servicePrincipalProfile": { 25 | "clientID": "ServicePrincipalClientID", 26 | "secret": "myServicePrincipalClientSecret" 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/googleapis/gnostic/compiler/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All Rights Reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // Package compiler provides support functions to generated compiler code. 16 | package compiler 17 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated clientset. 20 | package kubernetes 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/batch/v1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1 20 | 21 | type JobExpansion interface{} 22 | -------------------------------------------------------------------------------- /examples/kubernetes.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "vlabs", 3 | "properties": { 4 | "orchestratorProfile": { 5 | "orchestratorType": "Kubernetes" 6 | }, 7 | "masterProfile": { 8 | "count": 1, 9 | "dnsPrefix": "", 10 | "vmSize": "Standard_D2_v2" 11 | }, 12 | "agentPoolProfiles": [ 13 | { 14 | "name": "agentpool1", 15 | "count": 2, 16 | "vmSize": "Standard_D2_v2" 17 | } 18 | ], 19 | "linuxProfile": { 20 | "adminUsername": "azureuser", 21 | "ssh": { 22 | "publicKeys": [ 23 | { 24 | "keyData": "" 25 | } 26 | ] 27 | } 28 | }, 29 | "servicePrincipalProfile": { 30 | "clientId": "", 31 | "secret": "" 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /test/cluster-tests/dcos/marathon.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "web", 3 | "container": { 4 | "type": "DOCKER", 5 | "docker": { 6 | "image": "yeasy/simple-web", 7 | "network": "BRIDGE", 8 | "portMappings": [ 9 | { "hostPort": 0, "containerPort": 80, "servicePort": 10000 } 10 | ], 11 | "forcePullImage":true 12 | } 13 | }, 14 | "instances": 3, 15 | "cpus": 0.1, 16 | "mem": 65, 17 | "healthChecks": [{ 18 | "protocol": "HTTP", 19 | "path": "/", 20 | "portIndex": 0, 21 | "timeoutSeconds": 10, 22 | "gracePeriodSeconds": 10, 23 | "intervalSeconds": 2, 24 | "maxConsecutiveFailures": 10 25 | }], 26 | "labels":{ 27 | "HAPROXY_GROUP":"external", 28 | "HAPROXY_0_VHOST":"{agentFQDN}", 29 | "HAPROXY_0_MODE":"http" 30 | } 31 | } -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/flock.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux 12 | // systems by flock_linux_32bit.go to be SYS_FCNTL64. 13 | var fcntl64Syscall uintptr = SYS_FCNTL 14 | 15 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 16 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 17 | _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk))) 18 | if errno == 0 { 19 | return nil 20 | } 21 | return errno 22 | } 23 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/types/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package types implements various generic types used throughout kubernetes. 18 | package types // import "k8s.io/apimachinery/pkg/types" 19 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/import.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // This file exists to enforce this clientset's vanity import path. 18 | 19 | package kubernetes // import "k8s.io/client-go/kubernetes" 20 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // +build !appengine 3 | 4 | package colorable 5 | 6 | import ( 7 | "io" 8 | "os" 9 | 10 | _ "github.com/mattn/go-isatty" 11 | ) 12 | 13 | // NewColorable return new instance of Writer which handle escape sequence. 14 | func NewColorable(file *os.File) io.Writer { 15 | if file == nil { 16 | panic("nil passed instead of *os.File to NewColorable()") 17 | } 18 | 19 | return file 20 | } 21 | 22 | // NewColorableStdout return new instance of Writer which handle escape sequence for stdout. 23 | func NewColorableStdout() io.Writer { 24 | return os.Stdout 25 | } 26 | 27 | // NewColorableStderr return new instance of Writer which handle escape sequence for stderr. 28 | func NewColorableStderr() io.Writer { 29 | return os.Stderr 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/networking/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | // +groupName=networking.k8s.io 20 | package v1 // import "k8s.io/api/networking/v1" 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/rbac/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | // +groupName=rbac.authorization.k8s.io 21 | package v1 // import "k8s.io/api/rbac/v1" 22 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/errors/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package errors provides detailed error types for api field validation. 18 | package errors // import "k8s.io/apimachinery/pkg/api/errors" 19 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/sets/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // This file was autogenerated by set-gen. Do not edit it manually! 18 | 19 | // Package sets has auto-generated set types. 20 | package sets 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/apps/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/core/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/rbac/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1 21 | -------------------------------------------------------------------------------- /extensions/hello-world-k8s/README.md: -------------------------------------------------------------------------------- 1 | # hello-world-k8s Extension 2 | 3 | ***Currently doesn't work*** 4 | 5 | Sample hello-world extension. Calls the following on the master: 6 | 7 | ``` 8 | kubectl run hello-world --quiet --image=busybox --restart=OnFailure -- echo "Hello Kubernetes!" 9 | ``` 10 | 11 | You can validate that the extension was run by running: 12 | ``` 13 | kubectl get pods --show-all 14 | kubectl logs 15 | ``` 16 | 17 | # Configuration 18 | |Name|Required|Acceptable Value| 19 | |---|---|---| 20 | |name|yes|hello-world-k8s| 21 | |version|yes|v1| 22 | |extensionParameters|no|| 23 | |rootURL|optional|| 24 | 25 | # Example 26 | ``` javascript 27 | { "name": "hello-world-k8s", "version": "v1" } 28 | ``` 29 | 30 | # Supported Orchestrators 31 | Kubernetes -------------------------------------------------------------------------------- /parts/k8s/manifests/kubernetesmaster-kube-addon-manager.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: kube-addon-manager 5 | namespace: kube-system 6 | version: v1 7 | spec: 8 | hostNetwork: true 9 | containers: 10 | - name: kube-addon-manager 11 | image: 12 | imagePullPolicy: IfNotPresent 13 | resources: 14 | requests: 15 | cpu: 5m 16 | memory: 50Mi 17 | volumeMounts: 18 | - name: addons 19 | mountPath: /etc/kubernetes/addons 20 | readOnly: true 21 | - name: msi 22 | mountPath: /var/lib/waagent/ManagedIdentity-Settings 23 | readOnly: true 24 | volumes: 25 | - name: addons 26 | hostPath: 27 | path: /etc/kubernetes/addons 28 | - name: msi 29 | hostPath: 30 | path: /var/lib/waagent/ManagedIdentity-Settings 31 | -------------------------------------------------------------------------------- /pkg/engine/testdata/agentPoolOnly/v20180331/agentsWithOnlyNetworkPlugin.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiVersion": "2018-03-31", 3 | "properties": { 4 | "dnsPrefix": "agents006", 5 | "fqdn": "agents006.azmk8s.io", 6 | "kubernetesVersion": "1.8.15", 7 | "agentPoolProfiles": [ 8 | { 9 | "name": "agentpool1", 10 | "count": 1, 11 | "vmSize": "Standard_D2_v2", 12 | "vnetSubnetID": "/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" 13 | } 14 | ], 15 | "servicePrincipalProfile": { 16 | "clientID": "ServicePrincipalClientID", 17 | "secret": "myServicePrincipalClientSecret" 18 | }, 19 | "networkProfile": { 20 | "networkPlugin": "kubenet" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | "github.com/onsi/gomega/format" 6 | ) 7 | 8 | type BeEmptyMatcher struct { 9 | } 10 | 11 | func (matcher *BeEmptyMatcher) Match(actual interface{}) (success bool, err error) { 12 | length, ok := lengthOf(actual) 13 | if !ok { 14 | return false, fmt.Errorf("BeEmpty matcher expects a string/array/map/channel/slice. Got:\n%s", format.Object(actual, 1)) 15 | } 16 | 17 | return length == 0, nil 18 | } 19 | 20 | func (matcher *BeEmptyMatcher) FailureMessage(actual interface{}) (message string) { 21 | return format.Message(actual, "to be empty") 22 | } 23 | 24 | func (matcher *BeEmptyMatcher) NegatedFailureMessage(actual interface{}) (message string) { 25 | return format.Message(actual, "not to be empty") 26 | } 27 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/events/v1beta1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | // +groupName=events.k8s.io 21 | package v1beta1 // import "k8s.io/api/events/v1beta1" 22 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/storage/v1beta1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +groupName=storage.k8s.io 19 | // +k8s:openapi-gen=true 20 | package v1beta1 // import "k8s.io/api/storage/v1beta1" 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/batch/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/batch/v1beta1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1beta1 20 | 21 | type CronJobExpansion interface{} 22 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/events/v1beta1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1beta1 20 | 21 | type EventExpansion interface{} 22 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/networking/v1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1 20 | 21 | type NetworkPolicyExpansion interface{} 22 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/storage/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/storage/v1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v1 20 | 21 | type StorageClassExpansion interface{} 22 | -------------------------------------------------------------------------------- /Dockerfile.k8swin: -------------------------------------------------------------------------------- 1 | FROM buildpack-deps:xenial 2 | 3 | RUN apt-get update \ 4 | && apt-get -y upgrade \ 5 | && apt-get -y install apt-transport-https ca-certificates make gcc gcc-aarch64-linux-gnu rsync python-pip build-essential curl openssl vim jq \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | ENV GO_VERSION 1.8.3 9 | 10 | RUN wget -q https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz \ 11 | && tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && rm go${GO_VERSION}.linux-amd64.tar.gz 12 | 13 | RUN curl -fsSL https://get.docker.com/ | sh 14 | 15 | ENV GOPATH /gopath 16 | ENV PATH "${PATH}:${GOPATH}/bin:/usr/local/go/bin" 17 | 18 | RUN go get -u github.com/go-bindata/go-bindata/go-bindata 19 | 20 | WORKDIR /gopath/src/k8s.io/kubernetes 21 | 22 | ADD . /gopath/src/k8s.io/kubernetes 23 | -------------------------------------------------------------------------------- /vendor/github.com/davecgh/go-spew/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2013 Dave Collins 2 | 3 | Permission to use, copy, modify, and distribute this software for any 4 | purpose with or without fee is hereby granted, provided that the above 5 | copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 10 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 12 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 13 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 | -------------------------------------------------------------------------------- /vendor/github.com/howeyc/gopass/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2012 Chris Howey 4 | 5 | Permission to use, copy, modify, and distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, Darwin 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/authentication/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:deepcopy-gen=package 18 | // +groupName=authentication.k8s.io 19 | // +k8s:openapi-gen=true 20 | package v1 // import "k8s.io/api/authentication/v1" 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/core/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:openapi-gen=true 18 | // +k8s:deepcopy-gen=package 19 | 20 | // Package v1 is the v1 version of the core API. 21 | package v1 // import "k8s.io/api/core/v1" 22 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/errors/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package errors implements various utility functions and types around errors. 18 | package errors // import "k8s.io/apimachinery/pkg/util/errors" 19 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1beta1 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta2/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1beta2 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/authentication/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/authorization/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/generated_expansion.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | package v2alpha1 20 | 21 | type CronJobExpansion interface{} 22 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/networking/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/kubernetes/typed/rbac/v1beta1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by client-gen. DO NOT EDIT. 18 | 19 | // This package has the automatically generated typed clients. 20 | package v1beta1 21 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map implements a thread safe map for go version below 1.9 using mutex 8 | type Map struct { 9 | lock sync.RWMutex 10 | data map[interface{}]interface{} 11 | } 12 | 13 | // NewMap creates a thread safe map 14 | func NewMap() *Map { 15 | return &Map{ 16 | data: make(map[interface{}]interface{}, 32), 17 | } 18 | } 19 | 20 | // Load is same as sync.Map Load 21 | func (m *Map) Load(key interface{}) (elem interface{}, found bool) { 22 | m.lock.RLock() 23 | elem, found = m.data[key] 24 | m.lock.RUnlock() 25 | return 26 | } 27 | 28 | // Load is same as sync.Map Store 29 | func (m *Map) Store(key interface{}, elem interface{}) { 30 | m.lock.Lock() 31 | m.data[key] = elem 32 | m.lock.Unlock() 33 | } 34 | --------------------------------------------------------------------------------