Skip to content

Commit fba118f

Browse files
CR-11430 (#383)
* adding labels to secrets to use with uninstall logic * codegen * tidy * removing last secret * removed redundant
1 parent e9dfea1 commit fba118f

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
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.341
1+
VERSION=v0.0.342
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

cmd/commands/runtime.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,9 @@ func getRuntimeTokenSecret(namespace string, token string, iv string) ([]byte, e
21322132
ObjectMeta: metav1.ObjectMeta{
21332133
Name: store.Get().CFTokenSecret,
21342134
Namespace: namespace,
2135+
Labels: map[string]string{
2136+
apstore.Default.LabelKeyAppManagedBy: apstore.Default.LabelValueManagedBy,
2137+
},
21352138
},
21362139
Data: map[string][]byte{
21372140
store.Get().CFTokenSecretKey: []byte(token),
@@ -2154,6 +2157,9 @@ func getArgoCDTokenSecret(ctx context.Context, kubeContext, namespace string, in
21542157
ObjectMeta: metav1.ObjectMeta{
21552158
Name: store.Get().ArgoCDTokenSecret,
21562159
Namespace: namespace,
2160+
Labels: map[string]string{
2161+
apstore.Default.LabelKeyAppPartOf: apstore.Default.ArgoCDNamespace,
2162+
},
21572163
},
21582164
Data: map[string][]byte{
21592165
store.Get().ArgoCDTokenKey: []byte(token),

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cf version
2323

2424
```bash
2525
# download and extract the binary
26-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.341/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.342/cf-linux-amd64.tar.gz | tar zx
2727

2828
# move the binary to your $PATH
2929
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -36,7 +36,7 @@ cf version
3636

3737
```bash
3838
# download and extract the binary
39-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.341/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.342/cf-darwin-amd64.tar.gz | tar zx
4040

4141
# move the binary to your $PATH
4242
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.1
8-
version: 0.0.341
8+
version: 0.0.342
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

0 commit comments

Comments
 (0)