Skip to content

Commit

Permalink
fix release scripts (#139)
Browse files Browse the repository at this point in the history
* bump image

* bump version

* fix scripts

* revert change to resources
  • Loading branch information
k15r authored Sep 14, 2023
1 parent 8292cd0 commit c288c84
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# next version to be released
MODULE_VERSION=0.1.1
MODULE_VERSION=0.1.2
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default | kubectl apply -f -

.PHONY: render-manifest
render-manifest: manifests kustomize
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default > nats-manager.yaml

.PHONY: undeploy
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
Expand Down
6 changes: 6 additions & 0 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@

resources:
- manager.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: op-skr-registry.localhost:8888/unsigned/manager-images/nats-manager
newTag: 0.1.1
5 changes: 3 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ echo "Generated nats-manager.yaml:"
cat nats-manager.yaml

MODULE_VERSION=${PULL_BASE_REF} make module-build
mv template.yaml module-template.yaml

echo "Generated moduletemplate.yaml:"
cat moduletemplate.yaml
cat module-template.yaml

echo "Updating github release with nats-manager.yaml"

Expand All @@ -65,5 +66,5 @@ fi
UPLOAD_URL="https://uploads.github.com/repos/kyma-project/nats-manager/releases/${RELEASE_ID}/assets"

uploadFile "nats-manager.yaml" "${UPLOAD_URL}?name=nats-manager.yaml"
uploadFile "moduletemplate.yaml" "${UPLOAD_URL}?name=moduletemplate.yaml"
uploadFile "module-template.yaml" "${UPLOAD_URL}?name=module-template.yaml"
uploadFile "config/samples/nats_default_cr.yaml" "${UPLOAD_URL}?name=nats_default_cr.yaml"
2 changes: 1 addition & 1 deletion sec-scanners-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module-name: nats-manager
protecode:
- europe-docker.pkg.dev/kyma-project/prod/nats-manager:v20230913-9746cb0c
- europe-docker.pkg.dev/kyma-project/prod/nats-manager:v20230914-8292cd02
- europe-docker.pkg.dev/kyma-project/prod/external/natsio/prometheus-nats-exporter:0.12.0
- europe-docker.pkg.dev/kyma-project/prod/external/natsio/nats-server-config-reloader:0.12.0
- europe-docker.pkg.dev/kyma-project/prod/external/nats:v20230620-2.9.18-alpine3.18
Expand Down

0 comments on commit c288c84

Please sign in to comment.