├── schemas └── latest │ ├── jsonSchemaVersion.txt │ ├── k8sApiVersion.txt │ └── ide-targeted │ └── README.md ├── 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 │ │ │ ├── .gitignore │ │ │ ├── Gopkg.lock │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── go_below_118.go │ │ │ └── go_above_118.go │ │ └── concurrent │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ ├── log.go │ │ │ └── executor.go │ ├── go-openapi │ │ ├── jsonpointer │ │ │ ├── .gitignore │ │ │ └── .editorconfig │ │ ├── jsonreference │ │ │ └── .gitignore │ │ └── swag │ │ │ ├── .gitignore │ │ │ ├── .gitattributes │ │ │ └── .editorconfig │ ├── mitchellh │ │ └── reflectwalk │ │ │ ├── .travis.yml │ │ │ ├── README.md │ │ │ ├── location.go │ │ │ └── location_string.go │ ├── json-iterator │ │ └── go │ │ │ ├── .codecov.yml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── test.sh │ │ │ ├── build.sh │ │ │ └── Gopkg.lock │ ├── lucasjones │ │ └── reggen │ │ │ └── .travis.yml │ ├── ghodss │ │ └── yaml │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── google │ │ ├── gnostic-models │ │ │ ├── jsonschema │ │ │ │ └── README.md │ │ │ ├── compiler │ │ │ │ └── README.md │ │ │ └── extensions │ │ │ │ └── README.md │ │ ├── gofuzz │ │ │ └── .travis.yml │ │ └── go-cmp │ │ │ └── cmp │ │ │ └── internal │ │ │ ├── flags │ │ │ └── flags.go │ │ │ └── diff │ │ │ └── debug_disable.go │ ├── josharian │ │ └── intern │ │ │ └── README.md │ ├── go-logr │ │ └── logr │ │ │ ├── CHANGELOG.md │ │ │ ├── .golangci.yaml │ │ │ └── CONTRIBUTING.md │ ├── santhosh-tekuri │ │ └── jsonschema │ │ │ ├── .travis.yml │ │ │ └── go.test.sh │ ├── golang │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── ptypes │ │ │ └── doc.go │ ├── hashicorp │ │ └── go-multierror │ │ │ ├── .travis.yml │ │ │ ├── sort.go │ │ │ └── flatten.go │ ├── stretchr │ │ └── testify │ │ │ └── assert │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── errors.go │ │ │ ├── assertion_compare_legacy.go │ │ │ ├── assertion_compare_can_convert.go │ │ │ └── forward_assertions.go │ ├── mailru │ │ └── easyjson │ │ │ └── jlexer │ │ │ ├── error.go │ │ │ └── bytestostr_nounsafe.go │ └── gogo │ │ └── protobuf │ │ └── AUTHORS ├── golang.org │ └── x │ │ ├── net │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ ├── config_pre_go124.go │ │ │ └── timer.go │ │ └── idna │ │ │ ├── pre_go118.go │ │ │ └── go118.go │ │ └── text │ │ └── secure │ │ └── bidirule │ │ ├── bidirule10.0.0.go │ │ └── bidirule9.0.0.go ├── k8s.io │ ├── kube-openapi │ │ └── pkg │ │ │ ├── util │ │ │ └── proto │ │ │ │ └── OWNERS │ │ │ ├── validation │ │ │ └── spec │ │ │ │ └── .gitignore │ │ │ └── internal │ │ │ └── third_party │ │ │ └── go-json-experiment │ │ │ └── json │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── utils │ │ ├── ptr │ │ │ ├── README.md │ │ │ └── OWNERS │ │ └── pointer │ │ │ ├── README.md │ │ │ └── OWNERS │ ├── klog │ │ └── v2 │ │ │ ├── .golangci.yaml │ │ │ ├── code-of-conduct.md │ │ │ ├── internal │ │ │ └── clock │ │ │ │ └── README.md │ │ │ ├── .gitignore │ │ │ ├── OWNERS │ │ │ ├── klog_file_others.go │ │ │ ├── RELEASE.md │ │ │ └── SECURITY_CONTACTS │ ├── apimachinery │ │ ├── pkg │ │ │ ├── util │ │ │ │ ├── mergepatch │ │ │ │ │ └── OWNERS │ │ │ │ ├── strategicpatch │ │ │ │ │ └── OWNERS │ │ │ │ └── validation │ │ │ │ │ └── OWNERS │ │ │ ├── api │ │ │ │ └── resource │ │ │ │ │ └── OWNERS │ │ │ └── apis │ │ │ │ └── meta │ │ │ │ └── v1 │ │ │ │ └── OWNERS │ │ └── third_party │ │ │ └── forked │ │ │ └── golang │ │ │ └── json │ │ │ └── OWNERS │ └── apiextensions-apiserver │ │ └── pkg │ │ └── apis │ │ └── apiextensions │ │ └── v1 │ │ └── .import-restrictions ├── sigs.k8s.io │ ├── json │ │ ├── OWNERS │ │ ├── code-of-conduct.md │ │ ├── SECURITY_CONTACTS │ │ └── doc.go │ └── yaml │ │ ├── code-of-conduct.md │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── yaml_go110.go │ │ ├── OWNERS │ │ ├── RELEASE.md │ │ └── SECURITY_CONTACTS ├── google.golang.org │ └── protobuf │ │ ├── internal │ │ ├── editiondefaults │ │ │ ├── editions_defaults.binpb │ │ │ └── defaults.go │ │ ├── flags │ │ │ ├── proto_legacy_enable.go │ │ │ └── proto_legacy_disable.go │ │ ├── impl │ │ │ ├── codec_map_go112.go │ │ │ ├── codec_unsafe.go │ │ │ └── enum.go │ │ ├── errors │ │ │ └── is_go113.go │ │ └── genid │ │ │ ├── doc.go │ │ │ ├── wrappers.go │ │ │ ├── map_entry.go │ │ │ └── empty_gen.go │ │ ├── encoding │ │ └── prototext │ │ │ └── doc.go │ │ ├── runtime │ │ └── protoiface │ │ │ └── legacy.go │ │ └── proto │ │ ├── proto_reflect.go │ │ └── proto_methods.go └── gopkg.in │ ├── yaml.v2 │ ├── .travis.yml │ └── NOTICE │ └── yaml.v3 │ └── NOTICE ├── test └── v200 │ ├── devfiles │ ├── events │ │ ├── eventsStart.yaml │ │ ├── eventNoItemMid.yaml │ │ ├── eventNoItemLast.yaml │ │ ├── allEvents.yaml │ │ └── eventInvalid.yaml │ ├── commands │ │ ├── commandStart.yaml │ │ ├── compositeNoId.yaml │ │ ├── compositeMinimum.yaml │ │ ├── compositeMixedCaseId.yaml │ │ ├── execNoId.yaml │ │ ├── applyNoComponent.yaml │ │ ├── applyNoId.yaml │ │ ├── applyMissingGroupKind.yaml │ │ ├── applyBadGroupKind.yaml │ │ ├── applyBadGroupIsDefault.yaml │ │ ├── applyMinimum.yaml │ │ ├── applyMixedCaseId.yaml │ │ ├── compositeMissingGroupKind.yaml │ │ ├── compositeBadGroupKind.yaml │ │ ├── compositeBadParallel.yaml │ │ ├── compositeBadGroupIsDefault.yaml │ │ ├── execMinimum.yaml │ │ ├── execMixedCaseId.yaml │ │ ├── execMissingEnvName.yaml │ │ ├── execNoCommand.yaml │ │ ├── execMissingEnvValue.yaml │ │ ├── execNoComponent.yaml │ │ ├── execMissingGroupKind.yaml │ │ ├── execBadGroupKind.yaml │ │ ├── execBadGroupIsDefault.yaml │ │ └── execBadHotReloadCapable.yaml │ ├── projects │ │ ├── projectsStart.yaml │ │ ├── projectsNoName.yaml │ │ ├── projectsNoGitOrZip.yaml │ │ ├── projectsZipNoLocation.yaml │ │ ├── projectsMixedCaseName.yaml │ │ ├── projectsGitAndZip.yaml │ │ ├── projectsGitNoRemotes.yaml │ │ ├── projectsMinimum.yaml │ │ └── projectsAll.yaml │ ├── components │ │ ├── componentStart.yaml │ │ ├── volumeNoName.yaml │ │ ├── containerNoName.yaml │ │ ├── kubernetesNoName.yaml │ │ ├── openshiftNoName.yaml │ │ ├── volumeMixedCaseName.yaml │ │ ├── kubernetesMixedCaseName.yaml │ │ ├── openshiftMixedCaseName.yaml │ │ ├── volumeAll.yaml │ │ ├── containerEndpointMixedCaseName.yaml │ │ ├── openshiftEndpointMixedCaseName.yaml │ │ ├── kubernetesEndpointMixedCaseName.yaml │ │ ├── containerEndpointLongName.yaml │ │ ├── openshiftEndpointLongName.yaml │ │ ├── kubernetesEndpointLongName.yaml │ │ ├── openshiftMinimum.yaml │ │ ├── kubernetesMinimum.yaml │ │ ├── kubernetesEndpointMissingName.yaml │ │ ├── openshiftEndpointMissingName.yaml │ │ ├── openshiftEndpointMissingPort.yaml │ │ ├── openshiftMissingInlinedAndUri.yaml │ │ ├── kubernetesEndpointMissingPort.yaml │ │ ├── containerMinimum.yaml │ │ ├── kubernetesMissingInlinedAndUri.yaml │ │ ├── containerMixedCaseName.yaml │ │ ├── openshiftBadEndpointSecure.yaml │ │ ├── kubernetesBadEndpointExposure.yaml │ │ ├── kubernetesBadEndpointProtocol.yaml │ │ ├── kubernetesBadEndpointSecure.yaml │ │ ├── openshiftBadEndpointExposure.yaml │ │ ├── openshiftBadEndpointProtocol.yaml │ │ ├── openshiftBothInlinedAndUri.yaml │ │ ├── kubernetesBothInlinedAndUri.yaml │ │ ├── containerEnvNoName.yaml │ │ ├── containerEnvNoValue.yaml │ │ ├── containerNoImage.yaml │ │ ├── containerEndpointMissingName.yaml │ │ ├── containerEndpointMissingPort.yaml │ │ └── containerVolumeMissingName.yaml │ ├── schemaVersion │ │ ├── schema.yaml │ │ └── schemabad.yaml │ ├── starterProjects │ │ ├── starterProjectsStart.yaml │ │ ├── starterProjectsMixedCaseName.yaml │ │ ├── starterProjectsNoGitOrZip.yaml │ │ ├── starterProjectsZipNoLocation.yaml │ │ ├── starterProjectsGitAndZip.yaml │ │ ├── starterProjectsGitNoRemotes.yaml │ │ ├── starterProjectsMinimum.yaml │ │ ├── starterProjectsNoName.yaml │ │ └── starterProjectsAll.yaml │ ├── parent │ │ ├── parentIdAndUri.yaml │ │ ├── parentMissingIdUriAndKubernetes.yaml │ │ ├── parentUriAndKubernetes.yaml │ │ ├── parentIdAndKubernetes.yaml │ │ └── parentMinimum.yaml │ └── metadata │ │ ├── metadataBadVersion.yaml │ │ └── metadataAll.yaml │ └── json │ ├── test-parent-overrides.json │ ├── test-dev-workspace-template-spec.json │ ├── test-devfile.json │ └── metadata-tests.json ├── generator ├── 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 │ │ │ │ ├── .gitignore │ │ │ │ ├── Gopkg.lock │ │ │ │ ├── .travis.yml │ │ │ │ ├── go_above_19.go │ │ │ │ ├── go_below_118.go │ │ │ │ └── go_above_118.go │ │ │ └── concurrent │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── go_above_19.go │ │ │ │ ├── test.sh │ │ │ │ ├── log.go │ │ │ │ └── executor.go │ │ ├── spf13 │ │ │ ├── pflag │ │ │ │ ├── .gitignore │ │ │ │ └── .travis.yml │ │ │ └── cobra │ │ │ │ ├── fish_completions.md │ │ │ │ ├── .mailmap │ │ │ │ ├── powershell_completions.md │ │ │ │ ├── MAINTAINERS │ │ │ │ └── .gitignore │ │ ├── elliotchance │ │ │ └── orderedmap │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ └── .editorconfig │ │ ├── json-iterator │ │ │ └── go │ │ │ │ ├── .codecov.yml │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── test.sh │ │ │ │ ├── build.sh │ │ │ │ └── Gopkg.lock │ │ ├── mattn │ │ │ ├── go-isatty │ │ │ │ ├── doc.go │ │ │ │ ├── renovate.json │ │ │ │ ├── .travis.yml │ │ │ │ ├── go.test.sh │ │ │ │ ├── isatty_others.go │ │ │ │ ├── isatty_tcgets.go │ │ │ │ ├── isatty_bsd.go │ │ │ │ └── isatty_plan9.go │ │ │ └── go-colorable │ │ │ │ ├── .travis.yml │ │ │ │ └── go.test.sh │ │ ├── gobuffalo │ │ │ └── flect │ │ │ │ ├── version.go │ │ │ │ ├── .gometalinter.json │ │ │ │ ├── rule.go │ │ │ │ ├── lower_upper.go │ │ │ │ ├── .gitignore │ │ │ │ ├── singular_rules.go │ │ │ │ ├── capitalize.go │ │ │ │ ├── SHOULDERS.md │ │ │ │ └── pascalize.go │ │ ├── iancoleman │ │ │ └── strcase │ │ │ │ ├── acronyms.go │ │ │ │ └── .travis.yml │ │ ├── coreos │ │ │ └── go-semver │ │ │ │ └── NOTICE │ │ ├── google │ │ │ └── gofuzz │ │ │ │ └── .travis.yml │ │ ├── go-logr │ │ │ └── logr │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── .golangci.yaml │ │ │ │ └── CONTRIBUTING.md │ │ ├── go-toolsmith │ │ │ └── astcopy │ │ │ │ └── .travis.yml │ │ ├── inconshreveable │ │ │ └── mousetrap │ │ │ │ └── trap_others.go │ │ └── gogo │ │ │ └── protobuf │ │ │ └── AUTHORS │ ├── golang.org │ │ └── x │ │ │ ├── net │ │ │ ├── http2 │ │ │ │ ├── .gitignore │ │ │ │ ├── config_pre_go124.go │ │ │ │ └── timer.go │ │ │ └── idna │ │ │ │ ├── pre_go118.go │ │ │ │ └── go118.go │ │ │ ├── sys │ │ │ └── unix │ │ │ │ ├── .gitignore │ │ │ │ ├── ptrace_ios.go │ │ │ │ ├── vgetrandom_unsupported.go │ │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ │ ├── endian_big.go │ │ │ │ ├── ptrace_darwin.go │ │ │ │ ├── constants.go │ │ │ │ ├── endian_little.go │ │ │ │ ├── mmap_nomremap.go │ │ │ │ ├── vgetrandom_linux.go │ │ │ │ ├── auxv_unsupported.go │ │ │ │ ├── aliases.go │ │ │ │ ├── readdirent_getdents.go │ │ │ │ ├── pagesize_unix.go │ │ │ │ ├── sysvshm_unix_other.go │ │ │ │ ├── asm_aix_ppc64.s │ │ │ │ ├── syscall_linux_gc_arm.go │ │ │ │ ├── asm_solaris_amd64.s │ │ │ │ ├── fcntl_linux_32bit.go │ │ │ │ ├── syscall_linux_alarm.go │ │ │ │ ├── gccgo_linux_amd64.go │ │ │ │ ├── syscall_linux_gc.go │ │ │ │ ├── syscall_hurd_386.go │ │ │ │ ├── sysvshm_linux.go │ │ │ │ ├── sockcmsg_dragonfly.go │ │ │ │ ├── race0.go │ │ │ │ ├── syscall_linux_gc_386.go │ │ │ │ └── syscall_linux_gccgo_arm.go │ │ │ ├── tools │ │ │ ├── internal │ │ │ │ ├── pkgbits │ │ │ │ │ ├── flags.go │ │ │ │ │ ├── support.go │ │ │ │ │ └── frames_go1.go │ │ │ │ ├── event │ │ │ │ │ ├── doc.go │ │ │ │ │ └── keys │ │ │ │ │ │ └── util.go │ │ │ │ ├── gcimporter │ │ │ │ │ ├── unified_yes.go │ │ │ │ │ ├── unified_no.go │ │ │ │ │ └── newInterface11.go │ │ │ │ └── versions │ │ │ │ │ ├── toolchain_go119.go │ │ │ │ │ ├── toolchain_go120.go │ │ │ │ │ ├── toolchain_go121.go │ │ │ │ │ ├── toolchain.go │ │ │ │ │ └── types.go │ │ │ └── go │ │ │ │ └── ast │ │ │ │ └── astutil │ │ │ │ └── util.go │ │ │ └── text │ │ │ └── secure │ │ │ └── bidirule │ │ │ ├── bidirule10.0.0.go │ │ │ └── bidirule9.0.0.go │ ├── k8s.io │ │ ├── utils │ │ │ ├── ptr │ │ │ │ ├── README.md │ │ │ │ └── OWNERS │ │ │ └── pointer │ │ │ │ ├── README.md │ │ │ │ └── OWNERS │ │ ├── klog │ │ │ └── v2 │ │ │ │ ├── .golangci.yaml │ │ │ │ ├── code-of-conduct.md │ │ │ │ ├── OWNERS │ │ │ │ ├── internal │ │ │ │ └── clock │ │ │ │ │ └── README.md │ │ │ │ ├── .gitignore │ │ │ │ ├── klog_file_others.go │ │ │ │ ├── RELEASE.md │ │ │ │ └── SECURITY_CONTACTS │ │ ├── apiextensions-apiserver │ │ │ └── pkg │ │ │ │ └── apis │ │ │ │ └── apiextensions │ │ │ │ ├── v1 │ │ │ │ └── .import-restrictions │ │ │ │ └── v1beta1 │ │ │ │ └── .import-restrictions │ │ └── apimachinery │ │ │ └── pkg │ │ │ ├── api │ │ │ └── resource │ │ │ │ └── OWNERS │ │ │ └── apis │ │ │ └── meta │ │ │ └── v1 │ │ │ └── OWNERS │ ├── sigs.k8s.io │ │ ├── json │ │ │ ├── OWNERS │ │ │ ├── code-of-conduct.md │ │ │ ├── SECURITY_CONTACTS │ │ │ └── doc.go │ │ └── yaml │ │ │ ├── code-of-conduct.md │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── yaml_go110.go │ │ │ ├── OWNERS │ │ │ ├── RELEASE.md │ │ │ └── SECURITY_CONTACTS │ └── gopkg.in │ │ └── yaml.v2 │ │ ├── .travis.yml │ │ └── NOTICE ├── header.go.txt └── validate │ └── zz_generated.markerhelp.go ├── pkg ├── validation │ └── variables │ │ └── test-fixtures │ │ ├── components │ │ ├── volume-output.yaml │ │ ├── env-output.yaml │ │ ├── image-empty.yaml │ │ ├── volume.yaml │ │ ├── endpoint-output.yaml │ │ ├── env.yaml │ │ ├── image-dockerfile-uri-output.yaml │ │ ├── image-dockerfile-uri.yaml │ │ ├── endpoint.yaml │ │ ├── image-dockerfile-registry-output.yaml │ │ ├── image-dockerfile-registry.yaml │ │ ├── image-dockerfile-git-output.yaml │ │ ├── image-dockerfile-git.yaml │ │ ├── container-output.yaml │ │ ├── openshift-kubernetes-output.yaml │ │ ├── openshift-kubernetes.yaml │ │ └── container.yaml │ │ ├── variables │ │ ├── variables-notreferenced.yaml │ │ └── variables-referenced.yaml │ │ ├── projects │ │ ├── zip-output.yaml │ │ ├── zip.yaml │ │ ├── starterproject-output.yaml │ │ ├── git-output.yaml │ │ ├── project-output.yaml │ │ ├── starterproject.yaml │ │ ├── git.yaml │ │ └── project.yaml │ │ └── commands │ │ ├── apply-output.yaml │ │ ├── composite-output.yaml │ │ ├── apply.yaml │ │ ├── composite.yaml │ │ ├── exec-output.yaml │ │ └── exec.yaml └── utils │ └── overriding │ └── test-fixtures │ ├── merges │ ├── no-parent │ │ ├── main.yaml │ │ ├── plugin.yaml │ │ └── result.yaml │ ├── duplicate-with-plugin │ │ ├── plugin.yaml │ │ ├── main.yaml │ │ └── result-error.txt │ ├── multiple-post-start │ │ ├── plugin.yaml │ │ ├── result.yaml │ │ └── main.yaml │ ├── no-duplicate │ │ ├── plugin.yaml │ │ ├── main.yaml │ │ ├── parent.yaml │ │ └── result.yaml │ ├── events-merge │ │ ├── parent.yaml │ │ ├── plugin.yaml │ │ └── main.yaml │ └── duplicate-with-parent │ │ ├── parent.yaml │ │ ├── main.yaml │ │ └── result-error.txt │ └── patches │ ├── kubernetes-component-union │ ├── patch.yaml │ ├── original.yaml │ └── result.yaml │ ├── update-remote │ ├── original.yaml │ ├── patch.yaml │ └── result.yaml │ ├── provision-remote │ ├── original.yaml │ ├── patch.yaml │ └── result.yaml │ ├── override-just-plugin │ ├── patch.yaml │ ├── original.yaml │ └── result.yaml │ ├── global-variables-and-attributes │ ├── original.yaml │ ├── patch.yaml │ └── result.yaml │ ├── global-variables-and-attributes-err │ ├── original.yaml │ ├── result-error.txt │ └── patch.yaml │ ├── add-command-and-component │ ├── result-error.txt │ └── patch.yaml │ ├── command-and-env │ └── patch.yaml │ └── image-component-union │ ├── patch.yaml │ ├── original.yaml │ └── result.yaml ├── .github ├── CODEOWNERS └── ISSUE_TEMPLATE │ └── config.yml ├── .che └── che-editor.yaml ├── .editorconfig ├── docs └── proposals │ └── registry │ └── lifecycle-doc.md ├── .vscode └── extensions.json ├── samples ├── devworkspaces │ ├── with-nodejs-parent-template.devworkspace.yaml │ └── with-nodejs-parent-devfile.devworkspace.yaml ├── devfiles │ ├── with-nodejs-parent.devfile.yaml │ └── utils │ │ └── deployment-manifest.yaml └── devfile-registry │ └── redhat-theia-vsx-template.devfile.yaml ├── .clomonitor.yml ├── MAINTAINERS.md └── license_header.txt /schemas/latest/jsonSchemaVersion.txt: -------------------------------------------------------------------------------- 1 | 2.3.0 -------------------------------------------------------------------------------- /schemas/latest/k8sApiVersion.txt: -------------------------------------------------------------------------------- 1 | v1alpha2 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /test/v200/devfiles/events/eventsStart.yaml: -------------------------------------------------------------------------------- 1 | events: 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/commandStart.yaml: -------------------------------------------------------------------------------- 1 | commands: 2 | -------------------------------------------------------------------------------- /test/v200/devfiles/projects/projectsStart.yaml: -------------------------------------------------------------------------------- 1 | projects: 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /generator/header.go.txt: -------------------------------------------------------------------------------- 1 | // Generated for the devfile generator 2 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generator/vendor/github.com/spf13/pflag/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/componentStart.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonpointer/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /generator/vendor/github.com/elliotchance/orderedmap/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/schemaVersion/schema.yaml: -------------------------------------------------------------------------------- 1 | schemaVersion: "2.0.0" 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonreference/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /test/v200/devfiles/schemaVersion/schemabad.yaml: -------------------------------------------------------------------------------- 1 | schemaVersion: "Invalid" 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/pkg/util/proto/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - apelisse 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/volumeNoName.yaml: -------------------------------------------------------------------------------- 1 | - volume: 2 | size: 12G 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/starterProjects/starterProjectsStart.yaml: -------------------------------------------------------------------------------- 1 | starterProjects: 2 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/volume-output.yaml: -------------------------------------------------------------------------------- 1 | size: "1Gi" 2 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/variables/variables-notreferenced.yaml: -------------------------------------------------------------------------------- 1 | abc: xyz 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | vendor 3 | Godeps 4 | .idea 5 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/lucasjones/reggen/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.5 5 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/pkg/validation/spec/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | coverage.out 3 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Global Owners 2 | * @AObuchow @dkwon17 @devfile/devfile-services-team 3 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/env-output.yaml: -------------------------------------------------------------------------------- 1 | name: "FOO" 2 | value: "BAR" 3 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/image-empty.yaml: -------------------------------------------------------------------------------- 1 | imageName: "myimage:xyz" 2 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/projects/zip-output.yaml: -------------------------------------------------------------------------------- 1 | zip: 2 | location: "/FOOBAR" 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerNoName.yaml: -------------------------------------------------------------------------------- 1 | - container: 2 | image: testImage 3 | -------------------------------------------------------------------------------- /generator/vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesNoName.yaml: -------------------------------------------------------------------------------- 1 | - kubernetes: 2 | inlined: testInlined 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftNoName.yaml: -------------------------------------------------------------------------------- 1 | - openshift: 2 | inlined: testInlined 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/volumeMixedCaseName.yaml: -------------------------------------------------------------------------------- 1 | - name: testVolume1 2 | volume: {} 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/parent/parentIdAndUri.yaml: -------------------------------------------------------------------------------- 1 | parent: 2 | id: test-plugin1 3 | uri: test-uri 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/parent/parentMissingIdUriAndKubernetes.yaml: -------------------------------------------------------------------------------- 1 | parent: 2 | registryUrl: test-url 3 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/commands/apply-output.yaml: -------------------------------------------------------------------------------- 1 | label: "1" 2 | component: component 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/compositeNoId.yaml: -------------------------------------------------------------------------------- 1 | - composite: 2 | group: 3 | kind: test 4 | -------------------------------------------------------------------------------- /generator/vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /test/v200/devfiles/metadata/metadataBadVersion.yaml: -------------------------------------------------------------------------------- 1 | metadata: 2 | name: test-metadata 3 | version: x.x.x 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/projects/projectsNoName.yaml: -------------------------------------------------------------------------------- 1 | - git: git-repo 2 | clonePath: /Users/test/projects 3 | -------------------------------------------------------------------------------- /test/v200/devfiles/projects/projectsNoGitOrZip.yaml: -------------------------------------------------------------------------------- 1 | - name: testproject1 2 | clonePath: /Users/test/projects 3 | -------------------------------------------------------------------------------- /generator/vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/commands/composite-output.yaml: -------------------------------------------------------------------------------- 1 | label: "1" 2 | commands: 3 | - FOO 4 | - BAR 5 | -------------------------------------------------------------------------------- /vendor/k8s.io/utils/ptr/README.md: -------------------------------------------------------------------------------- 1 | # Pointer 2 | 3 | This package provides some functions for pointer-based operations. 4 | -------------------------------------------------------------------------------- /vendor/k8s.io/utils/pointer/README.md: -------------------------------------------------------------------------------- 1 | # Pointer 2 | 3 | This package provides some functions for pointer-based operations. 4 | -------------------------------------------------------------------------------- /.che/che-editor.yaml: -------------------------------------------------------------------------------- 1 | id: che-incubator/che-code/insiders 2 | registryUrl: https://eclipse-che.github.io/che-plugin-registry/main/v3 -------------------------------------------------------------------------------- /generator/vendor/k8s.io/utils/ptr/README.md: -------------------------------------------------------------------------------- 1 | # Pointer 2 | 3 | This package provides some functions for pointer-based operations. 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesMixedCaseName.yaml: -------------------------------------------------------------------------------- 1 | - name: MixedCaseName 2 | kubernetes: 3 | inlined: testInlined -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/.gitattributes: -------------------------------------------------------------------------------- 1 | # gofmt always uses LF, whereas Git uses CRLF on Windows. 2 | *.go text eol=lf 3 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/utils/pointer/README.md: -------------------------------------------------------------------------------- 1 | # Pointer 2 | 3 | This package provides some functions for pointer-based operations. 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/compositeMinimum.yaml: -------------------------------------------------------------------------------- 1 | - id: compositetest1 2 | composite: 3 | group: 4 | kind: test 5 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftMixedCaseName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testOpenshift1" 2 | openshift: 3 | inlined: testInlined 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/projects/projectsZipNoLocation.yaml: -------------------------------------------------------------------------------- 1 | - name: testproject1 2 | zip: 3 | clonePath: /Users/test/projects 4 | -------------------------------------------------------------------------------- /vendor/github.com/ghodss/yaml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.3 4 | - 1.4 5 | script: 6 | - go test 7 | - go build 8 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/compositeMixedCaseId.yaml: -------------------------------------------------------------------------------- 1 | - id: compositeTest1 2 | composite: 3 | group: 4 | kind: test 5 | -------------------------------------------------------------------------------- /generator/vendor/github.com/gobuffalo/flect/version.go: -------------------------------------------------------------------------------- 1 | package flect 2 | 3 | //Version holds Flect version number 4 | const Version = "v0.1.6" 5 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execNoId.yaml: -------------------------------------------------------------------------------- 1 | - exec: 2 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 3 | component: api-tests 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/projects/projectsMixedCaseName.yaml: -------------------------------------------------------------------------------- 1 | - name: TestProject1 2 | git: 3 | remotes: 4 | origin: test-origin 5 | -------------------------------------------------------------------------------- /generator/vendor/github.com/iancoleman/strcase/acronyms.go: -------------------------------------------------------------------------------- 1 | package strcase 2 | 3 | var uppercaseAcronym = map[string]string{ 4 | "ID": "id", 5 | } 6 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/no-parent/main.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: test-component 3 | container: 4 | image: test-image 5 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/volumeAll.yaml: -------------------------------------------------------------------------------- 1 | - name: testvolume1 2 | volume: {} 3 | - name: testvolume2 4 | volume: 5 | size: 12G 6 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/json/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - deads2k 5 | - lavalamp 6 | - liggitt 7 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/json/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - deads2k 5 | - lavalamp 6 | - liggitt 7 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/volume.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | size: "{{size}}" 3 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/.golangci.yaml: -------------------------------------------------------------------------------- 1 | linters: 2 | disable-all: true 3 | enable: # sorted alphabetical 4 | - gofmt 5 | - misspell 6 | - revive 7 | -------------------------------------------------------------------------------- /test/v200/devfiles/parent/parentUriAndKubernetes.yaml: -------------------------------------------------------------------------------- 1 | parent: 2 | kubernetes: 3 | name: test-kubernetes 4 | namespace: test-namespace 5 | uri: test-uri 6 | -------------------------------------------------------------------------------- /test/v200/devfiles/starterProjects/starterProjectsMixedCaseName.yaml: -------------------------------------------------------------------------------- 1 | - name: StarterProject11 2 | git: 3 | remotes: 4 | origin: test-origin 5 | -------------------------------------------------------------------------------- /test/v200/devfiles/starterProjects/starterProjectsNoGitOrZip.yaml: -------------------------------------------------------------------------------- 1 | - name: starterproject11 2 | description: Test starter project 3 | subDir: test-subdir 4 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/klog/v2/.golangci.yaml: -------------------------------------------------------------------------------- 1 | linters: 2 | disable-all: true 3 | enable: # sorted alphabetical 4 | - gofmt 5 | - misspell 6 | - revive 7 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/duplicate-with-plugin/plugin.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - container: 3 | image: "aValue" 4 | name: "existing-in-plugin" 5 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/multiple-post-start/plugin.yaml: -------------------------------------------------------------------------------- 1 | events: 2 | postStart: 3 | - "event-one" 4 | - "event-two" 5 | - "event-three" 6 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/no-parent/plugin.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: test-plugin-component 3 | container: 4 | image: test-plugin-image 5 | -------------------------------------------------------------------------------- /test/v200/devfiles/parent/parentIdAndKubernetes.yaml: -------------------------------------------------------------------------------- 1 | parent: 2 | id: test-plugin1 3 | kubernetes: 4 | name: test-kubernetes 5 | namespace: test-namespace 6 | -------------------------------------------------------------------------------- /vendor/github.com/google/gnostic-models/jsonschema/README.md: -------------------------------------------------------------------------------- 1 | # jsonschema 2 | 3 | This directory contains code for reading, writing, and manipulating JSON 4 | schemas. 5 | -------------------------------------------------------------------------------- /generator/vendor/github.com/mattn/go-isatty/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "postUpdateOptions": [ 6 | "gomodTidy" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/endpoint-output.yaml: -------------------------------------------------------------------------------- 1 | name: endpoint1 2 | exposure: "public" 3 | protocol: "https" 4 | path : "/FOO" 5 | targetPort: 9999 6 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/mergepatch/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - pwittrock 5 | reviewers: 6 | - apelisse 7 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/env.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | name: "{{foo}}" 3 | value: "{{bar}}" 4 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/projects/zip.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | zip: 3 | location: "/{{foo}}{{bar}}" 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/starterProjects/starterProjectsZipNoLocation.yaml: -------------------------------------------------------------------------------- 1 | - name: starterproject1 2 | description: Test starter project 3 | subDir: test-subdir 4 | zip: 5 | -------------------------------------------------------------------------------- /vendor/github.com/google/gnostic-models/compiler/README.md: -------------------------------------------------------------------------------- 1 | # Compiler support code 2 | 3 | This directory contains compiler support code used by Gnostic and Gnostic 4 | extensions. 5 | -------------------------------------------------------------------------------- /vendor/github.com/google/gofuzz/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - master 8 | 9 | script: 10 | - go test -cover 11 | -------------------------------------------------------------------------------- /vendor/github.com/josharian/intern/README.md: -------------------------------------------------------------------------------- 1 | Docs: https://godoc.org/github.com/josharian/intern 2 | 3 | See also [Go issue 5160](https://golang.org/issue/5160). 4 | 5 | License: MIT 6 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/third_party/forked/golang/json/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - pwittrock 5 | reviewers: 6 | - apelisse 7 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/commands/apply.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | label: "{{version}}" 3 | component: component 4 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/projects/starterproject-output.yaml: -------------------------------------------------------------------------------- 1 | name: starterproject1 2 | zip: 3 | location: "/FOO" 4 | description: "FOOBAR is not BARFOO" 5 | subDir: "/FOO" 6 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/applyNoComponent.yaml: -------------------------------------------------------------------------------- 1 | - id: testapply 2 | apply: 3 | group: 4 | isDefault: true 5 | kind: test 6 | label: Test Apply command 7 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/applyNoId.yaml: -------------------------------------------------------------------------------- 1 | - apply: 2 | component: api-testing 3 | group: 4 | isDefault: true 5 | kind: test 6 | label: Test Apply test 7 | -------------------------------------------------------------------------------- /test/v200/devfiles/projects/projectsGitAndZip.yaml: -------------------------------------------------------------------------------- 1 | - name: testproject1 2 | git: 3 | remotes: 4 | origin: test-origin 5 | zip: 6 | location: git-repo.zip 7 | -------------------------------------------------------------------------------- /test/v200/devfiles/projects/projectsGitNoRemotes.yaml: -------------------------------------------------------------------------------- 1 | - name: testproject1 2 | git: 3 | checkoutFrom: 4 | remote: test-branch 5 | clonePath: /Users/test/projects 6 | -------------------------------------------------------------------------------- /generator/vendor/github.com/coreos/go-semver/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2018 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /generator/vendor/github.com/google/gofuzz/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - master 8 | 9 | script: 10 | - go test -cover 11 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/kubernetes-component-union/patch.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | 3 | 4 | - name: component-to-update 5 | kubernetes: 6 | uri: "componentToUpdateUri" 7 | -------------------------------------------------------------------------------- /generator/vendor/github.com/elliotchance/orderedmap/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - master 7 | 8 | script: 9 | - env GO111MODULE=on go test 10 | -------------------------------------------------------------------------------- /generator/vendor/github.com/spf13/cobra/fish_completions.md: -------------------------------------------------------------------------------- 1 | ## Generating Fish Completions For Your cobra.Command 2 | 3 | Please refer to [Shell Completions](shell_completions.md) for details. 4 | 5 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/projects/git-output.yaml: -------------------------------------------------------------------------------- 1 | git: 2 | checkoutFrom: 3 | revision: "FOO" 4 | remote: "BAR" 5 | remotes: 6 | "foo": "BAR" 7 | "FOOBAR": "BARFOO" 8 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/variables/variables-referenced.yaml: -------------------------------------------------------------------------------- 1 | tag: xyz 2 | version: "1" 3 | foo: FOO 4 | bar: BAR 5 | devnull: /dev/null 6 | size: "1Gi" 7 | uri: uri 8 | inlined: inlined 9 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/json/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/commands/composite.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | label: "{{version}}" 3 | commands: 4 | - FOO 5 | - BAR 6 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/applyMissingGroupKind.yaml: -------------------------------------------------------------------------------- 1 | - id: testapply 2 | apply: 3 | component: api-testing 4 | group: 5 | isDefault: true 6 | label: Test Apply command 7 | -------------------------------------------------------------------------------- /test/v200/devfiles/starterProjects/starterProjectsGitAndZip.yaml: -------------------------------------------------------------------------------- 1 | - name: starterproject11 2 | git: 3 | remotes: 4 | origin: test-origin 5 | zip: 6 | location: git-repo.zip 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | ## v1.0.0-rc1 4 | 5 | This is the first logged release. Major changes (including breaking changes) 6 | have occurred since earlier tags. 7 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/klog/v2/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/json/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/yaml/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/commands/exec-output.yaml: -------------------------------------------------------------------------------- 1 | component: component 2 | commandLine: tail -f /dev/null 3 | workingDir: "FOO" 4 | label: "1" 5 | env: 6 | - name: "FOO" 7 | value: "BAR" 8 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devfile/api/HEAD/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb -------------------------------------------------------------------------------- /generator/vendor/github.com/go-logr/logr/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | ## v1.0.0-rc1 4 | 5 | This is the first logged release. Major changes (including breaking changes) 6 | have occurred since earlier tags. 7 | -------------------------------------------------------------------------------- /generator/vendor/github.com/iancoleman/strcase/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.10.x 5 | - 1.11.x 6 | - 1.12.x 7 | - 1.13.x 8 | - 1.14.x 9 | - 1.15.x 10 | - master 11 | -------------------------------------------------------------------------------- /test/v200/devfiles/projects/projectsMinimum.yaml: -------------------------------------------------------------------------------- 1 | - name: testproject1 2 | git: 3 | remotes: 4 | origin: test-origin 5 | - name: testproject3 6 | zip: 7 | location: git-repo.zip 8 | -------------------------------------------------------------------------------- /generator/vendor/github.com/gobuffalo/flect/.gometalinter.json: -------------------------------------------------------------------------------- 1 | { 2 | "Enable": ["vet", "golint", "goimports", "deadcode", "gotype", "ineffassign", "misspell", "nakedret", "unconvert", "megacheck", "varcheck"] 3 | } 4 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/update-remote/original.yaml: -------------------------------------------------------------------------------- 1 | projects: 2 | - name: nodejs-sample 3 | git: 4 | remotes: 5 | origin: "https://github.com/che-samples/web-nodejs-sample.git" 6 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/update-remote/patch.yaml: -------------------------------------------------------------------------------- 1 | projects: 2 | - name: nodejs-sample 3 | git: 4 | remotes: 5 | origin: "https://github.com/gh-collaborator/web-nodejs-sample.git" 6 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/update-remote/result.yaml: -------------------------------------------------------------------------------- 1 | projects: 2 | - name: nodejs-sample 3 | git: 4 | remotes: 5 | origin: "https://github.com/gh-collaborator/web-nodejs-sample.git" 6 | -------------------------------------------------------------------------------- /test/v200/devfiles/events/eventNoItemMid.yaml: -------------------------------------------------------------------------------- 1 | postStart: 2 | - "ApplyThisPostStartCommand" 3 | preStart: 4 | preStop: 5 | - "ApplyThisPreStopCommand" 6 | postStop: 7 | - "ApplyThisPostStopCommand" 8 | -------------------------------------------------------------------------------- /vendor/github.com/santhosh-tekuri/jsonschema/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.1 5 | 6 | script: 7 | - ./go.test.sh 8 | 9 | after_success: 10 | - bash <(curl -s https://codecov.io/bash) 11 | -------------------------------------------------------------------------------- /vendor/k8s.io/utils/ptr/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - apelisse 5 | - stewart-yu 6 | - thockin 7 | reviewers: 8 | - apelisse 9 | - stewart-yu 10 | - thockin 11 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/projects/project-output.yaml: -------------------------------------------------------------------------------- 1 | name: project1 2 | clonePath: "/FOO" 3 | git: 4 | checkoutFrom: 5 | revision: "FOO" 6 | remotes: 7 | "foo": "BAR" 8 | "FOOBAR": "BARFOO" 9 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/applyBadGroupKind.yaml: -------------------------------------------------------------------------------- 1 | - id: testapply 2 | apply: 3 | component: api-testing 4 | group: 5 | isDefault: true 6 | kind: green 7 | label: Test Apply command 8 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerEndpointMixedCaseName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testcontainer2" 2 | container: 3 | image: testImage 4 | endpoints: 5 | - name: MixedCaseName 6 | targetPort: 1234 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/k8s.io/utils/pointer/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - apelisse 5 | - stewart-yu 6 | - thockin 7 | reviewers: 8 | - apelisse 9 | - stewart-yu 10 | - thockin 11 | -------------------------------------------------------------------------------- /generator/vendor/github.com/spf13/cobra/.mailmap: -------------------------------------------------------------------------------- 1 | Steve Francia 2 | Bjørn Erik Pedersen 3 | Fabiano Franz 4 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/utils/ptr/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - apelisse 5 | - stewart-yu 6 | - thockin 7 | reviewers: 8 | - apelisse 9 | - stewart-yu 10 | - thockin 11 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/no-duplicate/plugin.yaml: -------------------------------------------------------------------------------- 1 | variables: 2 | version3: plugin 3 | attributes: 4 | plugin: true 5 | components: 6 | - container: 7 | image: "aValue" 8 | name: "plugin-component" 9 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/image-dockerfile-uri-output.yaml: -------------------------------------------------------------------------------- 1 | imageName: "myimage:xyz" 2 | dockerfile: 3 | uri: "uri/Dockerfile" 4 | buildContext: /FOO/BAR 5 | args: 6 | - "-f" 7 | - "/dev/null" 8 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/applyBadGroupIsDefault.yaml: -------------------------------------------------------------------------------- 1 | - id: testapply 2 | apply: 3 | component: api-testing 4 | group: 5 | isDefault: fasle 6 | kind: test 7 | label: Test Apply command 8 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftEndpointMixedCaseName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift1" 2 | openshift: 3 | inlined: testInlined 4 | endpoints: 5 | - name: MixedCaseName 6 | targetPort: 1234 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.x 7 | 8 | branches: 9 | only: 10 | - master 11 | 12 | script: env GO111MODULE=on make test testrace 13 | -------------------------------------------------------------------------------- /vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/.import-restrictions: -------------------------------------------------------------------------------- 1 | inverseRules: 2 | # Allow use of this package in all k8s.io packages. 3 | - selectorRegexp: k8s[.]io 4 | allowedPrefixes: 5 | - '' 6 | -------------------------------------------------------------------------------- /docs/proposals/registry/lifecycle-doc.md: -------------------------------------------------------------------------------- 1 | # Lifecycle Maintenance of Devfile Registry Stacks Proposal 2 | 3 | All the details of this proposal are captured in this [document](https://github.com/devfile/registry/blob/main/LIFECYCLE.md) 4 | -------------------------------------------------------------------------------- /generator/vendor/github.com/spf13/cobra/powershell_completions.md: -------------------------------------------------------------------------------- 1 | # Generating PowerShell Completions For Your Own cobra.Command 2 | 3 | Please refer to [Shell Completions](shell_completions.md#powershell-completions) for details. 4 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/utils/pointer/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - apelisse 5 | - stewart-yu 6 | - thockin 7 | reviewers: 8 | - apelisse 9 | - stewart-yu 10 | - thockin 11 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/applyMinimum.yaml: -------------------------------------------------------------------------------- 1 | - id: testapplytest1 2 | apply: 3 | component: api-testing 4 | - id: testapplytest2 5 | apply: 6 | component: api-testing 7 | group: 8 | kind: test 9 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/applyMixedCaseId.yaml: -------------------------------------------------------------------------------- 1 | - id: testApplytest1 2 | apply: 3 | component: api-testing 4 | - id: testapplytest2 5 | apply: 6 | component: api-testing 7 | group: 8 | kind: test 9 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesEndpointMixedCaseName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes3" 2 | kubernetes: 3 | inlined: testInlined 4 | endpoints: 5 | - name: MixedCaseName 6 | targetPort: 1234 7 | -------------------------------------------------------------------------------- /test/v200/devfiles/starterProjects/starterProjectsGitNoRemotes.yaml: -------------------------------------------------------------------------------- 1 | - name: starterproject11 2 | git: 3 | checkoutFrom: 4 | remote: test-branch 5 | description: Test starter project 6 | subDir: test-subdir 7 | -------------------------------------------------------------------------------- /test/v200/devfiles/starterProjects/starterProjectsMinimum.yaml: -------------------------------------------------------------------------------- 1 | - name: starterproject11 2 | git: 3 | remotes: 4 | origin: test-origin 5 | - name: starterproject13 6 | zip: 7 | location: git-repo.zip 8 | -------------------------------------------------------------------------------- /generator/vendor/github.com/gobuffalo/flect/rule.go: -------------------------------------------------------------------------------- 1 | package flect 2 | 3 | type ruleFn func(string) string 4 | 5 | type rule struct { 6 | suffix string 7 | fn ruleFn 8 | } 9 | 10 | func noop(s string) string { return s } 11 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/.import-restrictions: -------------------------------------------------------------------------------- 1 | inverseRules: 2 | # Allow use of this package in all k8s.io packages. 3 | - selectorRegexp: k8s[.]io 4 | allowedPrefixes: 5 | - '' 6 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/.import-restrictions: -------------------------------------------------------------------------------- 1 | inverseRules: 2 | # Allow use of this package in all k8s.io packages. 3 | - selectorRegexp: k8s[.]io 4 | allowedPrefixes: 5 | - '' 6 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/no-parent/result.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: test-plugin-component 3 | container: 4 | image: test-plugin-image 5 | - name: test-component 6 | container: 7 | image: test-image 8 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/image-dockerfile-uri.yaml: -------------------------------------------------------------------------------- 1 | imageName: "myimage:{{ tag }}" 2 | dockerfile: 3 | uri: "{{uri}}/Dockerfile" 4 | buildContext: /{{foo}}/{{bar}} 5 | args: 6 | - "-f" 7 | - "{{ devnull }}" 8 | -------------------------------------------------------------------------------- /test/v200/devfiles/starterProjects/starterProjectsNoName.yaml: -------------------------------------------------------------------------------- 1 | - git: 2 | checkoutFrom: 3 | remote: test-branch 4 | remotes: 5 | origin: test-origin 6 | description: Test starter project 7 | subDir: test-subdir 8 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/strategicpatch/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - apelisse 5 | - pwittrock 6 | reviewers: 7 | - apelisse 8 | emeritus_approvers: 9 | - mengqiy 10 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/endpoint.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | name: endpoint1 3 | exposure: "public" 4 | protocol: "https" 5 | path : "/{{foo}}" 6 | targetPort: 9999 7 | -------------------------------------------------------------------------------- /generator/vendor/github.com/spf13/cobra/MAINTAINERS: -------------------------------------------------------------------------------- 1 | maintainers: 2 | - spf13 3 | - johnSchnake 4 | - jpmcb 5 | - marckhouzam 6 | inactive: 7 | - anthonyfok 8 | - bep 9 | - bogem 10 | - broady 11 | - eparis 12 | - jharshman 13 | - wfernandes 14 | -------------------------------------------------------------------------------- /generator/vendor/github.com/go-toolsmith/astcopy/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.x 4 | install: 5 | - # Prevent default install action "go get -t -v ./...". 6 | script: 7 | - go get -t -v ./... 8 | - go tool vet . 9 | - go test -v -race ./... -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/duplicate-with-plugin/main.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - plugin: 3 | uri: "aCustomLocation" 4 | name: "the-only-plugin" 5 | - container: 6 | image: "aDifferentValue" 7 | name: "existing-in-plugin" 8 | -------------------------------------------------------------------------------- /test/v200/devfiles/events/eventNoItemLast.yaml: -------------------------------------------------------------------------------- 1 | postStart: 2 | - "ApplyThisPostStartCommand" 3 | preStart: 4 | - "ApplyThisPreStartCommand1" 5 | - "ApplyThisPreStartCommand2" 6 | preStop: 7 | - "ApplyThisPreStopCommand" 8 | postStop: 9 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/duplicate-with-plugin/result-error.txt: -------------------------------------------------------------------------------- 1 | 1 error occurred: 2 | * Some Components are already defined in plugin 'the-only-plugin': existing-in-plugin. If you want to override them, you should do it in the plugin scope. 3 | 4 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/image-dockerfile-registry-output.yaml: -------------------------------------------------------------------------------- 1 | imageName: "myimage:xyz" 2 | dockerfile: 3 | devfileRegistry: 4 | id: "FOO/BAR" 5 | registryUrl: "http://uri" 6 | buildContext: /FOO/BAR 7 | rootRequired: true 8 | -------------------------------------------------------------------------------- /test/v200/devfiles/parent/parentMinimum.yaml: -------------------------------------------------------------------------------- 1 | parent: 2 | id: test-parent11 3 | registryUrl: test-url 4 | parent: 5 | kubernetes: 6 | name: test-kubernetes 7 | registryUrl: test-url 8 | parent: 9 | uri: test-uri 10 | registryUrl: test-url 11 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/resource/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - derekwaynecarr 8 | - mikedanese 9 | - saad-ali 10 | - janetkuo 11 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/multiple-post-start/result.yaml: -------------------------------------------------------------------------------- 1 | events: 2 | preStart: [] 3 | preStop: [] 4 | postStop: [] 5 | postStart: 6 | - "event-one" 7 | - "event-two" 8 | - "event-three" 9 | - "init-che-code-command" 10 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/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/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/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 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/apimachinery/pkg/api/resource/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - derekwaynecarr 8 | - mikedanese 9 | - saad-ali 10 | - janetkuo 11 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/events-merge/parent.yaml: -------------------------------------------------------------------------------- 1 | events: 2 | preStart: 3 | - "preStartFromParent" 4 | preStop: 5 | - "preStopFromParent" 6 | postStart: 7 | - "postStartFromParent" 8 | postStop: 9 | - "postStopFromParent" 10 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/events-merge/plugin.yaml: -------------------------------------------------------------------------------- 1 | events: 2 | preStart: 3 | - "preStartFromPlugin" 4 | preStop: 5 | - "preStopFromPlugin" 6 | postStart: 7 | - "postStartFromPlugin" 8 | postStop: 9 | - "postStopFromPlugin" 10 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/multiple-post-start/main.yaml: -------------------------------------------------------------------------------- 1 | parent: 2 | uri: "anyParent" 3 | components: 4 | - plugin: 5 | uri: "aCustomLocation" 6 | name: "the-only-plugin" 7 | events: 8 | postStart: 9 | - "init-che-code-command" 10 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/provision-remote/original.yaml: -------------------------------------------------------------------------------- 1 | projects: 2 | - name: nodejs-sample 3 | git: 4 | remotes: 5 | origin: "https://github.com/che-samples/web-nodejs-sample.git" 6 | checkoutFrom: 7 | revision: master 8 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerEndpointLongName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testcontainer2" 2 | container: 3 | image: testImage 4 | endpoints: 5 | - name: this-invalid-container-endpoint-name-is-more-than-63-characters-long 6 | targetPort: 1234 7 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/compositeMissingGroupKind.yaml: -------------------------------------------------------------------------------- 1 | - id: compositetest1 2 | composite: 3 | label: Composite Test 4 | commands: 5 | - runTest1 6 | - runTest2 7 | parallel: no 8 | group: 9 | isDefault: true 10 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftEndpointLongName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift1" 2 | openshift: 3 | inlined: testInlined 4 | endpoints: 5 | - name: this-invalid-openshift-endpoint-name-is-more-than-63-characters-long 6 | targetPort: 1234 7 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /generator/vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/image-dockerfile-registry.yaml: -------------------------------------------------------------------------------- 1 | imageName: "myimage:{{ tag }}" 2 | dockerfile: 3 | devfileRegistry: 4 | id: "{{foo}}/{{bar}}" 5 | registryUrl: "http://{{ uri }}" 6 | buildContext: /{{foo}}/{{bar}} 7 | rootRequired: true 8 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesEndpointLongName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes3" 2 | kubernetes: 3 | inlined: testInlined 4 | endpoints: 5 | - name: this-invalid-kubernetes-endpoint-name-is-more-than-63-characters-long 6 | targetPort: 1234 7 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/provision-remote/patch.yaml: -------------------------------------------------------------------------------- 1 | projects: 2 | - name: nodejs-sample 3 | git: 4 | remotes: 5 | gh-collaborator: "https://github.com/gh-collaborator/web-nodejs-sample.git" 6 | checkoutFrom: 7 | remote: gh-collaborator 8 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/projects/starterproject.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | name: starterproject1 3 | zip: 4 | location: "/{{foo}}" 5 | description: "{{ foo }}{{ bar }} is not {{bar}}{{foo}}" 6 | subDir: "/{{foo}}" 7 | -------------------------------------------------------------------------------- /generator/vendor/github.com/elliotchance/orderedmap/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | trim_trailing_whitespace = true 8 | 9 | [*.go] 10 | indent_style = tab 11 | indent_size = 4 12 | max_line_length = 80 13 | -------------------------------------------------------------------------------- /generator/vendor/github.com/mattn/go-isatty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.13.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./go.test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/compositeBadGroupKind.yaml: -------------------------------------------------------------------------------- 1 | - id: compositetest1 2 | composite: 3 | label: Composite Test 4 | commands: 5 | - runTest1 6 | - runTest2 7 | parallel: false 8 | group: 9 | isDefault: true 10 | kind: all 11 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/compositeBadParallel.yaml: -------------------------------------------------------------------------------- 1 | - id: compositetest1 2 | composite: 3 | label: Composite Test 4 | commands: 5 | - runTest1 6 | - runTest2 7 | parallel: maybe 8 | group: 9 | isDefault: true 10 | kind: test 11 | -------------------------------------------------------------------------------- /test/v200/devfiles/events/allEvents.yaml: -------------------------------------------------------------------------------- 1 | postStart: 2 | - "ApplyThisPostStartCommand" 3 | preStart: 4 | - "ApplyThisPreStartCommand1" 5 | - "ApplyThisPreStartCommand2" 6 | preStop: 7 | - "ApplyThisPreStopCommand" 8 | postStop: 9 | - "ApplyThisPostStopCommand" 10 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/projects/git.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | git: 3 | checkoutFrom: 4 | revision: "{{foo}}" 5 | remote: "{{bar}}" 6 | remotes: 7 | "foo": "{{bar}}" 8 | "{{foo}}{{bar}}": "{{ bar }}{{ foo }}" 9 | -------------------------------------------------------------------------------- /test/v200/devfiles/events/eventInvalid.yaml: -------------------------------------------------------------------------------- 1 | postStart: 2 | - "ApplyThisPostStartCommand" 3 | preStart: 4 | - "ApplyThisPreStartCommand1" 5 | - "ApplyThisPreStartCommand2" 6 | preStep: 7 | - "ApplyThisPreStopCommand" 8 | postStop: 9 | - "ApplyThisPostStopCommand" 10 | -------------------------------------------------------------------------------- /generator/vendor/github.com/mattn/go-colorable/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.13.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./go.test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | 16 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/commands/exec.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | component: component 3 | commandLine: tail -f {{devnull}} 4 | workingDir: "{{foo}}" 5 | label: "{{ version }}" 6 | env: 7 | - name: "{{ foo }}" 8 | value: "{{bar}}" 9 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/compositeBadGroupIsDefault.yaml: -------------------------------------------------------------------------------- 1 | - id: compositetest1 2 | composite: 3 | label: Composite Test 4 | commands: 5 | - runTest1 6 | - runTest2 7 | parallel: false 8 | group: 9 | isDefault: confirm 10 | kind: test 11 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/internal/clock/README.md: -------------------------------------------------------------------------------- 1 | # Clock 2 | 3 | This package provides an interface for time-based operations. It allows 4 | mocking time for testing. 5 | 6 | This is a copy of k8s.io/utils/clock. We have to copy it to avoid a circular 7 | dependency (k8s.io/klog -> k8s.io/utils -> k8s.io/klog). 8 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/klog/v2/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | reviewers: 3 | - harshanarayana 4 | - pohly 5 | approvers: 6 | - dims 7 | - thockin 8 | - serathius 9 | emeritus_approvers: 10 | - brancz 11 | - justinsb 12 | - lavalamp 13 | - piosz 14 | - tallclair 15 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/klog/v2/internal/clock/README.md: -------------------------------------------------------------------------------- 1 | # Clock 2 | 3 | This package provides an interface for time-based operations. It allows 4 | mocking time for testing. 5 | 6 | This is a copy of k8s.io/utils/clock. We have to copy it to avoid a circular 7 | dependency (k8s.io/klog -> k8s.io/utils -> k8s.io/klog). 8 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/override-just-plugin/patch.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: my-component 3 | container: 4 | image: overridden-image 5 | 6 | commands: 7 | - id: test-command 8 | exec: 9 | component: my-component 10 | commandLine: "echo 'this bit is updated'" 11 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/validation/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | # Disable inheritance as this is an api owners file 4 | options: 5 | no_parent_owners: true 6 | approvers: 7 | - api-approvers 8 | reviewers: 9 | - api-reviewers 10 | labels: 11 | - kind/api-change 12 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # OSX trash 5 | .DS_Store 6 | 7 | # Eclipse files 8 | .classpath 9 | .project 10 | .settings/** 11 | 12 | # Files generated by JetBrains IDEs, e.g. IntelliJ IDEA 13 | .idea/ 14 | *.iml 15 | 16 | # Vscode files 17 | .vscode 18 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/projects/project.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | name: project1 3 | clonePath: "/{{foo}}" 4 | git: 5 | checkoutFrom: 6 | revision: "{{foo}}" 7 | remotes: 8 | "foo": "{{ bar }}" 9 | "{{foo}}{{bar}}": "{{bar}}{{foo}}" 10 | -------------------------------------------------------------------------------- /test/v200/json/test-parent-overrides.json: -------------------------------------------------------------------------------- 1 | { 2 | "SchemaFile" : "schemas/latest/ide-targeted/parent-overrides.json", 3 | "Tests" : ["command-parent-tests.json", 4 | "component-parent-tests.json", 5 | "project-parent-tests.json", 6 | "starterProject-parent-tests.json"] 7 | } 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/klog/v2/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # OSX trash 5 | .DS_Store 6 | 7 | # Eclipse files 8 | .classpath 9 | .project 10 | .settings/** 11 | 12 | # Files generated by JetBrains IDEs, e.g. IntelliJ IDEA 13 | .idea/ 14 | *.iml 15 | 16 | # Vscode files 17 | .vscode 18 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.9.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | - go get -t -v github.com/modern-go/reflect2-tests/... 10 | 11 | script: 12 | - ./test.sh 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /generator/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 | -------------------------------------------------------------------------------- /test/v200/devfiles/metadata/metadataAll.yaml: -------------------------------------------------------------------------------- 1 | metadata: 2 | attributes: 3 | test: Apply Test 4 | scope: Api 5 | name: Test-MetaData1 6 | version: 1.0.0 7 | metadata: 8 | name: test-metadata2 9 | metadata: 10 | version: 1.0.b 11 | metadata: 12 | attributes: 13 | test: metadata 14 | outcome: pass 15 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/README.md: -------------------------------------------------------------------------------- 1 | # reflectwalk 2 | 3 | reflectwalk is a Go library for "walking" a value in Go using reflection, 4 | in the same way a directory tree can be "walked" on the filesystem. Walking 5 | a complex structure can allow you to do manipulations on unknown structures 6 | such as those decoded from JSON. 7 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.4.x" 5 | - "1.5.x" 6 | - "1.6.x" 7 | - "1.7.x" 8 | - "1.8.x" 9 | - "1.9.x" 10 | - "1.10.x" 11 | - "1.11.x" 12 | - "1.12.x" 13 | - "1.13.x" 14 | - "1.14.x" 15 | - "tip" 16 | 17 | go_import_path: gopkg.in/yaml.v2 18 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.9.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | - go get -t -v github.com/modern-go/reflect2-tests/... 10 | 11 | script: 12 | - ./test.sh 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execMinimum.yaml: -------------------------------------------------------------------------------- 1 | - id: testexec1 2 | exec: 3 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 4 | component: api-tests 5 | - id: testexec2 6 | exec: 7 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 8 | component: api-tests 9 | group: 10 | kind: debug 11 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | reviewers: 3 | - harshanarayana 4 | - mengjiao-liu 5 | - pohly 6 | approvers: 7 | - dims 8 | - pohly 9 | - thockin 10 | emeritus_approvers: 11 | - brancz 12 | - justinsb 13 | - lavalamp 14 | - piosz 15 | - serathius 16 | - tallclair 17 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Devfile Community Slack Channel 4 | url: https://kubernetes.slack.com/archives/C02SX9E5B55 5 | about: Devfile Community Slack Channel in the Kubernetes Workspace. If you haven’t joined the Kubernetes workspace before, follow https://slack.k8s.io/ 6 | -------------------------------------------------------------------------------- /generator/vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.4.x" 5 | - "1.5.x" 6 | - "1.6.x" 7 | - "1.7.x" 8 | - "1.8.x" 9 | - "1.9.x" 10 | - "1.10.x" 11 | - "1.11.x" 12 | - "1.12.x" 13 | - "1.13.x" 14 | - "1.14.x" 15 | - "tip" 16 | 17 | go_import_path: gopkg.in/yaml.v2 18 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/no-duplicate/main.yaml: -------------------------------------------------------------------------------- 1 | parent: 2 | uri: "anyParent" 3 | variables: 4 | version1: main 5 | attributes: 6 | main: true 7 | components: 8 | - plugin: 9 | uri: "aCustomLocation" 10 | name: "the-only-plugin" 11 | - container: 12 | image: "anyValue" 13 | name: "new-component" 14 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/image-dockerfile-git-output.yaml: -------------------------------------------------------------------------------- 1 | imageName: "myimage:xyz" 2 | dockerfile: 3 | git: 4 | fileLocation: "uri/Dockerfile" 5 | checkoutFrom: 6 | revision: "FOO" 7 | remote: "BAR" 8 | remotes: 9 | "BAR": "foo" 10 | buildContext: /FOO/BAR 11 | rootRequired: true 12 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execMixedCaseId.yaml: -------------------------------------------------------------------------------- 1 | - id: testExec1 2 | exec: 3 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 4 | component: api-tests 5 | - id: testexec2 6 | exec: 7 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 8 | component: api-tests 9 | group: 10 | kind: debug 11 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - caesarxuchao 9 | - liggitt 10 | - sttts 11 | - luxas 12 | - janetkuo 13 | - justinsb 14 | - ncdc 15 | - soltysh 16 | - dims 17 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/pkgbits/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 pkgbits 6 | 7 | const ( 8 | flagSyncMarkers = 1 << iota // file format contains sync markers 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/location.go: -------------------------------------------------------------------------------- 1 | package reflectwalk 2 | 3 | //go:generate stringer -type=Location location.go 4 | 5 | type Location uint 6 | 7 | const ( 8 | None Location = iota 9 | Map 10 | MapKey 11 | MapValue 12 | Slice 13 | SliceElem 14 | Array 15 | ArrayElem 16 | Struct 17 | StructField 18 | WalkLoc 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/encoding/prototext/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 prototext marshals and unmarshals protocol buffer messages as the 6 | // textproto format. 7 | package prototext 8 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - caesarxuchao 9 | - liggitt 10 | - sttts 11 | - luxas 12 | - janetkuo 13 | - justinsb 14 | - ncdc 15 | - soltysh 16 | - dims 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 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 | //go:build protolegacy 6 | // +build protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = true 11 | -------------------------------------------------------------------------------- /vendor/github.com/ghodss/yaml/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # Eclipse files 5 | .classpath 6 | .project 7 | .settings/** 8 | 9 | # Emacs save files 10 | *~ 11 | 12 | # Vim-related files 13 | [._]*.s[a-w][a-z] 14 | [._]s[a-w][a-z] 15 | *.un~ 16 | Session.vim 17 | .netrwhist 18 | 19 | # Go test binaries 20 | *.test 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 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 | //go:build !protolegacy 6 | // +build !protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = false 11 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "eamodio.gitlens", 6 | "GitHub.vscode-pull-request-github", 7 | "golang.go", 8 | "redhat.vscode-xml", 9 | "redhat.vscode-yaml", 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /test/v200/devfiles/projects/projectsAll.yaml: -------------------------------------------------------------------------------- 1 | - name: testproject123451234512345h 2 | git: 3 | checkoutFrom: 4 | remote: test-branch 5 | remotes: 6 | origin: test-origin 7 | clonePath: /Users/test/projects 8 | - name: testproject3 9 | zip: 10 | location: git-repo.zip 11 | clonePath: /Users/test/projects 12 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/klog_file_others.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package klog 5 | 6 | import ( 7 | "os/user" 8 | ) 9 | 10 | func getUserName() string { 11 | userNameOnce.Do(func() { 12 | current, err := user.Current() 13 | if err == nil { 14 | userName = current.Username 15 | } 16 | }) 17 | 18 | return userName 19 | } 20 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/event/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 event provides a set of packages that cover the main 6 | // concepts of telemetry in an implementation agnostic way. 7 | package event 8 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/kubernetes-component-union/original.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: unchanged-plugin-name 3 | plugin: 4 | id: "unchanged-plugin-id" 5 | - name: component-to-update 6 | kubernetes: 7 | inlined: "componentToUpdateInline" 8 | endpoints: 9 | - name: endpoint-name 10 | targetPort: 8080 11 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/image-dockerfile-git.yaml: -------------------------------------------------------------------------------- 1 | imageName: "myimage:{{ tag }}" 2 | dockerfile: 3 | git: 4 | fileLocation: "{{ uri }}/Dockerfile" 5 | checkoutFrom: 6 | revision: "{{foo}}" 7 | remote: "{{bar}}" 8 | remotes: 9 | "{{bar}}": "foo" 10 | buildContext: /{{foo}}/{{bar}} 11 | rootRequired: true 12 | -------------------------------------------------------------------------------- /generator/vendor/github.com/mattn/go-isatty/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/gcimporter/unified_yes.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 | //go:build goexperiment.unified 6 | // +build goexperiment.unified 7 | 8 | package gcimporter 9 | 10 | const unifiedIR = true 11 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/klog/v2/klog_file_others.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package klog 5 | 6 | import ( 7 | "os/user" 8 | ) 9 | 10 | func getUserName() string { 11 | userNameOnce.Do(func() { 12 | current, err := user.Current() 13 | if err == nil { 14 | userName = current.Username 15 | } 16 | }) 17 | 18 | return userName 19 | } 20 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/no-duplicate/parent.yaml: -------------------------------------------------------------------------------- 1 | variables: 2 | version2: parent 3 | attributes: 4 | parent: true 5 | components: 6 | - container: 7 | image: "aValue" 8 | name: "parent-component" 9 | - image: 10 | imageName: "myimage:xyz" 11 | dockerfile: 12 | uri: "uri/Dockerfile" 13 | name: "parent-component-2" 14 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftMinimum.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift1" 2 | openshift: 3 | inlined: testInlined 4 | - name: "testopenshift1" 5 | openshift: 6 | uri: test-uri 7 | - name: "testopenshift1" 8 | openshift: 9 | inlined: testInlined 10 | endpoints: 11 | - name: test-endpoint 12 | targetPort: 1234 13 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /generator/vendor/github.com/mattn/go-colorable/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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 | //go:build ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 10 | return ENOTSUP 11 | } 12 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/gcimporter/unified_no.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 | //go:build !goexperiment.unified 6 | // +build !goexperiment.unified 7 | 8 | package gcimporter 9 | 10 | const unifiedIR = false 11 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesMinimum.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes1" 2 | kubernetes: 3 | inlined: testInlined 4 | - name: "testkubernetes2" 5 | kubernetes: 6 | uri: test-uri 7 | - name: "testkubernetes3" 8 | kubernetes: 9 | inlined: testInlined 10 | endpoints: 11 | - name: test-http 12 | targetPort: 1234 13 | -------------------------------------------------------------------------------- /vendor/github.com/santhosh-tekuri/jsonschema/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -v -race -coverprofile=profile.out -covermode=atomic $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /generator/vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /test/v200/json/test-dev-workspace-template-spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "SchemaFile" : "schemas/latest/ide-targeted/dev-workspace-template-spec.json", 3 | "Tests" : ["command-tests.json", 4 | "component-tests.json", 5 | "event-tests.json", 6 | "parent-tests.json", 7 | "project-tests.json", 8 | "starterProject-tests.json"] 9 | } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/pre_go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 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 | //go:build !go1.18 8 | 9 | package idna 10 | 11 | const transitionalLookup = true 12 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/provision-remote/result.yaml: -------------------------------------------------------------------------------- 1 | projects: 2 | - name: nodejs-sample 3 | git: 4 | remotes: 5 | origin: "https://github.com/che-samples/web-nodejs-sample.git" 6 | gh-collaborator: "https://github.com/gh-collaborator/web-nodejs-sample.git" 7 | checkoutFrom: 8 | remote: gh-collaborator 9 | revision: master 10 | -------------------------------------------------------------------------------- /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) -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/net/idna/pre_go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 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 | //go:build !go1.18 8 | 9 | package idna 10 | 11 | const transitionalLookup = true 12 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | //go:build !linux || !go1.24 6 | 7 | package unix 8 | 9 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { 10 | return -1, false 11 | } 12 | -------------------------------------------------------------------------------- /generator/vendor/github.com/gobuffalo/flect/lower_upper.go: -------------------------------------------------------------------------------- 1 | package flect 2 | 3 | import "strings" 4 | 5 | // ToUpper is a convience wrapper for strings.ToUpper 6 | func (i Ident) ToUpper() Ident { 7 | return New(strings.ToUpper(i.Original)) 8 | } 9 | 10 | // ToLower is a convience wrapper for strings.ToLower 11 | func (i Ident) ToLower() Ident { 12 | return New(strings.ToLower(i.Original)) 13 | } 14 | -------------------------------------------------------------------------------- /generator/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) -------------------------------------------------------------------------------- /generator/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 | //go:build amd64 && linux && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/global-variables-and-attributes/original.yaml: -------------------------------------------------------------------------------- 1 | variables: 2 | stringVariableToChange: originalValue 3 | stringVariableToKeep: stringValue 4 | attributes: 5 | boolAttributeToChange: true 6 | stringAttributeToKeep: stringValue 7 | objectAttributeToChange: 8 | attributeField: 9.9 9 | objectAttributeField: 10 | objectAttributeSubField: 10 11 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/global-variables-and-attributes/patch.yaml: -------------------------------------------------------------------------------- 1 | variables: 2 | stringVariableToChange: patchedValue 3 | attributes: 4 | boolAttributeToChange: false 5 | 6 | objectAttributeToChange: 7 | 8 | newObjectAttributeField: 9 | objectAttributeSubField: 11 10 | newObjectAttributeSubField: newObjectAttributeFieldValue 11 | newField: true 12 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execMissingEnvName.yaml: -------------------------------------------------------------------------------- 1 | - id: testexec1 2 | exec: 3 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 4 | component: api-tests 5 | group: 6 | isDefault: true 7 | kind: test 8 | hotReloadCapable: false 9 | label: "Command Exec test" 10 | env: 11 | - value : "Test Tester" 12 | workingDir: $PROJECTS_ROOT 13 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesEndpointMissingName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes" 2 | kubernetes: 3 | inlined: test-inlined 4 | endpoints: 5 | - attributes: 6 | test: Apply Test 7 | scope: Api 8 | exposure: public 9 | path: test-path 10 | protocol: http 11 | secure: false 12 | targetPort: 1234 13 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftEndpointMissingName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift" 2 | openshift: 3 | inlined: test-inlined 4 | endpoints: 5 | - attributes: 6 | test: Apply Test 7 | scope: Api 8 | exposure: public 9 | path: test-path 10 | protocol: http 11 | secure: false 12 | targetPort: 1234 13 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftEndpointMissingPort.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift" 2 | openshift: 3 | inlined: test-inlined 4 | endpoints: 5 | - name: test-endpoint 6 | attributes: 7 | test: Apply Test 8 | scope: Api 9 | exposure: public 10 | path: test-path 11 | protocol: http 12 | secure: false 13 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftMissingInlinedAndUri.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift" 2 | openshift: 3 | endpoints: 4 | - name: test-endpoint 5 | attributes: 6 | test: Apply Test 7 | scope: Api 8 | exposure: public 9 | path: test-path 10 | protocol: http 11 | secure: false 12 | targetPort: 1234 13 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, 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 flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # Eclipse files 5 | .classpath 6 | .project 7 | .settings/** 8 | 9 | # Idea files 10 | .idea/** 11 | .idea/ 12 | 13 | # Emacs save files 14 | *~ 15 | 16 | # Vim-related files 17 | [._]*.s[a-w][a-z] 18 | [._]s[a-w][a-z] 19 | *.un~ 20 | Session.vim 21 | .netrwhist 22 | 23 | # Go test binaries 24 | *.test 25 | -------------------------------------------------------------------------------- /generator/vendor/github.com/spf13/pflag/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - tip 10 | 11 | matrix: 12 | allow_failures: 13 | - go: tip 14 | 15 | install: 16 | - go get golang.org/x/lint/golint 17 | - export PATH=$GOPATH/bin:$PATH 18 | - go install ./... 19 | 20 | script: 21 | - verify/all.sh -v 22 | - go test ./... 23 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/duplicate-with-parent/parent.yaml: -------------------------------------------------------------------------------- 1 | variables: 2 | objectVariable: parentValue 3 | attributes: 4 | mainAttribute: false 5 | components: 6 | - container: 7 | image: "aValue" 8 | name: "existing-in-parent" 9 | - image: 10 | imageName: "myimage:parent" 11 | dockerfile: 12 | uri: "uri/Dockerfile" 13 | name: "existing-in-parent-2" 14 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/global-variables-and-attributes-err/original.yaml: -------------------------------------------------------------------------------- 1 | variables: 2 | stringVariableToChange: original 3 | stringVariableToKeep: stringValue 4 | attributes: 5 | boolAttributeToChange: true 6 | stringAttributeToKeep: stringValue 7 | 8 | objectAttributeToChange: 9 | attributeField: 9.9 10 | objectAttributeField: 11 | objectAttributeSubField: 10 12 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesEndpointMissingPort.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes" 2 | kubernetes: 3 | inlined: test-inlined 4 | endpoints: 5 | - name: test-endpoint 6 | attributes: 7 | test: Apply Test 8 | scope: Api 9 | exposure: public 10 | path: test-path 11 | protocol: http 12 | secure: false 13 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: arm64 3 | dist: focal 4 | go: 1.15.x 5 | script: 6 | - diff -u <(echo -n) <(gofmt -d *.go) 7 | - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON) 8 | - GO111MODULE=on go vet . 9 | - GO111MODULE=on go test -v -race ./... 10 | - git diff --exit-code 11 | install: 12 | - GO111MODULE=off go get golang.org/x/lint/golint 13 | -------------------------------------------------------------------------------- /generator/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 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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 | //go:build darwin && !ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 10 | return ptrace1(request, pid, addr, data) 11 | } 12 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/yaml/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # Eclipse files 5 | .classpath 6 | .project 7 | .settings/** 8 | 9 | # Idea files 10 | .idea/** 11 | .idea/ 12 | 13 | # Emacs save files 14 | *~ 15 | 16 | # Vim-related files 17 | [._]*.s[a-w][a-z] 18 | [._]s[a-w][a-z] 19 | *.un~ 20 | Session.vim 21 | .netrwhist 22 | 23 | # Go test binaries 24 | *.test 25 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | //go:build go1.12 6 | // +build go1.12 7 | 8 | package impl 9 | 10 | import "reflect" 11 | 12 | func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } 13 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/yaml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: arm64 3 | dist: focal 4 | go: 1.15.x 5 | script: 6 | - diff -u <(echo -n) <(gofmt -d *.go) 7 | - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON) 8 | - GO111MODULE=on go vet . 9 | - GO111MODULE=on go test -v -race ./... 10 | - git diff --exit-code 11 | install: 12 | - GO111MODULE=off go get golang.org/x/lint/golint 13 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/events-merge/main.yaml: -------------------------------------------------------------------------------- 1 | parent: 2 | uri: "anyParent" 3 | components: 4 | - plugin: 5 | uri: "aCustomLocation" 6 | name: "the-only-plugin" 7 | events: 8 | preStart: 9 | - "preStartFromMainContent" 10 | preStop: 11 | - "preStopFromMainContent" 12 | postStart: 13 | - "postStartFromMainContent" 14 | postStop: 15 | - "postStopFromMainContent" 16 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/add-command-and-component/result-error.txt: -------------------------------------------------------------------------------- 1 | 2 errors occurred: 2 | * Some Components do not override any existing element: new-volume. They should be defined in the main body, as new elements, not in the overriding section 3 | * Some Commands do not override any existing element: command-to-add. They should be defined in the main body, as new elements, not in the overriding section 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerMinimum.yaml: -------------------------------------------------------------------------------- 1 | - name: "testcontainer1" 2 | container: 3 | image: testImage 4 | - name: "testcontainer2" 5 | container: 6 | image: testImage 7 | endpoints: 8 | - name: test-http 9 | targetPort: 1234 10 | - name: "testcontainer3" 11 | container: 12 | image: testImage 13 | volumeMounts: 14 | - name: volume 15 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesMissingInlinedAndUri.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes" 2 | kubernetes: 3 | endpoints: 4 | - name: test-endpoint-public-http 5 | attributes: 6 | test: Apply Test 7 | scope: Api 8 | exposure: public 9 | path: test-path 10 | protocol: http 11 | secure: false 12 | targetPort: 1234 13 | -------------------------------------------------------------------------------- /generator/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 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/versions/toolchain_go119.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | //go:build go1.19 6 | // +build go1.19 7 | 8 | package versions 9 | 10 | func init() { 11 | if Compare(toolchain, Go1_19) < 0 { 12 | toolchain = Go1_19 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/versions/toolchain_go120.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | //go:build go1.20 6 | // +build go1.20 7 | 8 | package versions 9 | 10 | func init() { 11 | if Compare(toolchain, Go1_20) < 0 { 12 | toolchain = Go1_20 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/versions/toolchain_go121.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | //go:build go1.21 6 | // +build go1.21 7 | 8 | package versions 9 | 10 | func init() { 11 | if Compare(toolchain, Go1_21) < 0 { 12 | toolchain = Go1_21 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /schemas/latest/ide-targeted/README.md: -------------------------------------------------------------------------------- 1 | IDE-targeted variants of the schemas provide the following difference compared to the main schemas: 2 | - They contain additional non-standard `markdownDescription` attributes that are used by IDEs such a VSCode 3 | to provide markdown-rendered documentation hovers. 4 | - They don't contain `default` attributes, since this triggers unwanted addition of defaulted fields during completion in IDEs. -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerMixedCaseName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testContainer1" 2 | container: 3 | image: testImage 4 | - name: "testcontainer2" 5 | container: 6 | image: testImage 7 | endpoints: 8 | - name: test-http 9 | targetPort: 1234 10 | - name: "testcontainer3" 11 | container: 12 | image: testImage 13 | volumeMounts: 14 | - name: volume 15 | -------------------------------------------------------------------------------- /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 | //go: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 | -------------------------------------------------------------------------------- /test/v200/devfiles/starterProjects/starterProjectsAll.yaml: -------------------------------------------------------------------------------- 1 | - name: starterproject1 2 | git: 3 | checkoutFrom: 4 | remote: test-branch 5 | remotes: 6 | origin: test-origin 7 | description: Test starter project 8 | subDir: test-subdir 9 | - name: starterproject3 10 | zip: 11 | location: git-repo.zip 12 | description: Test starter project 13 | subDir: test-subdir 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/errors/is_go113.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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 | //go:build go1.13 6 | // +build go1.13 7 | 8 | package errors 9 | 10 | import "errors" 11 | 12 | // Is is errors.Is. 13 | func Is(err, target error) bool { return errors.Is(err, target) } 14 | -------------------------------------------------------------------------------- /generator/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 | //go: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 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execNoCommand.yaml: -------------------------------------------------------------------------------- 1 | - id: testexec1 2 | exec: 3 | component: api-tests 4 | group: 5 | isDefault: true 6 | kind: test 7 | hotReloadCapable: false 8 | label: "Command Exec test" 9 | env: 10 | - name: "USER" 11 | value: "Test Tester" 12 | - name : "GREETING" 13 | value : "Hello" 14 | workingDir: $PROJECTS_ROOT 15 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftBadEndpointSecure.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift" 2 | openshift: 3 | inlined: test-inlined 4 | endpoints: 5 | - name: test-endpoint 6 | attributes: 7 | test: Apply Test 8 | scope: Api 9 | exposure: public 10 | path: test-path 11 | protocol: http 12 | secure: nope 13 | targetPort: 1234 14 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/global-variables-and-attributes-err/result-error.txt: -------------------------------------------------------------------------------- 1 | 2 errors occurred: 2 | * Some Variables do not override any existing element: newVariableValid. They should be defined in the main body, as new elements, not in the overriding section 3 | * Some Attributes do not override any existing element: newAttributeValid. They should be defined in the main body, as new elements, not in the overriding section 4 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesBadEndpointExposure.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes" 2 | kubernetes: 3 | inlined: test-inlined 4 | endpoints: 5 | - name: test-endpoint 6 | attributes: 7 | test: Apply Test 8 | scope: Api 9 | exposure: always 10 | path: test-path 11 | protocol: http 12 | secure: false 13 | targetPort: 1234 14 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesBadEndpointProtocol.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes" 2 | kubernetes: 3 | inlined: test-inlined 4 | endpoints: 5 | - name: test-endpoint 6 | attributes: 7 | test: Apply Test 8 | scope: Api 9 | exposure: public 10 | path: test-path 11 | protocol: hppt 12 | secure: false 13 | targetPort: 1234 14 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesBadEndpointSecure.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes" 2 | kubernetes: 3 | inlined: test-inlined 4 | endpoints: 5 | - name: test-endpoint 6 | attributes: 7 | test: Apply Test 8 | scope: Api 9 | exposure: public 10 | path: test-path 11 | protocol: http 12 | secure: nope 13 | targetPort: 1234 14 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftBadEndpointExposure.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift" 2 | openshift: 3 | inlined: test-inlined 4 | endpoints: 5 | - name: test-endpoint 6 | attributes: 7 | test: Apply Test 8 | scope: Api 9 | exposure: always 10 | path: test-path 11 | protocol: http 12 | secure: false 13 | targetPort: 1234 14 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftBadEndpointProtocol.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift" 2 | openshift: 3 | inlined: test-inlined 4 | endpoints: 5 | - name: test-endpoint 6 | attributes: 7 | test: Apply Test 8 | scope: Api 9 | exposure: public 10 | path: test-path 11 | protocol: hppt 12 | secure: false 13 | targetPort: 1234 14 | -------------------------------------------------------------------------------- /generator/vendor/github.com/gobuffalo/flect/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | .DS_Store 3 | doc 4 | tmp 5 | pkg 6 | *.gem 7 | *.pid 8 | coverage 9 | coverage.data 10 | build/* 11 | *.pbxuser 12 | *.mode1v3 13 | .svn 14 | profile 15 | .console_history 16 | .sass-cache/* 17 | .rake_tasks~ 18 | *.log.lck 19 | solr/ 20 | .jhw-cache/ 21 | jhw.* 22 | *.sublime* 23 | node_modules/ 24 | dist/ 25 | generated/ 26 | .vendor/ 27 | bin/* 28 | gin-bin 29 | .idea/ 30 | -------------------------------------------------------------------------------- /generator/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 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/duplicate-with-parent/main.yaml: -------------------------------------------------------------------------------- 1 | parent: 2 | uri: "anyParent" 3 | variables: 4 | objectVariable: mainValue 5 | attributes: 6 | mainAttribute: true 7 | components: 8 | - container: 9 | image: "aDifferentValue" 10 | name: "existing-in-parent" 11 | - image: 12 | imageName: "myimage:main" 13 | dockerfile: 14 | uri: "uri/Dockerfile" 15 | name: "existing-in-parent-2" 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 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 protoiface 6 | 7 | type MessageV1 interface { 8 | Reset() 9 | String() string 10 | ProtoMessage() 11 | } 12 | 13 | type ExtensionRangeV1 struct { 14 | Start, End int32 // both inclusive 15 | } 16 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 | //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | var mapper = &mmapper{ 10 | active: make(map[*byte][]byte), 11 | mmap: mmap, 12 | munmap: munmap, 13 | } 14 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/container-output.yaml: -------------------------------------------------------------------------------- 1 | image: "image-1" 2 | env: 3 | - name: "FOO" 4 | value: "BAR" 5 | command: 6 | - tail 7 | - -f 8 | - "/dev/null" 9 | args: 10 | - "/dev/null" 11 | memoryLimit: "FOO" 12 | memoryRequest: "FOO" 13 | sourceMapping: "FOO" 14 | volumeMounts: 15 | - name: vol1 16 | path: "/FOO" 17 | endpoints: 18 | - name: endpoint1 19 | exposure: public 20 | path: "FOO" 21 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/vgetrandom_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | //go:build linux && go1.24 6 | 7 | package unix 8 | 9 | import _ "unsafe" 10 | 11 | //go:linkname vgetrandom runtime.vgetrandom 12 | //go:noescape 13 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) 14 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/openshiftBothInlinedAndUri.yaml: -------------------------------------------------------------------------------- 1 | - name: "testopenshift" 2 | openshift: 3 | inlined: test-inlined 4 | uri: test-uri 5 | endpoints: 6 | - name: test-endpoint 7 | attributes: 8 | test: Apply Test 9 | scope: Api 10 | exposure: public 11 | path: test-path 12 | protocol: http 13 | secure: false 14 | targetPort: 1234 15 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execMissingEnvValue.yaml: -------------------------------------------------------------------------------- 1 | - id: testexec1 2 | exec: 3 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 4 | component: api-tests 5 | group: 6 | isDefault: true 7 | kind: test 8 | hotReloadCapable: false 9 | label: "Command Exec test" 10 | env: 11 | - name: "USER" 12 | - name : "GREETING" 13 | value : "Hello" 14 | workingDir: $PROJECTS_ROOT 15 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execNoComponent.yaml: -------------------------------------------------------------------------------- 1 | - id: testexec1 2 | exec: 3 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 4 | group: 5 | isDefault: true 6 | kind: test 7 | hotReloadCapable: false 8 | label: "Command Exec test" 9 | env: 10 | - name: "USER" 11 | value: "Test Tester" 12 | - name : "GREETING" 13 | value : "Hello" 14 | workingDir: $PROJECTS_ROOT 15 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/kubernetesBothInlinedAndUri.yaml: -------------------------------------------------------------------------------- 1 | - name: "testkubernetes" 2 | kubernetes: 3 | inlined: test-inlined 4 | uri: test-uri 5 | endpoints: 6 | - name: test-endpoint 7 | attributes: 8 | test: Apply Test 9 | scope: Api 10 | exposure: public 11 | path: test-path 12 | protocol: http 13 | secure: false 14 | targetPort: 1234 15 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/global-variables-and-attributes-err/patch.yaml: -------------------------------------------------------------------------------- 1 | variables: 2 | stringVariableToChange: patch 3 | 4 | newVariableValid: nope 5 | attributes: 6 | boolAttributeToChange: false 7 | 8 | newAttributeValid: false 9 | objectAttributeToChange: 10 | 11 | newObjectAttributeField: 12 | objectAttributeSubField: 11 13 | newObjectAttributeSubField: newObjectAttributeFieldValue 14 | newField: true 15 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/editiondefaults/defaults.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 editiondefaults contains the binary representation of the editions 6 | // defaults. 7 | package editiondefaults 8 | 9 | import _ "embed" 10 | 11 | //go:embed editions_defaults.binpb 12 | var Defaults []byte 13 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/yaml_go110.go: -------------------------------------------------------------------------------- 1 | // This file contains changes that are only compatible with go 1.10 and onwards. 2 | 3 | // +build go1.10 4 | 5 | package yaml 6 | 7 | import "encoding/json" 8 | 9 | // DisallowUnknownFields configures the JSON decoder to error out if unknown 10 | // fields come along, instead of dropping them by default. 11 | func DisallowUnknownFields(d *json.Decoder) *json.Decoder { 12 | d.DisallowUnknownFields() 13 | return d 14 | } 15 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/global-variables-and-attributes/result.yaml: -------------------------------------------------------------------------------- 1 | variables: 2 | stringVariableToChange: patchedValue 3 | stringVariableToKeep: stringValue 4 | attributes: 5 | boolAttributeToChange: false 6 | stringAttributeToKeep: stringValue 7 | objectAttributeToChange: 8 | 9 | newObjectAttributeField: 10 | objectAttributeSubField: 11 11 | newObjectAttributeSubField: newObjectAttributeFieldValue 12 | newField: true 13 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/openshift-kubernetes-output.yaml: -------------------------------------------------------------------------------- 1 | uri: "http://link/uri" 2 | inlined: | 3 | apiVersion: batch/v1 4 | kind: Job 5 | metadata: 6 | name: pi 7 | spec: 8 | template: 9 | spec: 10 | containers: 11 | - name: job 12 | image: inlined 13 | endpoints: 14 | - name: endpoint1 15 | exposure: public 16 | path: "FOO" 17 | -------------------------------------------------------------------------------- /samples/devworkspaces/with-nodejs-parent-template.devworkspace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: workspace.devfile.io/v1alpha2 2 | kind: DevWorkspace 3 | metadata: 4 | name: "with-nodejs-template-parent" 5 | spec: 6 | started: true 7 | template: 8 | parent: 9 | kubernetes: 10 | name: nodejs-stack 11 | commands: 12 | - id: sayhello 13 | exec: 14 | label: Say Hello 15 | commandLine: echo "hello" 16 | component: nodejs 17 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execMissingGroupKind.yaml: -------------------------------------------------------------------------------- 1 | - id: testexec1 2 | exec: 3 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 4 | component: api-tests 5 | group: 6 | isDefault: true 7 | hotReloadCapable: false 8 | label: "Command Exec test" 9 | env: 10 | - name: "USER" 11 | value: "Test Tester" 12 | - name : "GREETING" 13 | value : "Hello" 14 | workingDir: $PROJECTS_ROOT 15 | -------------------------------------------------------------------------------- /test/v200/json/test-devfile.json: -------------------------------------------------------------------------------- 1 | { 2 | "SchemaFile" : "schemas/latest/ide-targeted/devfile.json", 3 | "SchemaVersion" : "2.0.0", 4 | "Tests" : ["command-tests.json", 5 | "component-tests.json", 6 | "event-tests.json", 7 | "metadata-tests.json", 8 | "parent-tests.json", 9 | "project-tests.json", 10 | "starterProject-tests.json"] 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /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 | //go: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 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/pkgbits/support.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 pkgbits 6 | 7 | import "fmt" 8 | 9 | func assert(b bool) { 10 | if !b { 11 | panic("assertion failed") 12 | } 13 | } 14 | 15 | func errorf(format string, args ...interface{}) { 16 | panic(fmt.Errorf(format, args...)) 17 | } 18 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/yaml/yaml_go110.go: -------------------------------------------------------------------------------- 1 | // This file contains changes that are only compatible with go 1.10 and onwards. 2 | 3 | // +build go1.10 4 | 5 | package yaml 6 | 7 | import "encoding/json" 8 | 9 | // DisallowUnknownFields configures the JSON decoder to error out if unknown 10 | // fields come along, instead of dropping them by default. 11 | func DisallowUnknownFields(d *json.Decoder) *json.Decoder { 12 | d.DisallowUnknownFields() 13 | return d 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/error.go: -------------------------------------------------------------------------------- 1 | package jlexer 2 | 3 | import "fmt" 4 | 5 | // LexerError implements the error interface and represents all possible errors that can be 6 | // generated during parsing the JSON data. 7 | type LexerError struct { 8 | Reason string 9 | Offset int 10 | Data string 11 | } 12 | 13 | func (l *LexerError) Error() string { 14 | return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data) 15 | } 16 | -------------------------------------------------------------------------------- /generator/vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/auxv_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 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 | //go:build !go1.21 && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Auxv() ([][2]uintptr, error) { 12 | return nil, syscall.ENOTSUP 13 | } 14 | -------------------------------------------------------------------------------- /generator/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 | //go: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 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/override-just-plugin/original.yaml: -------------------------------------------------------------------------------- 1 | projects: 2 | - name: test-project 3 | git: 4 | remotes: 5 | origin: "https://test-data.io" 6 | 7 | components: 8 | - name: my-component 9 | container: 10 | image: testimg 11 | 12 | commands: 13 | - id: test-command 14 | exec: 15 | component: my-component 16 | commandLine: "echo 'just a test'" 17 | 18 | events: 19 | preStart: 20 | - test-command 21 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 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 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | type Signal = syscall.Signal 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - dims 5 | - lavalamp 6 | - smarterclayton 7 | - deads2k 8 | - sttts 9 | - liggitt 10 | - caesarxuchao 11 | reviewers: 12 | - dims 13 | - thockin 14 | - lavalamp 15 | - smarterclayton 16 | - wojtek-t 17 | - deads2k 18 | - derekwaynecarr 19 | - caesarxuchao 20 | - mikedanese 21 | - liggitt 22 | - gmarek 23 | - sttts 24 | - ncdc 25 | - tallclair 26 | labels: 27 | - sig/api-machinery 28 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/bytestostr_nounsafe.go: -------------------------------------------------------------------------------- 1 | // This file is included to the build if any of the buildtags below 2 | // are defined. Refer to README notes for more details. 3 | 4 | //+build easyjson_nounsafe appengine 5 | 6 | package jlexer 7 | 8 | // bytesToStr creates a string normally from []byte 9 | // 10 | // Note that this method is roughly 1.5x slower than using the 'unsafe' method. 11 | func bytesToStr(data []byte) string { 12 | return string(data) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 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 | //go:build go1.18 8 | 9 | package idna 10 | 11 | // Transitional processing is disabled by default in Go 1.18. 12 | // https://golang.org/issue/47510 13 | const transitionalLookup = false 14 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/yaml/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - dims 5 | - lavalamp 6 | - smarterclayton 7 | - deads2k 8 | - sttts 9 | - liggitt 10 | - caesarxuchao 11 | reviewers: 12 | - dims 13 | - thockin 14 | - lavalamp 15 | - smarterclayton 16 | - wojtek-t 17 | - deads2k 18 | - derekwaynecarr 19 | - caesarxuchao 20 | - mikedanese 21 | - liggitt 22 | - gmarek 23 | - sttts 24 | - ncdc 25 | - tallclair 26 | labels: 27 | - sig/api-machinery 28 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/override-just-plugin/result.yaml: -------------------------------------------------------------------------------- 1 | projects: 2 | - name: test-project 3 | git: 4 | remotes: 5 | origin: "https://test-data.io" 6 | 7 | components: 8 | - name: my-component 9 | container: 10 | image: overridden-image 11 | 12 | commands: 13 | - id: test-command 14 | exec: 15 | component: my-component 16 | commandLine: "echo 'this bit is updated'" 17 | 18 | events: 19 | preStart: 20 | - test-command 21 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execBadGroupKind.yaml: -------------------------------------------------------------------------------- 1 | - id: testexec1 2 | exec: 3 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 4 | component: api-tests 5 | group: 6 | isDefault: true 7 | kind: before 8 | hotReloadCapable: false 9 | label: "Command Exec test" 10 | env: 11 | - name: "USER" 12 | value: "Test Tester" 13 | - name : "GREETING" 14 | value : "Hello" 15 | workingDir: $PROJECTS_ROOT 16 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/net/idna/go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 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 | //go:build go1.18 8 | 9 | package idna 10 | 11 | // Transitional processing is disabled by default in Go 1.18. 12 | // https://golang.org/issue/47510 13 | const transitionalLookup = false 14 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/gcimporter/newInterface11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 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 | //go:build go1.11 6 | // +build go1.11 7 | 8 | package gcimporter 9 | 10 | import "go/types" 11 | 12 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 13 | return types.NewInterfaceType(methods, embeddeds) 14 | } 15 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execBadGroupIsDefault.yaml: -------------------------------------------------------------------------------- 1 | - id: testexec1 2 | exec: 3 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 4 | component: api-tests 5 | group: 6 | isDefault: confirm 7 | kind: test 8 | hotReloadCapable: false 9 | label: "Command Exec test" 10 | env: 11 | - name: "USER" 12 | value: "Test Tester" 13 | - name : "GREETING" 14 | value : "Hello" 15 | workingDir: $PROJECTS_ROOT 16 | -------------------------------------------------------------------------------- /test/v200/devfiles/commands/execBadHotReloadCapable.yaml: -------------------------------------------------------------------------------- 1 | - id: testexec1 2 | exec: 3 | commandLine: 'echo "Hello ${GREETING} ${USER}"' 4 | component: api-tests 5 | group: 6 | isDefault: false 7 | kind: build 8 | hotReloadCapable: nope 9 | label: "Command Exec test" 10 | env: 11 | - name: "USER" 12 | value: "Test Tester" 13 | - name : "GREETING" 14 | value : "Hello" 15 | workingDir: $PROJECTS_ROOT 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 resolveTypeOff reflect.resolveTypeOff 10 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 11 | 12 | //go:linkname makemap reflect.makemap 13 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 14 | 15 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 16 | return makemap(rtype, cap) 17 | } 18 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/go/ast/astutil/util.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 astutil 6 | 7 | import "go/ast" 8 | 9 | // Unparen returns e with any enclosing parentheses stripped. 10 | func Unparen(e ast.Expr) ast.Expr { 11 | for { 12 | p, ok := e.(*ast.ParenExpr) 13 | if !ok { 14 | return e 15 | } 16 | e = p.X 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /generator/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 resolveTypeOff reflect.resolveTypeOff 10 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 11 | 12 | //go:linkname makemap reflect.makemap 13 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 14 | 15 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 16 | return makemap(rtype, cap) 17 | } 18 | -------------------------------------------------------------------------------- /generator/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 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 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 | -------------------------------------------------------------------------------- /test/v200/json/metadata-tests.json: -------------------------------------------------------------------------------- 1 | { 2 | "Tests" : [ 3 | { 4 | "FileName" : "metadataAll.yaml", 5 | "ExpectOutcome" : "PASS", 6 | "Files": ["devfiles/metadata/metadataAll.yaml"] 7 | }, 8 | { 9 | "FileName" : "metadataBadVersion.yaml", 10 | "ExpectOutcome" : "does not match pattern", 11 | "Files": ["devfiles/metadata/metadataBadVersion.yaml"] 12 | } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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 | //go:build (darwin && !ios) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 genid contains constants for declarations in descriptor.proto 6 | // and the well-known types. 7 | package genid 8 | 9 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" 12 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/command-and-env/patch.yaml: -------------------------------------------------------------------------------- 1 | commands: 2 | - apply: 3 | component: "mycomponent" 4 | id: "command-with-type-changed" 5 | - exec: 6 | commandLine: "commandToReplaceCommandLineReplaced" 7 | env: 8 | - name: "commandToReplaceEnvVarToReplace" 9 | value: "commandToReplaceEnvVarToReplaceNewValue" 10 | - name: "commandToReplaceEndVarToAdd" 11 | value: "commandToReplaceEndVarToAddValue" 12 | id: "command-to-replace" 13 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 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 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.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 | //go:build arm && gc && linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/duplicate-with-parent/result-error.txt: -------------------------------------------------------------------------------- 1 | 3 errors occurred: 2 | * Some Components are already defined in parent: existing-in-parent, existing-in-parent-2. If you want to override them, you should do it in the parent scope. 3 | * Some Variables are already defined in parent: objectVariable. If you want to override them, you should do it in the parent scope. 4 | * Some Attributes are already defined in parent: mainAttribute. If you want to override them, you should do it in the parent scope. 5 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/image-component-union/patch.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: component-to-update 3 | image: 4 | imageName: "newimage:xyz" 5 | dockerfile: 6 | git: 7 | fileLocation: "uri/Dockerfile" 8 | checkoutFrom: 9 | revision: "FOO" 10 | remote: "foo" 11 | remotes: 12 | "foo": "BAR" 13 | buildContext: /BAR/FOO 14 | args: 15 | - "sleep" 16 | - "400" 17 | rootRequired: true 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/.golangci.yaml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 1m 3 | tests: true 4 | 5 | linters: 6 | disable-all: true 7 | enable: 8 | - asciicheck 9 | - errcheck 10 | - forcetypeassert 11 | - gocritic 12 | - gofmt 13 | - goimports 14 | - gosimple 15 | - govet 16 | - ineffassign 17 | - misspell 18 | - revive 19 | - staticcheck 20 | - typecheck 21 | - unused 22 | 23 | issues: 24 | exclude-use-default: false 25 | max-issues-per-linter: 0 26 | max-same-issues: 10 27 | -------------------------------------------------------------------------------- /vendor/github.com/google/gnostic-models/extensions/README.md: -------------------------------------------------------------------------------- 1 | # Extensions 2 | 3 | **Extension Support is experimental.** 4 | 5 | This directory contains support code for building Gnostic extensio handlers and 6 | associated examples. 7 | 8 | Extension handlers can be used to compile vendor or specification extensions 9 | into protocol buffer structures. 10 | 11 | Like plugins, extension handlers are built as separate executables. Extension 12 | bodies are written to extension handlers as serialized 13 | ExtensionHandlerRequests. 14 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.17 2 | // +build !go1.17 3 | 4 | // TODO: once support for Go 1.16 is dropped, this file can be 5 | // merged/removed with assertion_compare_go1.17_test.go and 6 | // assertion_compare_can_convert.go 7 | 8 | package assert 9 | 10 | import "reflect" 11 | 12 | // Older versions of Go does not have the reflect.Value.CanConvert 13 | // method. 14 | func canConvert(value reflect.Value, to reflect.Type) bool { 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /samples/devfiles/with-nodejs-parent.devfile.yaml: -------------------------------------------------------------------------------- 1 | schemaVersion: 2.0.0 2 | metadata: 3 | name: with-parent 4 | parent: 5 | uri: https://raw.githubusercontent.com/che-incubator/devworkspace-api/proposal-25-variant-1-define-stacks/devfile-support/samples/nodejs-stack.devfile.yaml 6 | projects: 7 | - name: example 8 | git: 9 | checkoutFrom: 10 | revision: 'mybranch' 11 | commands: 12 | - id: sayhello 13 | exec: 14 | label: Say Hello 15 | commandLine: echo "hello" 16 | component: nodejs 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_compare_can_convert.go: -------------------------------------------------------------------------------- 1 | //go:build go1.17 2 | // +build go1.17 3 | 4 | // TODO: once support for Go 1.16 is dropped, this file can be 5 | // merged/removed with assertion_compare_go1.17_test.go and 6 | // assertion_compare_legacy.go 7 | 8 | package assert 9 | 10 | import "reflect" 11 | 12 | // Wrapper around reflect.Value.CanConvert, for compatibility 13 | // reasons. 14 | func canConvert(value reflect.Value, to reflect.Type) bool { 15 | return value.CanConvert(to) 16 | } 17 | -------------------------------------------------------------------------------- /generator/vendor/github.com/go-logr/logr/.golangci.yaml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 1m 3 | tests: true 4 | 5 | linters: 6 | disable-all: true 7 | enable: 8 | - asciicheck 9 | - errcheck 10 | - forcetypeassert 11 | - gocritic 12 | - gofmt 13 | - goimports 14 | - gosimple 15 | - govet 16 | - ineffassign 17 | - misspell 18 | - revive 19 | - staticcheck 20 | - typecheck 21 | - unused 22 | 23 | issues: 24 | exclude-use-default: false 25 | max-issues-per-linter: 0 26 | max-same-issues: 10 27 | -------------------------------------------------------------------------------- /generator/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 | //go:build gc 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 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.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 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 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 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.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 | //go:build !cmp_debug 6 | // +build !cmp_debug 7 | 8 | package diff 9 | 10 | var debug debugger 11 | 12 | type debugger struct{} 13 | 14 | func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc { 15 | return f 16 | } 17 | func (debugger) Update() {} 18 | func (debugger) Finish() {} 19 | -------------------------------------------------------------------------------- /generator/vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build appengine js nacl 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on js and 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 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/image-component-union/original.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: unchanged-component 3 | kubernetes: 4 | inlined: "componentToUpdateInline" 5 | endpoints: 6 | - name: endpoint-name 7 | targetPort: 8080 8 | - name: component-to-update 9 | image: 10 | imageName: "myimage:xyz" 11 | dockerfile: 12 | uri: "uri/Dockerfile" 13 | buildContext: /FOO/BAR 14 | args: 15 | - "-f" 16 | - "/dev/null" 17 | rootRequired: false 18 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/openshift-kubernetes.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | uri: "http://link/{{ uri }}" 3 | inlined: | 4 | apiVersion: batch/v1 5 | kind: Job 6 | metadata: 7 | name: pi 8 | spec: 9 | template: 10 | spec: 11 | containers: 12 | - name: job 13 | image: {{inlined}} 14 | endpoints: 15 | - name: endpoint1 16 | exposure: public 17 | path: "{{foo}}" 18 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/ptypes/doc.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 | // Package ptypes provides functionality for interacting with well-known types. 6 | // 7 | // Deprecated: Well-known types have specialized functionality directly 8 | // injected into the generated packages for each message type. 9 | // See the deprecation notice for each function for the suggested alternative. 10 | package ptypes 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/wrappers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field name and number for messages in wrappers.proto. 10 | const ( 11 | WrapperValue_Value_field_name protoreflect.Name = "value" 12 | WrapperValue_Value_field_number protoreflect.FieldNumber = 1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/sort.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Len implements sort.Interface function for length 4 | func (err Error) Len() int { 5 | return len(err.Errors) 6 | } 7 | 8 | // Swap implements sort.Interface function for swapping elements 9 | func (err Error) Swap(i, j int) { 10 | err.Errors[i], err.Errors[j] = err.Errors[j], err.Errors[i] 11 | } 12 | 13 | // Less implements sort.Interface function for determining order 14 | func (err Error) Less(i, j int) bool { 15 | return err.Errors[i].Error() < err.Errors[j].Error() 16 | } 17 | -------------------------------------------------------------------------------- /.clomonitor.yml: -------------------------------------------------------------------------------- 1 | # CLOMonitor metadata file 2 | # This file must be located at the root of the repository 3 | 4 | # Checks exemptions 5 | exemptions: 6 | - check: license_scanning # Check identifier (see https://github.com/cncf/clomonitor/blob/main/docs/checks.md#exemptions) 7 | reason: "There are currently no plans moving forward to implement FOSSA or Snyk for scanning purposes." # Justification of this exemption (mandatory, it will be displayed on the UI) 8 | - check: artifacthub_badge 9 | reason: "This repository has no items that should be added to Artifact Hub." -------------------------------------------------------------------------------- /MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | # Devfile Maintainers 2 | 3 | Official list of Devfile projects maintainers. 4 | 5 | Please keep the below list sorted in ascending order. 6 | 7 | ## Maintainers 8 | 9 | | Maintainer | GitHub ID | Affiliation | 10 | | --------------- | --------- | ----------- | 11 | | Andreas Resios | @resios | AWS | 12 | | Angel Misevski | @amisevsk | Red Hat | 13 | | Elson Yuen | @elsony | Red Hat | 14 | | Ida Olsen | @miaida | AWS | 15 | | Mario Loriedo | @l0rd | Red Hat | 16 | | Stevan Le Meur | @slemeur | Red Hat | 17 | | Tomas Kral | @kadel | Red Hat | 18 | -------------------------------------------------------------------------------- /pkg/validation/variables/test-fixtures/components/container.yaml: -------------------------------------------------------------------------------- 1 | # Variables are defined in test-fixtures/variables/variables-referenced.yaml 2 | image: "image-{{version}}" 3 | env: 4 | - name: "{{foo}}" 5 | value: "{{bar}}" 6 | command: 7 | - tail 8 | - -f 9 | - "{{devnull}}" 10 | args: 11 | - "{{ devnull }}" 12 | memoryLimit: "{{ foo }}" 13 | memoryRequest: "{{foo}}" 14 | sourceMapping: "{{foo}}" 15 | volumeMounts: 16 | - name: vol1 17 | path: "/{{foo}}" 18 | endpoints: 19 | - name: endpoint1 20 | exposure: public 21 | path: "{{foo}}" 22 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `klog` is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/config_pre_go124.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | //go:build !go1.24 6 | 7 | package http2 8 | 9 | import "net/http" 10 | 11 | // Pre-Go 1.24 fallback. 12 | // The Server.HTTP2 and Transport.HTTP2 config fields were added in Go 1.24. 13 | 14 | func fillNetHTTPServerConfig(conf *http2Config, srv *http.Server) {} 15 | 16 | func fillNetHTTPTransportConfig(conf *http2Config, tr *http.Transport) {} 17 | -------------------------------------------------------------------------------- /generator/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 | //go: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 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/klog/v2/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `klog` is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `yaml` Project is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/net/http2/config_pre_go124.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | //go:build !go1.24 6 | 7 | package http2 8 | 9 | import "net/http" 10 | 11 | // Pre-Go 1.24 fallback. 12 | // The Server.HTTP2 and Transport.HTTP2 config fields were added in Go 1.24. 13 | 14 | func fillNetHTTPServerConfig(conf *http2Config, srv *http.Server) {} 15 | 16 | func fillNetHTTPTransportConfig(conf *http2Config, tr *http.Transport) {} 17 | -------------------------------------------------------------------------------- /samples/devworkspaces/with-nodejs-parent-devfile.devworkspace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: "workspace.devfile.io/v1alpha2" 2 | kind: DevWorkspace 3 | metadata: 4 | name: "with-nodejs-devfile-parent" 5 | spec: 6 | started: true 7 | template: 8 | parent: 9 | uri: https://raw.githubusercontent.com/che-incubator/devworkspace-api/proposal-25-variant-1-define-stacks/devfile-support/samples/nodejs-stack.devfile.yaml 10 | commands: 11 | - id: sayhello 12 | exec: 13 | label: Say Hello 14 | commandLine: echo "hello" 15 | component: nodejs 16 | -------------------------------------------------------------------------------- /generator/vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | // +build linux aix 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/yaml/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `yaml` Project is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/location_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Location location.go"; DO NOT EDIT. 2 | 3 | package reflectwalk 4 | 5 | import "fmt" 6 | 7 | const _Location_name = "NoneMapMapKeyMapValueSliceSliceElemArrayArrayElemStructStructFieldWalkLoc" 8 | 9 | var _Location_index = [...]uint8{0, 4, 7, 13, 21, 26, 35, 40, 49, 55, 66, 73} 10 | 11 | func (i Location) String() string { 12 | if i >= Location(len(_Location_index)-1) { 13 | return fmt.Sprintf("Location(%d)", i) 14 | } 15 | return _Location_name[_Location_index[i]:_Location_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/kubernetes-component-union/result.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: "unchanged-plugin-name" 3 | plugin: 4 | id: "unchanged-plugin-id" 5 | - name: component-to-update 6 | kubernetes: 7 | uri: "componentToUpdateUri" 8 | endpoints: 9 | - name: endpoint-name 10 | targetPort: 8080 11 | 12 | # Note: 13 | # 14 | # When changing the union value 15 | # it automatically removes the old mutually-exclusive union value (`inline`) 16 | # But it keeps other fields untouched by the patch, 17 | # such as the `endpoints` list here 18 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 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 | //go:build linux && gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/merges/no-duplicate/result.yaml: -------------------------------------------------------------------------------- 1 | variables: 2 | version1: main 3 | version2: parent 4 | version3: plugin 5 | attributes: 6 | main: true 7 | parent: true 8 | plugin: true 9 | components: 10 | - container: 11 | image: "aValue" 12 | name: "parent-component" 13 | - image: 14 | imageName: "myimage:xyz" 15 | dockerfile: 16 | uri: "uri/Dockerfile" 17 | name: "parent-component-2" 18 | - container: 19 | image: "aValue" 20 | name: "plugin-component" 21 | - container: 22 | image: "anyValue" 23 | name: "new-component" 24 | -------------------------------------------------------------------------------- /generator/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 "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/versions/toolchain.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 versions 6 | 7 | // toolchain is maximum version (<1.22) that the go toolchain used 8 | // to build the current tool is known to support. 9 | // 10 | // When a tool is built with >=1.22, the value of toolchain is unused. 11 | // 12 | // x/tools does not support building with go <1.18. So we take this 13 | // as the minimum possible maximum. 14 | var toolchain string = Go1_18 15 | -------------------------------------------------------------------------------- /license_header.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | Copyright Red Hat 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 | //go:build 386 && hurd 6 | 7 | package unix 8 | 9 | const ( 10 | TIOCGETA = 0x62251713 11 | ) 12 | 13 | type Winsize struct { 14 | Row uint16 15 | Col uint16 16 | Xpixel uint16 17 | Ypixel uint16 18 | } 19 | 20 | type Termios struct { 21 | Iflag uint32 22 | Oflag uint32 23 | Cflag uint32 24 | Lflag uint32 25 | Cc [20]uint8 26 | Ispeed int32 27 | Ospeed int32 28 | } 29 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/pkgbits/frames_go1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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 | //go:build !go1.7 6 | // +build !go1.7 7 | 8 | // TODO(mdempsky): Remove after #44505 is resolved 9 | 10 | package pkgbits 11 | 12 | import "runtime" 13 | 14 | func walkFrames(pcs []uintptr, visit frameVisitor) { 15 | for _, pc := range pcs { 16 | fn := runtime.FuncForPC(pc) 17 | file, line := fn.FileLine(pc) 18 | 19 | visit(file, line, fn.Name(), pc-fn.Entry()) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /generator/vendor/github.com/inconshreveable/mousetrap/trap_others.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package mousetrap 5 | 6 | // StartedByExplorer returns true if the program was invoked by the user 7 | // double-clicking on the executable from explorer.exe 8 | // 9 | // It is conservative and returns false if any of the internal calls fail. 10 | // It does not guarantee that the program was run from a terminal. It only can tell you 11 | // whether it was launched from explorer.exe 12 | // 13 | // On non-Windows platforms, it always returns false. 14 | func StartedByExplorer() bool { 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/event/keys/util.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 keys 6 | 7 | import ( 8 | "sort" 9 | "strings" 10 | ) 11 | 12 | // Join returns a canonical join of the keys in S: 13 | // a sorted comma-separated string list. 14 | func Join[S ~[]T, T ~string](s S) string { 15 | strs := make([]string, 0, len(s)) 16 | for _, v := range s { 17 | strs = append(strs, string(v)) 18 | } 19 | sort.Strings(strs) 20 | return strings.Join(strs, ",") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/timer.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | package http2 5 | 6 | import "time" 7 | 8 | // A timer is a time.Timer, as an interface which can be replaced in tests. 9 | type timer = interface { 10 | C() <-chan time.Time 11 | Reset(d time.Duration) bool 12 | Stop() bool 13 | } 14 | 15 | // timeTimer adapts a time.Timer to the timer interface. 16 | type timeTimer struct { 17 | *time.Timer 18 | } 19 | 20 | func (t timeTimer) C() <-chan time.Time { return t.Timer.C } 21 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 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/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 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 | -------------------------------------------------------------------------------- /generator/vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | // +build plan9 2 | 3 | package isatty 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // IsTerminal returns true if the given file descriptor is a terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | path, err := syscall.Fd2path(int(fd)) 12 | if err != nil { 13 | return false 14 | } 15 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 16 | } 17 | 18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 19 | // terminal. This is also always false on this environment. 20 | func IsCygwinTerminal(fd uintptr) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/json/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Committee to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | deads2k 14 | lavalamp 15 | liggitt 16 | -------------------------------------------------------------------------------- /generator/vendor/github.com/gobuffalo/flect/singular_rules.go: -------------------------------------------------------------------------------- 1 | package flect 2 | 3 | var singularRules = []rule{} 4 | 5 | // AddSingular adds a rule that will replace the given suffix with the replacement suffix. 6 | func AddSingular(ext string, repl string) { 7 | singularMoot.Lock() 8 | defer singularMoot.Unlock() 9 | singularRules = append(singularRules, rule{ 10 | suffix: ext, 11 | fn: func(s string) string { 12 | s = s[:len(s)-len(ext)] 13 | return s + repl 14 | }, 15 | }) 16 | 17 | singularRules = append(singularRules, rule{ 18 | suffix: repl, 19 | fn: func(s string) string { 20 | return s 21 | }, 22 | }) 23 | } 24 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/net/http2/timer.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | package http2 5 | 6 | import "time" 7 | 8 | // A timer is a time.Timer, as an interface which can be replaced in tests. 9 | type timer = interface { 10 | C() <-chan time.Time 11 | Reset(d time.Duration) bool 12 | Stop() bool 13 | } 14 | 15 | // timeTimer adapts a time.Timer to the timer interface. 16 | type timeTimer struct { 17 | *time.Timer 18 | } 19 | 20 | func (t timeTimer) C() <-chan time.Time { return t.Timer.C } 21 | -------------------------------------------------------------------------------- /generator/vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 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 | -------------------------------------------------------------------------------- /samples/devfile-registry/redhat-theia-vsx-template.devfile.yaml: -------------------------------------------------------------------------------- 1 | schemaVersion: 2.0.0 2 | metadata: 3 | attributes: 4 | publisher: redhat 5 | name: vsx-template 6 | type: template 7 | parameters: 8 | VSX_LIST 9 | components: 10 | - name: vsx-installer 11 | container: 12 | image: vsx-installer 13 | volumeMounts: 14 | - name: vsx 15 | path: "/vsx" 16 | env: 17 | - name: VSX_LIST 18 | value: "" 19 | - name: vsx 20 | volume: {} 21 | commands: 22 | - id: copyvsx 23 | apply: 24 | component: vsx-installer 25 | events: 26 | preStart: 27 | - copyvsx 28 | -------------------------------------------------------------------------------- /samples/devfiles/utils/deployment-manifest.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | kind: Deployment 3 | apiVersion: apps/v1 4 | metadata: 5 | name: my-node 6 | spec: 7 | replicas: 1 8 | selector: 9 | matchLabels: 10 | app: node-app 11 | template: 12 | metadata: 13 | labels: 14 | app: node-app 15 | spec: 16 | containers: 17 | - name: my-node 18 | image: node-image:latest 19 | ports: 20 | - name: http 21 | containerPort: 3001 22 | protocol: TCP 23 | resources: 24 | limits: 25 | memory: "128Mi" 26 | cpu: "500m" 27 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_reflect.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build protoreflect 7 | // +build protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = false 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/json/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Committee to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | deads2k 14 | lavalamp 15 | liggitt 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | //go:build !purego && !appengine 6 | // +build !purego,!appengine 7 | 8 | package impl 9 | 10 | // When using unsafe pointers, we can just treat enum values as int32s. 11 | 12 | var ( 13 | coderEnumNoZero = coderInt32NoZero 14 | coderEnum = coderInt32 15 | coderEnumPtr = coderInt32Ptr 16 | coderEnumSlice = coderInt32Slice 17 | coderEnumPackedSlice = coderInt32PackedSlice 18 | ) 19 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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 | //go:build linux 6 | 7 | package unix 8 | 9 | import "runtime" 10 | 11 | // SysvShmCtl performs control operations on the shared memory segment 12 | // specified by id. 13 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 14 | if runtime.GOARCH == "arm" || 15 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 16 | cmd |= ipc_64 17 | } 18 | 19 | return shmctl(id, cmd, desc) 20 | } 21 | -------------------------------------------------------------------------------- /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 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_methods.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build !protoreflect 7 | // +build !protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = true 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return m.ProtoMethods() 20 | } 21 | -------------------------------------------------------------------------------- /generator/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 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_118.go: -------------------------------------------------------------------------------- 1 | //+build !go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) (val *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | return &UnsafeMapIterator{ 17 | hiter: mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)), 18 | pKeyRType: type2.pKeyRType, 19 | pElemRType: type2.pElemRType, 20 | } 21 | } -------------------------------------------------------------------------------- /generator/vendor/github.com/gobuffalo/flect/capitalize.go: -------------------------------------------------------------------------------- 1 | package flect 2 | 3 | import "unicode" 4 | 5 | // Capitalize will cap the first letter of string 6 | // user = User 7 | // bob dylan = Bob dylan 8 | // widget_id = Widget_id 9 | func Capitalize(s string) string { 10 | return New(s).Capitalize().String() 11 | } 12 | 13 | // Capitalize will cap the first letter of string 14 | // user = User 15 | // bob dylan = Bob dylan 16 | // widget_id = Widget_id 17 | func (i Ident) Capitalize() Ident { 18 | if len(i.Parts) == 0 { 19 | return New("") 20 | } 21 | runes := []rune(i.Original) 22 | runes[0] = unicode.ToTitle(runes[0]) 23 | return New(string(runes)) 24 | } 25 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/tools/internal/versions/types.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 versions 6 | 7 | import ( 8 | "go/types" 9 | ) 10 | 11 | // GoVersion returns the Go version of the type package. 12 | // It returns zero if no version can be determined. 13 | func GoVersion(pkg *types.Package) string { 14 | // TODO(taking): x/tools can call GoVersion() [from 1.21] after 1.25. 15 | if pkg, ok := any(pkg).(interface{ GoVersion() string }); ok { 16 | return pkg.GoVersion() 17 | } 18 | return "" 19 | } 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/map_entry.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field names and numbers for synthetic map entry messages. 10 | const ( 11 | MapEntry_Key_field_name protoreflect.Name = "key" 12 | MapEntry_Value_field_name protoreflect.Name = "value" 13 | 14 | MapEntry_Key_field_number protoreflect.FieldNumber = 1 15 | MapEntry_Value_field_number protoreflect.FieldNumber = 2 16 | ) 17 | -------------------------------------------------------------------------------- /generator/vendor/github.com/gobuffalo/flect/SHOULDERS.md: -------------------------------------------------------------------------------- 1 | # github.com/gobuffalo/flect Stands on the Shoulders of Giants 2 | 3 | github.com/gobuffalo/flect does not try to reinvent the wheel! Instead, it uses the already great wheels developed by the Go community and puts them all together in the best way possible. Without these giants, this project would not be possible. Please make sure to check them out and thank them for all of their hard work. 4 | 5 | Thank you to the following **GIANTS**: 6 | 7 | 8 | * [github.com/davecgh/go-spew](https://godoc.org/github.com/davecgh/go-spew) 9 | 10 | * [github.com/stretchr/testify](https://godoc.org/github.com/stretchr/testify) 11 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/go_below_118.go: -------------------------------------------------------------------------------- 1 | //+build !go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) (val *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | return &UnsafeMapIterator{ 17 | hiter: mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)), 18 | pKeyRType: type2.pKeyRType, 19 | pElemRType: type2.pElemRType, 20 | } 21 | } -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/add-command-and-component/patch.yaml: -------------------------------------------------------------------------------- 1 | commands: 2 | - apply: 3 | component: "mycomponent" 4 | id: "command-with-type-changed" 5 | - exec: 6 | commandLine: "commandToReplaceCommandLineReplaced" 7 | env: 8 | - name: "commandToReplaceEnvVarToReplace" 9 | value: "commandToReplaceEnvVarToReplaceNewValue" 10 | - name: "commandToReplaceEndVarToAdd" 11 | value: "commandToReplaceEndVarToAddValue" 12 | id: "command-to-replace" 13 | - exec: 14 | commandLine: "commandToAddCommandLine" 15 | id: "command-to-add" 16 | components: 17 | - volume: {} 18 | name: new-volume 19 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/empty_gen.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 | // Code generated by generate-protos. DO NOT EDIT. 6 | 7 | package genid 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | const File_google_protobuf_empty_proto = "google/protobuf/empty.proto" 14 | 15 | // Names for google.protobuf.Empty. 16 | const ( 17 | Empty_message_name protoreflect.Name = "Empty" 18 | Empty_message_fullname protoreflect.FullName = "google.protobuf.Empty" 19 | ) 20 | -------------------------------------------------------------------------------- /generator/vendor/github.com/gobuffalo/flect/pascalize.go: -------------------------------------------------------------------------------- 1 | package flect 2 | 3 | import ( 4 | "unicode" 5 | ) 6 | 7 | // Pascalize returns a string with each segment capitalized 8 | // user = User 9 | // bob dylan = BobDylan 10 | // widget_id = WidgetID 11 | func Pascalize(s string) string { 12 | return New(s).Pascalize().String() 13 | } 14 | 15 | // Pascalize returns a string with each segment capitalized 16 | // user = User 17 | // bob dylan = BobDylan 18 | // widget_id = WidgetID 19 | func (i Ident) Pascalize() Ident { 20 | c := i.Camelize() 21 | if len(c.String()) == 0 { 22 | return c 23 | } 24 | return New(string(unicode.ToUpper(rune(c.Original[0]))) + c.Original[1:]) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Logr is open to pull-requests, provided they fit within the intended scope of 4 | the project. Specifically, this library aims to be VERY small and minimalist, 5 | with no external dependencies. 6 | 7 | ## Compatibility 8 | 9 | This project intends to follow [semantic versioning](http://semver.org) and 10 | is very strict about compatibility. Any proposed changes MUST follow those 11 | rules. 12 | 13 | ## Performance 14 | 15 | As a logging library, logr must be as light-weight as possible. Any proposed 16 | code change must include results of running the [benchmark](./benchmark) 17 | before and after the change. 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Unix-style newlines with a newline ending every file 5 | [*] 6 | end_of_line = lf 7 | insert_final_newline = true 8 | indent_style = space 9 | indent_size = 2 10 | trim_trailing_whitespace = true 11 | 12 | # Set default charset 13 | [*.{js,py,go,scala,rb,java,html,css,less,sass,md}] 14 | charset = utf-8 15 | 16 | # Tab indentation (no size specified) 17 | [*.go] 18 | indent_style = tab 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false 22 | 23 | # Matches the exact files either package.json or .travis.yml 24 | [{package.json,.travis.yml}] 25 | indent_style = space 26 | indent_size = 2 27 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_118.go: -------------------------------------------------------------------------------- 1 | //+build go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | var it hiter 17 | mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it) 18 | return &UnsafeMapIterator{ 19 | hiter: &it, 20 | pKeyRType: type2.pKeyRType, 21 | pElemRType: type2.pElemRType, 22 | } 23 | } -------------------------------------------------------------------------------- /generator/vendor/github.com/go-logr/logr/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Logr is open to pull-requests, provided they fit within the intended scope of 4 | the project. Specifically, this library aims to be VERY small and minimalist, 5 | with no external dependencies. 6 | 7 | ## Compatibility 8 | 9 | This project intends to follow [semantic versioning](http://semver.org) and 10 | is very strict about compatibility. Any proposed changes MUST follow those 11 | rules. 12 | 13 | ## Performance 14 | 15 | As a logging library, logr must be as light-weight as possible. Any proposed 16 | code change must include results of running the [benchmark](./benchmark) 17 | before and after the change. 18 | -------------------------------------------------------------------------------- /generator/vendor/github.com/modern-go/reflect2/go_above_118.go: -------------------------------------------------------------------------------- 1 | //+build go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | var it hiter 17 | mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it) 18 | return &UnsafeMapIterator{ 19 | hiter: &it, 20 | pKeyRType: type2.pKeyRType, 21 | pElemRType: type2.pElemRType, 22 | } 23 | } -------------------------------------------------------------------------------- /generator/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 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 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 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 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 | //go:build linux && gc && 386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonpointer/.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Unix-style newlines with a newline ending every file 5 | [*] 6 | end_of_line = lf 7 | insert_final_newline = true 8 | indent_style = space 9 | indent_size = 2 10 | trim_trailing_whitespace = true 11 | 12 | # Set default charset 13 | [*.{js,py,go,scala,rb,java,html,css,less,sass,md}] 14 | charset = utf-8 15 | 16 | # Tab indentation (no size specified) 17 | [*.go] 18 | indent_style = tab 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false 22 | 23 | # Matches the exact files either package.json or .travis.yml 24 | [{package.json,.travis.yml}] 25 | indent_style = space 26 | indent_size = 2 27 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Committee to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | dims 14 | thockin 15 | justinsb 16 | tallclair 17 | piosz 18 | brancz 19 | DirectXMan12 20 | lavalamp 21 | -------------------------------------------------------------------------------- /generator/validate/zz_generated.markerhelp.go: -------------------------------------------------------------------------------- 1 | //go:build !ignore_autogenerated 2 | // +build !ignore_autogenerated 3 | 4 | // Generated for the devfile generator 5 | 6 | // Code generated by helpgen. DO NOT EDIT. 7 | 8 | package validate 9 | 10 | import ( 11 | "sigs.k8s.io/controller-tools/pkg/markers" 12 | ) 13 | 14 | func (Generator) Help() *markers.DefinitionHelp { 15 | return &markers.DefinitionHelp{ 16 | Category: "", 17 | DetailedHelp: markers.DetailedHelp{ 18 | Summary: "validates the consistency of the API GO code. ", 19 | Details: "Validity checks are related to unions, patchStrategy, and optional fields.", 20 | }, 21 | FieldHelp: map[string]markers.DetailedHelp{}, 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /generator/vendor/github.com/spf13/cobra/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | # Vim files https://github.com/github/gitignore/blob/master/Global/Vim.gitignore 23 | # swap 24 | [._]*.s[a-w][a-z] 25 | [._]s[a-w][a-z] 26 | # session 27 | Session.vim 28 | # temporary 29 | .netrwhist 30 | *~ 31 | # auto-generated tag files 32 | tags 33 | 34 | *.exe 35 | cobra.test 36 | bin 37 | 38 | .idea/ 39 | *.iml 40 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/json/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2021 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 json // import "sigs.k8s.io/json" 18 | -------------------------------------------------------------------------------- /generator/vendor/k8s.io/klog/v2/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Committee to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | dims 14 | thockin 15 | justinsb 16 | tallclair 17 | piosz 18 | brancz 19 | DirectXMan12 20 | lavalamp 21 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/json/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2021 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 json // import "sigs.k8s.io/json" 18 | -------------------------------------------------------------------------------- /pkg/utils/overriding/test-fixtures/patches/image-component-union/result.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: unchanged-component 3 | kubernetes: 4 | inlined: "componentToUpdateInline" 5 | endpoints: 6 | - name: endpoint-name 7 | targetPort: 8080 8 | - name: component-to-update 9 | image: 10 | imageName: "newimage:xyz" 11 | dockerfile: 12 | git: 13 | fileLocation: "uri/Dockerfile" 14 | checkoutFrom: 15 | revision: "FOO" 16 | remote: "foo" 17 | remotes: 18 | "foo": "BAR" 19 | buildContext: /BAR/FOO 20 | args: 21 | - "sleep" 22 | - "400" 23 | rootRequired: true 24 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [[projects]] 11 | name = "github.com/modern-go/reflect2" 12 | packages = ["."] 13 | revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" 14 | version = "1.0.1" 15 | 16 | [solve-meta] 17 | analyzer-name = "dep" 18 | analyzer-version = 1 19 | inputs-digest = "ea54a775e5a354cb015502d2e7aa4b74230fc77e894f34a838b268c25ec8eeb8" 20 | solver-name = "gps-cdcl" 21 | solver-version = 1 22 | -------------------------------------------------------------------------------- /generator/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/sigs.k8s.io/yaml/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Team to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://github.com/kubernetes/sig-release/blob/master/security-release-process-documentation/security-release-process.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | cjcullen 14 | jessfraz 15 | liggitt 16 | philips 17 | tallclair 18 | -------------------------------------------------------------------------------- /generator/vendor/github.com/json-iterator/go/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [[projects]] 11 | name = "github.com/modern-go/reflect2" 12 | packages = ["."] 13 | revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" 14 | version = "1.0.1" 15 | 16 | [solve-meta] 17 | analyzer-name = "dep" 18 | analyzer-version = 1 19 | inputs-digest = "ea54a775e5a354cb015502d2e7aa4b74230fc77e894f34a838b268c25ec8eeb8" 20 | solver-name = "gps-cdcl" 21 | solver-version = 1 22 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerEnvNoName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testcontainer" 2 | container: 3 | args: [Arg1,Arg] 4 | command: [run1,run2] 5 | dedicatedPod: false 6 | image: "tester" 7 | memoryLimit: "128M" 8 | mountSources: true 9 | endpoints: 10 | - name: test-http 11 | attributes: 12 | test: Apply Test 13 | scope: Api 14 | exposure: public 15 | path: test-path 16 | protocol: http 17 | secure: false 18 | targetPort: 1234 19 | volumeMounts: 20 | - name: volume 21 | path: mount 22 | sourceMapping: sourceMapping 23 | env: 24 | - value: envValue 25 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerEnvNoValue.yaml: -------------------------------------------------------------------------------- 1 | - name: "testcontainer" 2 | container: 3 | args: [Arg1,Arg] 4 | command: [run1,run2] 5 | dedicatedPod: false 6 | image: "tester" 7 | memoryLimit: "128M" 8 | mountSources: true 9 | endpoints: 10 | - name: test-http 11 | attributes: 12 | test: Apply Test 13 | scope: Api 14 | exposure: public 15 | path: test-path 16 | protocol: http 17 | secure: false 18 | targetPort: 1234 19 | volumeMounts: 20 | - name: volume 21 | path: mount 22 | sourceMapping: sourceMapping 23 | env: 24 | - name: envName 25 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerNoImage.yaml: -------------------------------------------------------------------------------- 1 | - name: "testcontainer" 2 | container: 3 | args: [Arg1,Arg] 4 | command: [run1,run2] 5 | dedicatedPod: false 6 | memoryLimit: "128M" 7 | mountSources: true 8 | endpoints: 9 | - name: test-http 10 | attributes: 11 | test: Apply Test 12 | scope: Api 13 | exposure: public 14 | path: test-path 15 | protocol: http 16 | secure: false 17 | targetPort: 1234 18 | volumeMounts: 19 | - name: volume 20 | path: mount 21 | sourceMapping: sourceMapping 22 | env: 23 | - name: envName 24 | value: envValue 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/flatten.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Flatten flattens the given error, merging any *Errors together into 4 | // a single *Error. 5 | func Flatten(err error) error { 6 | // If it isn't an *Error, just return the error as-is 7 | if _, ok := err.(*Error); !ok { 8 | return err 9 | } 10 | 11 | // Otherwise, make the result and flatten away! 12 | flatErr := new(Error) 13 | flatten(err, flatErr) 14 | return flatErr 15 | } 16 | 17 | func flatten(err error, flatErr *Error) { 18 | switch err := err.(type) { 19 | case *Error: 20 | for _, e := range err.Errors { 21 | flatten(e, flatErr) 22 | } 23 | default: 24 | flatErr.Errors = append(flatErr.Errors, err) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /generator/vendor/sigs.k8s.io/yaml/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Team to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://github.com/kubernetes/sig-release/blob/master/security-release-process-documentation/security-release-process.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | cjcullen 14 | jessfraz 15 | liggitt 16 | philips 17 | tallclair 18 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerEndpointMissingName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testcontainer" 2 | container: 3 | args: [Arg1,Arg] 4 | command: [run1,run2] 5 | dedicatedPod: false 6 | image: "tester" 7 | memoryLimit: "128M" 8 | mountSources: true 9 | endpoints: 10 | - attributes: 11 | test: Apply Test 12 | scope: Api 13 | exposure: public 14 | path: test-path 15 | protocol: http 16 | secure: false 17 | targetPort: 1234 18 | volumeMounts: 19 | - name: volume 20 | path: mount 21 | sourceMapping: sourceMapping 22 | env: 23 | - name: envName 24 | value: envValue 25 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerEndpointMissingPort.yaml: -------------------------------------------------------------------------------- 1 | - name: "testcontainer" 2 | container: 3 | args: [Arg1,Arg] 4 | command: [run1,run2] 5 | dedicatedPod: false 6 | image: "tester" 7 | memoryLimit: "128M" 8 | mountSources: true 9 | endpoints: 10 | - name: test-http 11 | attributes: 12 | test: Apply Test 13 | scope: Api 14 | exposure: public 15 | path: test-path 16 | protocol: http 17 | secure: false 18 | volumeMounts: 19 | - name: volume 20 | path: mount 21 | sourceMapping: sourceMapping 22 | env: 23 | - name: envName 24 | value: envValue 25 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/enum.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 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 impl 6 | 7 | import ( 8 | "reflect" 9 | 10 | "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | type EnumInfo struct { 14 | GoReflectType reflect.Type // int32 kind 15 | Desc protoreflect.EnumDescriptor 16 | } 17 | 18 | func (t *EnumInfo) New(n protoreflect.EnumNumber) protoreflect.Enum { 19 | return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(protoreflect.Enum) 20 | } 21 | func (t *EnumInfo) Descriptor() protoreflect.EnumDescriptor { return t.Desc } 22 | -------------------------------------------------------------------------------- /generator/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 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 | //go:build linux && gccgo && arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /test/v200/devfiles/components/containerVolumeMissingName.yaml: -------------------------------------------------------------------------------- 1 | - name: "testcontainer" 2 | container: 3 | args: [Arg1,Arg] 4 | command: [run1,run2] 5 | dedicatedPod: false 6 | image: "tester" 7 | memoryLimit: "128M" 8 | mountSources: true 9 | endpoints: 10 | - name: test-http 11 | attributes: 12 | test: Apply Test 13 | scope: Api 14 | exposure: public 15 | path: test-path 16 | protocol: http 17 | secure: false 18 | targetPort: 1234 19 | volumeMounts: 20 | - path: mount 21 | sourceMapping: sourceMapping 22 | env: 23 | - name: envName 24 | value: envValue 25 | --------------------------------------------------------------------------------