Skip to content

Commit

Permalink
fix/CON-26232_namespace_changed (#133)
Browse files Browse the repository at this point in the history
* Update NOTES.txt

* Update Chart.yaml

* Update README.md

* Update NOTES.txt

use on the fly values

* base no namespace change

* run over ctrlv2 with kubesystem

* pass lint

* pass lint 2

* change cm ,secret file name

* pass lint
  • Loading branch information
yehielnetapp authored Jun 2, 2024
1 parent 723ab92 commit c036338
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/ocean-network-client/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ maintainers:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.21
version: 1.0.22

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
9 changes: 6 additions & 3 deletions charts/ocean-network-client/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ocean-network-client

![Version: 1.0.21](https://img.shields.io/badge/Version-1.0.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.8](https://img.shields.io/badge/AppVersion-1.0.8-informational?style=flat-square)
![Version: 1.0.22](https://img.shields.io/badge/Version-1.0.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.8](https://img.shields.io/badge/AppVersion-1.0.8-informational?style=flat-square)

A Helm chart for Ocean Network Client.

Expand Down Expand Up @@ -35,9 +35,12 @@ helm install my-release spot/ocean-network-client
| image.repository | Optional | `"public.ecr.aws/spotinst/spot-network-client"` | Image repository. |
| image.tag | Optional | `""` | Image tag. Defaults to `.Chart.AppVersion`. |
| namespace | Optional | `"kube-system"` | Namespace where components should be installed. |
| oceanController.configMapName | Optional | `"spotinst-kubernetes-cluster-controller-config"` | ConfigMap name. |
| oceanController.secretName | Optional | `"spotinst-kubernetes-cluster-controller"` | Secret name. |
| oceanController.configMapName | Optional | `"spotinst-kubernetes-cluster-config"` | ConfigMap name. |
| oceanController.secretName | Optional | `"spotinst-kubernetes-cluster"` | Secret name. |
| resources | Optional | `{"requests":{"cpu":"30m","memory":"150Mi"}}` | Resource requests and limits. Ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| spotinst.account | string | `""` | Spot Account. (Required) Ref: https://docs.spot.io/administration/organizations?id=account |
| spotinst.clusterIdentifier | string | `""` | Unique identifier used by the Ocean Controller to connect (Required) between the Ocean backend and the Kubernetes cluster. Ref: https://docs.spot.io/ocean/tutorials/spot-kubernetes-controller/ |
| spotinst.token | string | `""` | Spot Token. (Required) Ref: https://docs.spot.io/administration/api/create-api-token |
| tolerations | Optional | `[{"operator":"Exists"}]` | Tolerations - Enable pods to run an all nodes in cluster Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |

----------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions charts/ocean-network-client/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Thank you for installing spotinst-ocean-network-client
Thank you for installing {{ .Release.Name }}.

Please make sure that each node in your cluster has the Network-Client DaemonSet running:

$ kubectl get daemonset spotinst-ocean-network-client -n kube-system
$ kubectl get daemonset {{ .Release.Name }} -n {{ .Values.namespace }}

The collection of the data has already begun, you can see the data in our UI console or via API in 2-3 hours.
The collection of the data has already begun, you can see the data in our UI console or via API in 2-3 hours.
7 changes: 7 additions & 0 deletions charts/ocean-network-client/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "ocean-network-client.configMapName" . }}
namespace: {{ include "ocean-network-client.namespace" . }}
data:
spotinst.cluster-identifier: {{ required "`spotinst.clusterIdentifier` must be specified" .Values.spotinst.clusterIdentifier }}
10 changes: 10 additions & 0 deletions charts/ocean-network-client/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "ocean-network-client.secretName" . }}
namespace: {{ include "ocean-network-client.namespace" . }}
type: Opaque
data:
token: {{ required "`spotinst.token` must be specified" .Values.spotinst.token | b64enc }}
account: {{ required "`spotinst.account` must be specified" .Values.spotinst.account | b64enc }}

18 changes: 16 additions & 2 deletions charts/ocean-network-client/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,23 @@ namespace: kube-system

oceanController:
# -- (Optional) Secret name.
secretName: spotinst-kubernetes-cluster-controller
secretName: spotinst-kubernetes-cluster
# -- (Optional) ConfigMap name.
configMapName: spotinst-kubernetes-cluster-controller-config
configMapName: spotinst-kubernetes-cluster-config

# Spot Configuration.
spotinst:
# -- Spot Token. (Required)
# Ref: https://docs.spot.io/administration/api/create-api-token
token: ""
# -- Spot Account. (Required)
# Ref: https://docs.spot.io/administration/organizations?id=account
account: ""
# -- Unique identifier used by the Ocean Controller to connect (Required)
# between the Ocean backend and the Kubernetes cluster.
# Ref: https://docs.spot.io/ocean/tutorials/spot-kubernetes-controller/
clusterIdentifier: ""


image:
# -- (Optional) Image repository.
Expand Down

0 comments on commit c036338

Please sign in to comment.