From 7c629530e1d38974515f89ad932e0759380c3955 Mon Sep 17 00:00:00 2001 From: Hang Yan Date: Sun, 29 Aug 2021 22:53:41 +0800 Subject: [PATCH] 1.24.0 Release (#1424) --- CHANGELOG.md | 71 ++++++++++++++++++++++-------------------- README.md | 6 ++-- build/VERSION | 2 +- docs/installation.md | 6 ++-- docs/introduction.md | 6 ++-- pkg/version/version.go | 2 +- script/release.sh | 10 +++--- 7 files changed, 53 insertions(+), 50 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 139fe6fe..d89b163a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,41 @@ # Changelog -## [v1.23.0](https://github.com/kubernetes/kompose/tree/v1.23.0) (2021-07-12) +## [v1.24.0](https://github.com/kubernetes/kompose/tree/v1.24.0) (2021-08-29) + +[Full Changelog](https://github.com/kubernetes/kompose/compare/v1.23.0...v1.24.0) + +**Closed issues:** + +- Output as many yaml docs [\#1421](https://github.com/kubernetes/kompose/issues/1421) +- Building docker-compose file with absolute path fail [\#1410](https://github.com/kubernetes/kompose/issues/1410) +- Completion Support for `fish` [\#1403](https://github.com/kubernetes/kompose/issues/1403) +- Bad LoadBalancer service generation [\#1399](https://github.com/kubernetes/kompose/issues/1399) +- Change the default PVCRequestSize through command line argument / configuration file [\#1374](https://github.com/kubernetes/kompose/issues/1374) +- Kompose doesn't handle volumes [\#1368](https://github.com/kubernetes/kompose/issues/1368) +- Do you handle Dockerfile ? [\#1367](https://github.com/kubernetes/kompose/issues/1367) +- --build should not automatically push [\#1363](https://github.com/kubernetes/kompose/issues/1363) +- Adding storageClassName to persistent volume claim manifest [\#1362](https://github.com/kubernetes/kompose/issues/1362) +- Support for negated placement constraint docker-compose v3 [\#1132](https://github.com/kubernetes/kompose/issues/1132) + +**Merged pull requests:** + +- Fix misuse in struct kobject.ServiceConfig.Port [\#1423](https://github.com/kubernetes/kompose/pull/1423) ([ichxxx](https://github.com/ichxxx)) +- Add local golangci-lint [\#1420](https://github.com/kubernetes/kompose/pull/1420) ([aiyijing](https://github.com/aiyijing)) +- Add support for negated placement constraint [\#1419](https://github.com/kubernetes/kompose/pull/1419) ([ichxxx](https://github.com/ichxxx)) +- Add support for bindata in cm [\#1418](https://github.com/kubernetes/kompose/pull/1418) ([hangyan](https://github.com/hangyan)) +- Add parse windows volume [\#1417](https://github.com/kubernetes/kompose/pull/1417) ([aiyijing](https://github.com/aiyijing)) +- fix kompose.image-pull-secret invalid when use compose configs [\#1414](https://github.com/kubernetes/kompose/pull/1414) ([xingjianhui](https://github.com/xingjianhui)) +- Add storageClassName label to persistent volume claim manifest in doc… [\#1413](https://github.com/kubernetes/kompose/pull/1413) ([Wusuluren](https://github.com/Wusuluren)) +- add autocompletion for fish shell [\#1412](https://github.com/kubernetes/kompose/pull/1412) ([top](https://github.com/top)) +- Fix build context [\#1411](https://github.com/kubernetes/kompose/pull/1411) ([lexcao](https://github.com/lexcao)) +- Support custom registry on pushing image [\#1409](https://github.com/kubernetes/kompose/pull/1409) ([lexcao](https://github.com/lexcao)) +- Add "--pvc-request-size" new command line parameter [\#1406](https://github.com/kubernetes/kompose/pull/1406) ([ithaiq](https://github.com/ithaiq)) +- fix: --build flag default change to local [\#1405](https://github.com/kubernetes/kompose/pull/1405) ([zeromake](https://github.com/zeromake)) +- Fix the selector field of service resource [\#1404](https://github.com/kubernetes/kompose/pull/1404) ([cnbailian](https://github.com/cnbailian)) +- chore: update error for wrong volume type [\#1402](https://github.com/kubernetes/kompose/pull/1402) ([Yiyiyimu](https://github.com/Yiyiyimu)) +- Add ServiceAccountName [\#1401](https://github.com/kubernetes/kompose/pull/1401) ([tk42](https://github.com/tk42)) + +## [v1.23.0](https://github.com/kubernetes/kompose/tree/v1.23.0) (2021-07-13) [Full Changelog](https://github.com/kubernetes/kompose/compare/v1.22.0...v1.23.0) @@ -14,7 +49,6 @@ - image name in deployment is missing project prefix from docker-compose images [\#1375](https://github.com/kubernetes/kompose/issues/1375) - kompose convert permission denied ? [\#1370](https://github.com/kubernetes/kompose/issues/1370) - Kompose not handling docker-compose file generated using `docker config` command [\#1364](https://github.com/kubernetes/kompose/issues/1364) -- Adding storageClassName to persistent volume claim manifest [\#1362](https://github.com/kubernetes/kompose/issues/1362) - Panic on nil map when labels exist only in second config [\#1361](https://github.com/kubernetes/kompose/issues/1361) - \[Question\] Can kubernets recreate your images from a dockerfile? [\#1360](https://github.com/kubernetes/kompose/issues/1360) - Panic when converting Docker compose service with 'start\_first' to kubernetes [\#1359](https://github.com/kubernetes/kompose/issues/1359) @@ -37,7 +71,6 @@ - problems converting docker-compose file using local environment variables [\#1314](https://github.com/kubernetes/kompose/issues/1314) - FATA enviroment Additional property enviroment is not allowed [\#1310](https://github.com/kubernetes/kompose/issues/1310) - How do you download this [\#1309](https://github.com/kubernetes/kompose/issues/1309) -- kompose convert --volumes=configMap does not add binary data. [\#1308](https://github.com/kubernetes/kompose/issues/1308) - docker-compose Version 3.4+ Support [\#1304](https://github.com/kubernetes/kompose/issues/1304) - ✨ Kompose converts into Pod instead of Deployment [\#1301](https://github.com/kubernetes/kompose/issues/1301) - support podman [\#1296](https://github.com/kubernetes/kompose/issues/1296) @@ -47,9 +80,7 @@ - --build build-config wipes image streams [\#1285](https://github.com/kubernetes/kompose/issues/1285) - Handle minor versions [\#1283](https://github.com/kubernetes/kompose/issues/1283) - kompose convert with openshift option is ignoring hyphens in docker image name [\#1282](https://github.com/kubernetes/kompose/issues/1282) -- kompose secrets file location [\#1280](https://github.com/kubernetes/kompose/issues/1280) - loadbalancer conversion won't work for mixed protocols [\#1276](https://github.com/kubernetes/kompose/issues/1276) -- kompose convert Volume mount on the host isn't supported [\#1271](https://github.com/kubernetes/kompose/issues/1271) - -o flag should create directory if does not exist for convert [\#1265](https://github.com/kubernetes/kompose/issues/1265) - Support for readinessProbe [\#1262](https://github.com/kubernetes/kompose/issues/1262) - Losing quotes when converting "yes" and "no" [\#1253](https://github.com/kubernetes/kompose/issues/1253) @@ -57,12 +88,10 @@ - no matches for kind "Deployment" in version "extensions/v1beta1" [\#1236](https://github.com/kubernetes/kompose/issues/1236) - convert the 2.1 version docker-compose.yaml error!!!!! [\#1235](https://github.com/kubernetes/kompose/issues/1235) - Kompose doesn't work with docker-compose v3.7 [\#1152](https://github.com/kubernetes/kompose/issues/1152) -- error decoding 'Ports': No port specified: ::\ [\#1104](https://github.com/kubernetes/kompose/issues/1104) -- Convert version 3.5 of Docker Compose is not supported [\#1058](https://github.com/kubernetes/kompose/issues/1058) -- FATA services.xxx.ports.0 must be a string or number [\#986](https://github.com/kubernetes/kompose/issues/986) **Merged pull requests:** +- Release 1.23.0 [\#1398](https://github.com/kubernetes/kompose/pull/1398) ([kadel](https://github.com/kadel)) - support multiple containers in a pod [\#1394](https://github.com/kubernetes/kompose/pull/1394) ([tk42](https://github.com/tk42)) - actually use normalizeNetworkNames to produce valid network names [\#1393](https://github.com/kubernetes/kompose/pull/1393) ([exokortex](https://github.com/exokortex)) - Fixed, \#1385 [\#1386](https://github.com/kubernetes/kompose/pull/1386) ([james-song](https://github.com/james-song)) @@ -128,22 +157,15 @@ - Labels are not passed as annotations when creating a Pod [\#1247](https://github.com/kubernetes/kompose/issues/1247) - Add support for 2.4 version of docker - compose [\#1246](https://github.com/kubernetes/kompose/issues/1246) - Instructions Corporate CLA [\#1241](https://github.com/kubernetes/kompose/issues/1241) -- Dotfile path \(e.g ./envs/./production/.envs\) errors/is not supported in Kompose [\#1240](https://github.com/kubernetes/kompose/issues/1240) - \[BUG\] Repeated resources in YAML file when --out flag is supplied [\#1239](https://github.com/kubernetes/kompose/issues/1239) - \[Feature\]: Validation of supported attributes within a docker-compose file [\#1237](https://github.com/kubernetes/kompose/issues/1237) - How do I start a POD with my transformed files [\#1234](https://github.com/kubernetes/kompose/issues/1234) - Error while deploying application: Get http://localhost:8080/api: dial tcp \[::1\]:8080: connect: connection refused [\#1201](https://github.com/kubernetes/kompose/issues/1201) -- Create route for openshift - targert port should be a string [\#1184](https://github.com/kubernetes/kompose/issues/1184) - Error when i'm trying to convert my docker-compose [\#1130](https://github.com/kubernetes/kompose/issues/1130) -- Issues with volume mounts in docker-compose.yml [\#1097](https://github.com/kubernetes/kompose/issues/1097) -- How do I use a service account? [\#1088](https://github.com/kubernetes/kompose/issues/1088) - Labels not converted to annotations in ingress [\#1071](https://github.com/kubernetes/kompose/issues/1071) - Init Containers [\#1053](https://github.com/kubernetes/kompose/issues/1053) - Unable to push to Google Cloud [\#1043](https://github.com/kubernetes/kompose/issues/1043) -- Kubernetes multiple volumeMounts with subPath and 1 configmap volume - onle 1 volumeMount works [\#1005](https://github.com/kubernetes/kompose/issues/1005) - Glide update error [\#1003](https://github.com/kubernetes/kompose/issues/1003) -- extended env\_file capability to in-docker-compose.yml substitutions [\#909](https://github.com/kubernetes/kompose/issues/909) -- Add support for "scratch space" volumes [\#850](https://github.com/kubernetes/kompose/issues/850) - Re-add tests for buildconfig to OpenShift cluster [\#755](https://github.com/kubernetes/kompose/issues/755) - Delete BuildConfig on `kompose down` [\#632](https://github.com/kubernetes/kompose/issues/632) @@ -255,16 +277,12 @@ - Provide checksum file for releases [\#1173](https://github.com/kubernetes/kompose/issues/1173) - Could you please consider to provide the line number in the `WARN`? [\#1160](https://github.com/kubernetes/kompose/issues/1160) - bug: docker configs object filepath error [\#1157](https://github.com/kubernetes/kompose/issues/1157) -- Support yaml anchors [\#1155](https://github.com/kubernetes/kompose/issues/1155) - question: how does converting service discovery by hostname with docker-compose work? [\#1154](https://github.com/kubernetes/kompose/issues/1154) - Label `kompose.service.type: loadbalancer` does not convert to type LoadBalancer [\#1150](https://github.com/kubernetes/kompose/issues/1150) - Travis ci seems broken [\#1148](https://github.com/kubernetes/kompose/issues/1148) - Unknown flag: from [\#1140](https://github.com/kubernetes/kompose/issues/1140) -- Support for ipv6 ports annotations [\#1136](https://github.com/kubernetes/kompose/issues/1136) - add support for Alias [\#1134](https://github.com/kubernetes/kompose/issues/1134) -- Support for negated placement constraint docker-compose v3 [\#1132](https://github.com/kubernetes/kompose/issues/1132) - panic: interface conversion: interface {} is nil, not map\[string\]interface {} [\#1129](https://github.com/kubernetes/kompose/issues/1129) -- Change Chart.yaml attribute version when converted to helm [\#1127](https://github.com/kubernetes/kompose/issues/1127) - Add Support for docker-compose 3.4 [\#1125](https://github.com/kubernetes/kompose/issues/1125) - Support kompose up build with no push [\#1105](https://github.com/kubernetes/kompose/issues/1105) - Proposal: Use the docker-compose network as kubernetes namespace [\#1066](https://github.com/kubernetes/kompose/issues/1066) @@ -305,15 +323,10 @@ - Fix dep [\#1119](https://github.com/kubernetes/kompose/issues/1119) - "kompose up" won't push to Google on Windows Subsystem for Linux [\#1117](https://github.com/kubernetes/kompose/issues/1117) - Drop master/slave terminology in the docs [\#1116](https://github.com/kubernetes/kompose/issues/1116) -- HostPath volumes File/Directory detection [\#1113](https://github.com/kubernetes/kompose/issues/1113) - Placement tag inside deploy [\#1107](https://github.com/kubernetes/kompose/issues/1107) -- Names based on the helm chart name [\#1098](https://github.com/kubernetes/kompose/issues/1098) -- volumeMounts and subPath - how to convert named volumes [\#1096](https://github.com/kubernetes/kompose/issues/1096) - Compose-on-kubernetes and kompose [\#1086](https://github.com/kubernetes/kompose/issues/1086) -- openshift route with edge termination [\#1085](https://github.com/kubernetes/kompose/issues/1085) - Support for PVC Access Mode ReadWriteMany [\#1046](https://github.com/kubernetes/kompose/issues/1046) - Add official docker image build [\#1045](https://github.com/kubernetes/kompose/issues/1045) -- Unable to kompose up my django container from windows or azure cloudshell. [\#966](https://github.com/kubernetes/kompose/issues/966) - Kubernetes specific support in Compose [\#917](https://github.com/kubernetes/kompose/issues/917) - Unable to push Docker image for service web: Unable to retrieve .docker/config.json authentication details. [\#911](https://github.com/kubernetes/kompose/issues/911) - Rework "unsupported keys" prompt [\#788](https://github.com/kubernetes/kompose/issues/788) @@ -356,7 +369,6 @@ - Support for converting docker-compose.yml files using YAML Merge Key [\#1038](https://github.com/kubernetes/kompose/issues/1038) - Support imagePullPolicy via label. [\#1036](https://github.com/kubernetes/kompose/issues/1036) - Support HorizontalPodAutoscaler via label [\#1035](https://github.com/kubernetes/kompose/issues/1035) -- Do not generate empty services [\#823](https://github.com/kubernetes/kompose/issues/823) - Improve chart support / Helm testing [\#745](https://github.com/kubernetes/kompose/issues/745) - using kompose as a library [\#464](https://github.com/kubernetes/kompose/issues/464) - \[EPIC\] Use kubernetes/client-go [\#175](https://github.com/kubernetes/kompose/issues/175) @@ -392,18 +404,11 @@ - Add support for Docker stack files [\#1014](https://github.com/kubernetes/kompose/issues/1014) - multiple containers in a pod sharing volume [\#1012](https://github.com/kubernetes/kompose/issues/1012) - Missing service metadata.labels mapping [\#1010](https://github.com/kubernetes/kompose/issues/1010) -- when to support this parameter build: args? [\#1004](https://github.com/kubernetes/kompose/issues/1004) - Activate downward api [\#1002](https://github.com/kubernetes/kompose/issues/1002) -- Remove status field in the generated yaml [\#975](https://github.com/kubernetes/kompose/issues/975) -- Create Rolling updates using Kompose tool [\#965](https://github.com/kubernetes/kompose/issues/965) -- Support ubuntu's snap package format [\#964](https://github.com/kubernetes/kompose/issues/964) -- kompose up is not able to mount configmap volume [\#962](https://github.com/kubernetes/kompose/issues/962) - How do I Specify the instance count via docker -compose file for Kompose [\#958](https://github.com/kubernetes/kompose/issues/958) -- Remove RC from supported workload [\#947](https://github.com/kubernetes/kompose/issues/947) - Add HTTPS support for download URLs [\#945](https://github.com/kubernetes/kompose/issues/945) - Coordinated efforts / centralized location for packages. [\#942](https://github.com/kubernetes/kompose/issues/942) - docker-compose version 3.3 is not supported. [\#914](https://github.com/kubernetes/kompose/issues/914) -- Allow specifying imagePullSecret [\#897](https://github.com/kubernetes/kompose/issues/897) - Doesn't run on alpine? [\#890](https://github.com/kubernetes/kompose/issues/890) - \[EPIC\] Improvements to volumes [\#884](https://github.com/kubernetes/kompose/issues/884) - Refactor tests \(integration\) [\#877](https://github.com/kubernetes/kompose/issues/877) @@ -435,7 +440,6 @@ **Closed issues:** - 'environment' with 'env-file' specified together for service in docker-compose.yml don't work [\#1013](https://github.com/kubernetes/kompose/issues/1013) -- depends\_on with conditions [\#939](https://github.com/kubernetes/kompose/issues/939) - kompose does not indicate key nor line number when printing error [\#915](https://github.com/kubernetes/kompose/issues/915) - error with autogenerated cluster name [\#713](https://github.com/kubernetes/kompose/issues/713) - kompose build fails: unable to create tarball [\#656](https://github.com/kubernetes/kompose/issues/656) @@ -612,7 +616,6 @@ - kompose.volume.size label is not working [\#927](https://github.com/kubernetes/kompose/issues/927) - "panic: runtime error: invalid memory address or nil pointer dereference" when using environment unset variables [\#918](https://github.com/kubernetes/kompose/issues/918) - \[doc\] more tutorial for gcloud? [\#833](https://github.com/kubernetes/kompose/issues/833) -- add support for `kompose update` [\#822](https://github.com/kubernetes/kompose/issues/822) - Cannot locate specified Dockerfile: Dockerfile [\#809](https://github.com/kubernetes/kompose/issues/809) - kompose passes a kubernetes deployment without image [\#571](https://github.com/kubernetes/kompose/issues/571) - Support for sysctls [\#441](https://github.com/kubernetes/kompose/issues/441) diff --git a/README.md b/README.md index e03550c3..e9b1c049 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,10 @@ __Linux and macOS:__ ```sh # Linux -curl -L https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-linux-amd64 -o kompose +curl -L https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-linux-amd64 -o kompose # macOS -curl -L https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-darwin-amd64 -o kompose +curl -L https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-darwin-amd64 -o kompose chmod +x kompose sudo mv ./kompose /usr/local/bin/kompose @@ -56,7 +56,7 @@ sudo mv ./kompose /usr/local/bin/kompose __Windows:__ -Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-windows-amd64.exe) and add the binary to your PATH. +Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-windows-amd64.exe) and add the binary to your PATH. ## Shell autocompletion diff --git a/build/VERSION b/build/VERSION index a6c2798a..53cc1a6f 100644 --- a/build/VERSION +++ b/build/VERSION @@ -1 +1 @@ -1.23.0 +1.24.0 diff --git a/docs/installation.md b/docs/installation.md index bbd66f61..be7a1e5d 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -10,10 +10,10 @@ __Linux and macOS:__ ```sh # Linux -curl -L https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-linux-amd64 -o kompose +curl -L https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-linux-amd64 -o kompose # macOS -curl -L https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-darwin-amd64 -o kompose +curl -L https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-darwin-amd64 -o kompose chmod +x kompose sudo mv ./kompose /usr/local/bin/kompose @@ -21,7 +21,7 @@ sudo mv ./kompose /usr/local/bin/kompose __Windows:__ -Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-windows-amd64.exe) and add the binary to your PATH. +Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-windows-amd64.exe) and add the binary to your PATH. #### Go diff --git a/docs/introduction.md b/docs/introduction.md index 4bb446de..44ed439d 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -38,13 +38,13 @@ Grab the Kompose binary! ```sh # Linux -curl -L https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-linux-amd64 -o kompose +curl -L https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-linux-amd64 -o kompose # macOS -curl -L https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-darwin-amd64 -o kompose +curl -L https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-darwin-amd64 -o kompose chmod +x kompose sudo mv ./kompose /usr/local/bin/kompose ``` -_Windows:_ Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-windows-amd64.exe) and add the binary to your PATH. +_Windows:_ Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-windows-amd64.exe) and add the binary to your PATH. diff --git a/pkg/version/version.go b/pkg/version/version.go index 559df8ce..dfbc8f86 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -2,7 +2,7 @@ package version var ( // VERSION is version number that will be displayed when running ./kompose version - VERSION = "1.23.0" + VERSION = "1.24.0" // GITCOMMIT is hash of the commit that will be displayed when running ./kompose version // this will be overwritten when running build like this: go build -ldflags="-X github.com/kubernetes/kompose/pkg/version.GITCOMMIT=$(GITCOMMIT)" // HEAD is default indicating that this was not set during build diff --git a/script/release.sh b/script/release.sh index 03efaa6a..8ddc17c0 100755 --- a/script/release.sh +++ b/script/release.sh @@ -92,19 +92,19 @@ init_sync() { replaceversion() { echo "Replaced version in pkg/version/version.go" - sed -i "s/$1/$2/g" pkg/version/version.go + sed -i "s/$1/$2/g" pkg/version/version.go || gsed -i "s/$1/$2/g" pkg/version/version.go echo "Replaced version in README.md" - sed -i "s/$1/$2/g" README.md + sed -i "s/$1/$2/g" README.md || gsed -i "s/$1/$2/g" README.md echo "Replaced version in docs/installation.md" - sed -i "s/$1/$2/g" docs/installation.md + sed -i "s/$1/$2/g" docs/installation.md || gsed -i "s/$1/$2/g" docs/installation.md echo "Replaced version in docs/introduction.md" - sed -i "s/$1/$2/g" docs/introduction.md + sed -i "s/$1/$2/g" docs/introduction.md || gsed -i "s/$1/$2/g" docs/introduction.md echo "Replaced version in build/VERSION" - sed -i "s/$1/$2/g" build/VERSION + sed -i "s/$1/$2/g" build/VERSION || gsed -i "s/$1/$2/g" build/VERSION } changelog() {