diff --git a/README.md b/README.md index 57b8f69..277f30d 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ helm install my-istio-upgrade-consumer istio-upgrade-consumer/istio-upgrade-cons | configuration.timeLocation | string | `"Asia/Jakarta"` | | | deployment.image | string | `"ghcr.io/gopaytech/istio-upgrade-consumer"` | | | deployment.replicas | int | `2` | | -| deployment.tag | string | `"nightly"` | | +| deployment.tag | string | `"master"` | | | podLabels | object | `{}` | | | resources.limits.cpu | string | `"1024m"` | | | resources.limits.memory | string | `"1024Mi"` | | diff --git a/charts/istio-upgrade-consumer/README.md b/charts/istio-upgrade-consumer/README.md index 57b8f69..277f30d 100644 --- a/charts/istio-upgrade-consumer/README.md +++ b/charts/istio-upgrade-consumer/README.md @@ -30,7 +30,7 @@ helm install my-istio-upgrade-consumer istio-upgrade-consumer/istio-upgrade-cons | configuration.timeLocation | string | `"Asia/Jakarta"` | | | deployment.image | string | `"ghcr.io/gopaytech/istio-upgrade-consumer"` | | | deployment.replicas | int | `2` | | -| deployment.tag | string | `"nightly"` | | +| deployment.tag | string | `"master"` | | | podLabels | object | `{}` | | | resources.limits.cpu | string | `"1024m"` | | | resources.limits.memory | string | `"1024Mi"` | | diff --git a/charts/istio-upgrade-consumer/templates/configmap.yaml b/charts/istio-upgrade-consumer/templates/configmap.yaml index a1cef1b..6cd8698 100644 --- a/charts/istio-upgrade-consumer/templates/configmap.yaml +++ b/charts/istio-upgrade-consumer/templates/configmap.yaml @@ -10,7 +10,7 @@ metadata: data: CLUSTER_NAME: "{{ .Values.configuration.clusterName }}" CLUSTER_ENVIRONMENT: "{{ .Values.configuration.clusterEnvironment }}" - RECEIVER_MODE: "{{ .Values.configuration.receiverMode }} " + RECEIVER_MODE: "{{ .Values.configuration.receiverMode }}" RECEIVER_HTTP_PORT: "{{ .Values.configuration.receiverHTTPPort }}" STORAGE_MODE: "{{ .Values.configuration.storageMode }}" STORAGE_CONFIGMAP_NAME: "{{ .Values.configuration.storageConfigMapName }}" diff --git a/charts/istio-upgrade-consumer/values.yaml b/charts/istio-upgrade-consumer/values.yaml index 345f6fc..4f89795 100644 --- a/charts/istio-upgrade-consumer/values.yaml +++ b/charts/istio-upgrade-consumer/values.yaml @@ -1,6 +1,6 @@ deployment: image: "ghcr.io/gopaytech/istio-upgrade-consumer" - tag: "nightly" + tag: "master" replicas: 2 resources: diff --git a/charts/releases/index.yaml b/charts/releases/index.yaml index 221f59a..5f857c7 100644 --- a/charts/releases/index.yaml +++ b/charts/releases/index.yaml @@ -3,10 +3,10 @@ entries: istio-upgrade-consumer: - apiVersion: v2 appVersion: 1.0.0 - created: "2024-09-28T23:12:23.109308+07:00" + created: "2024-09-28T23:18:35.096313+07:00" description: Consumer for Istio Upgrade tooling to receive events related to Istio upgrade - digest: d2757ad6309f3f16f9ef430d52b3a9b22f02323bb9458913bc131848102af33f + digest: 8ebc4f8462c2c245b11a1c4e6f301516a359ee8434e056ae04bfa6ccad9232f3 home: https://github.com/gopaytech/istio-upgrade-consumer maintainers: - email: zufardhiyaulhaq@gmail.com @@ -17,4 +17,4 @@ entries: urls: - istio-upgrade-consumer-1.0.0.tgz version: 1.0.0 -generated: "2024-09-28T23:12:23.108851+07:00" +generated: "2024-09-28T23:18:35.095931+07:00" diff --git a/charts/releases/istio-upgrade-consumer-1.0.0.tgz b/charts/releases/istio-upgrade-consumer-1.0.0.tgz index ea70577..8854da7 100644 Binary files a/charts/releases/istio-upgrade-consumer-1.0.0.tgz and b/charts/releases/istio-upgrade-consumer-1.0.0.tgz differ diff --git a/services/receiver/factory.go b/services/receiver/factory.go index c73ccbd..ade9a39 100644 --- a/services/receiver/factory.go +++ b/services/receiver/factory.go @@ -19,5 +19,5 @@ func UpgradeFactory(settings settings.Settings, upgradeStorage storage.UpgradeIn return http.NewUpgradeHTTP(settings, upgradeStorage, upgradeImplementation), nil } - return nil, fmt.Errorf("receiver is not supported") + return nil, fmt.Errorf("receiver is not supported: %s", settings.ReceiverMode) } diff --git a/services/storage/factory.go b/services/storage/factory.go index 654f1f8..ef57169 100644 --- a/services/storage/factory.go +++ b/services/storage/factory.go @@ -18,5 +18,5 @@ func UpgradeFactory(settings settings.Settings) (UpgradeInterface, error) { return configmap.NewUpgradeConfigMap(kubernetesConfig, settings), nil } - return nil, fmt.Errorf("receiver is not supported") + return nil, fmt.Errorf("storage is not supported %s", settings.StorageMode) }