Skip to content

Commit a9c1e99

Browse files
Remove unused manifests (#638)
* remove unused manifests and scripts * bump
1 parent a5a804e commit a9c1e99

28 files changed

+13
-726
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.1.4
1+
VERSION=v0.1.5
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")
@@ -9,7 +9,6 @@ IMAGE_NAMESPACE?=codefresh
99

1010
RUNTIME_DEF_URL="https://raw.githubusercontent.com/codefresh-io/csdp-official/stable/csdp/hybrid/basic/runtime.yaml"
1111
ADD_CLUSTER_DEF_URL="https://github.com/codefresh-io/csdp-official/add-cluster/kustomize"
12-
FALLBACK_ADD_CLUSTER_DEF_URL="https://github.com/codefresh-io/cli-v2/manifests/add-cluster/kustomize"
1312

1413
# when developing, point this to your local clone of csdp-official
1514
DEV_RUNTIME_DEF_URL="https://raw.githubusercontent.com/codefresh-io/csdp-official/stable/csdp/hybrid/basic/runtime.yaml"
@@ -106,7 +105,6 @@ $(OUT_DIR)/$(CLI_NAME)-%: $(CLI_SRCS)
106105
GIT_COMMIT=$(GIT_COMMIT) \
107106
RUNTIME_DEF_URL=$(RUNTIME_DEF_URL) \
108107
ADD_CLUSTER_DEF_URL=$(ADD_CLUSTER_DEF_URL) \
109-
FALLBACK_ADD_CLUSTER_DEF_URL=$(FALLBACK_ADD_CLUSTER_DEF_URL) \
110108
SEGMENT_WRITE_KEY=$(SEGMENT_WRITE_KEY) \
111109
DEV_MODE=$(DEV_MODE) \
112110
OUT_FILE=$(OUT_DIR)/$(CLI_NAME)-$* \

build/add-cluster-script.yaml

Lines changed: 0 additions & 94 deletions
This file was deleted.

cmd/commands/cluster.go

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type (
6565
)
6666

6767
var (
68-
minAddClusterSupportedVersion = semver.MustParse("0.0.283")
68+
minAddClusterSupportedVersion = semver.MustParse("0.0.283")
6969
minAddClusterLabelsSupportedVersion = semver.MustParse("0.0.462")
7070

7171
serviceAccountGVK = resid.Gvk{
@@ -384,7 +384,7 @@ func createAddClusterManifests(opts *ClusterAddOptions, ingressUrl, server, csdp
384384
return nil, "", fmt.Errorf("failed encoding annotations: %w", err)
385385
}
386386

387-
k.ConfigMapGenerator[0].KvPairSources.LiteralSources = append(k.ConfigMapGenerator[0].KvPairSources.LiteralSources, fmt.Sprintf("annotations=" + annotationsStr))
387+
k.ConfigMapGenerator[0].KvPairSources.LiteralSources = append(k.ConfigMapGenerator[0].KvPairSources.LiteralSources, fmt.Sprintf("annotations="+annotationsStr))
388388
}
389389

390390
if len(opts.labels) > 0 {
@@ -393,7 +393,7 @@ func createAddClusterManifests(opts *ClusterAddOptions, ingressUrl, server, csdp
393393
return nil, "", fmt.Errorf("failed encoding labels: %w", err)
394394
}
395395

396-
k.ConfigMapGenerator[0].KvPairSources.LiteralSources = append(k.ConfigMapGenerator[0].KvPairSources.LiteralSources, fmt.Sprintf("labels=" + labelsStr))
396+
k.ConfigMapGenerator[0].KvPairSources.LiteralSources = append(k.ConfigMapGenerator[0].KvPairSources.LiteralSources, fmt.Sprintf("labels="+labelsStr))
397397
}
398398

399399
if opts.tag != "" {
@@ -410,17 +410,7 @@ func createAddClusterManifests(opts *ClusterAddOptions, ingressUrl, server, csdp
410410

411411
manifests, err := kustutil.BuildKustomization(k)
412412
if err != nil {
413-
// go to fallback add-cluster manifests
414-
// remove this once all manifests has been moved official-csdp repo.
415-
// once we are sure no one will be looking for those manifests in cli-v2 we can remove this.
416-
fallbackResourceUrl := fmt.Sprintf("%s?ref=v%s", store.FallbackAddClusterDefURL, version)
417-
k.Resources[0] = fallbackResourceUrl
418-
log.G().Warnf("Failed to get \"add-cluster\" manifests from %s, using fallback of %s", resourceUrl, fallbackResourceUrl)
419-
420-
manifests, err = kustutil.BuildKustomization(k)
421-
if err != nil {
422-
return nil, "", fmt.Errorf("failed to build kustomization: %w", err)
423-
}
413+
return nil, "", fmt.Errorf("failed to build kustomization: %w", err)
424414
}
425415

426416
return manifests, nameSuffix, nil

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.1.4/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.5/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.1.4/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.5/cf-darwin-amd64.tar.gz | tar zx
4040

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

hack/compare-versions.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

manifests/add-cluster/kustomize/kustomization.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

manifests/app-proxy/app-proxy.cm.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

manifests/app-proxy/app-proxy.crb.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

manifests/app-proxy/app-proxy.deploy.yaml

Lines changed: 0 additions & 152 deletions
This file was deleted.

manifests/app-proxy/app-proxy.rb.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)