Skip to content

Commit 203aaa2

Browse files
authored
remove ingressHost and version from appproj labels (#84)
1 parent e7eb5ef commit 203aaa2

File tree

5 files changed

+4
-16
lines changed

5 files changed

+4
-16
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.84
1+
VERSION=v0.0.85
22
OUT_DIR=dist
33
YEAR?=$(shell date +"%Y")
44

cmd/commands/runtime.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -801,16 +801,8 @@ func updateProject(repofs fs.FS, rt *runtime.Runtime) error {
801801
project.ObjectMeta.Labels = make(map[string]string)
802802
}
803803

804-
runtimeVersion := "v99.99.99"
805-
if rt.Spec.Version != nil { // in dev mode
806-
runtimeVersion = rt.Spec.Version.String()
807-
}
808804

809805
project.ObjectMeta.Labels[store.Get().LabelKeyCFType] = store.Get().CFRuntimeType
810-
project.ObjectMeta.Labels[store.Get().LabelKeyRuntimeVersion] = runtimeVersion
811-
if rt.Spec.IngressHost != "" {
812-
project.ObjectMeta.Labels[store.Get().LabelKeyIngressHost] = rt.Spec.IngressHost
813-
}
814806

815807
return repofs.WriteYamls(projPath, project, appset)
816808
}

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cf version
2020
### Linux
2121
```bash
2222
# download and extract the binary
23-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.84/cf-linux-amd64.tar.gz | tar zx
23+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.85/cf-linux-amd64.tar.gz | tar zx
2424

2525
# move the binary to your $PATH
2626
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -32,7 +32,7 @@ cf version
3232
### Mac
3333
```bash
3434
# download and extract the binary
35-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.84/cf-darwin-amd64.tar.gz | tar zx
35+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.85/cf-darwin-amd64.tar.gz | tar zx
3636

3737
# move the binary to your $PATH
3838
mv ./cf-darwin-amd64 /usr/local/bin/cf

manifests/runtime.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: "{{ namespace }}"
66
spec:
77
defVersion: 1.0.0
8-
version: 0.0.84
8+
version: 0.0.85
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

pkg/store/store.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ type Store struct {
6969
IngressName string
7070
IngressPath string
7171
LabelKeyCFType string
72-
LabelKeyIngressHost string
73-
LabelKeyRuntimeVersion string
7472
MaxDefVersion *semver.Version
7573
RuntimeDefURL string
7674
RuntimeFilename string
@@ -111,8 +109,6 @@ func init() {
111109
s.IngressName = "-workflows-ingress"
112110
s.IngressPath = "workflows"
113111
s.LabelKeyCFType = "codefresh.io/entity"
114-
s.LabelKeyIngressHost = "codefresh.io/ingress-host"
115-
s.LabelKeyRuntimeVersion = "codefresh.io/runtimeVersion"
116112
s.MaxDefVersion = semver.MustParse(maxDefVersion)
117113
s.RuntimeDefURL = RuntimeDefURL
118114
s.RuntimeFilename = "runtime.yaml"

0 commit comments

Comments
 (0)