Skip to content

Commit

Permalink
Merge pull request #75 from lalithkota/main
Browse files Browse the repository at this point in the history
eSignet 1.4.1 upgraded. With Mock ID.
  • Loading branch information
lalithkota authored Sep 23, 2024
2 parents 8155cbb + c4d13d4 commit 5a44bf3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 147 deletions.
130 changes: 1 addition & 129 deletions charts/artifactory/README.md
Original file line number Diff line number Diff line change
@@ -1,131 +1,3 @@
# Artifactory

Helm chart for installing Artifactory

## TL;DR

```console
$ helm repo add mosip https://mosip.github.io
$ helm install my-release mosip/artifactory
```

## Introduction

%%INTRODUCTION%% (check existing examples)

## Prerequisites

- Kubernetes 1.12+
- Helm 3.1.0
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling

## Installing the Chart

To install the chart with the release name `my-release`:

```console
helm install my-release mosip/artifactory
```

The command deploys artifactory on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.

> **Tip**: List all releases using `helm list`
## Uninstalling the Chart

To uninstall/delete the `my-release` deployment:

```console
helm delete my-release
```

The command removes all the Kubernetes components associated with the chart and deletes the release.

## Parameters

See https://github.com/bitnami-labs/readmenator to create the table

The above parameters map to the env variables defined in [bitnami/artifactory](http://github.com/bitnami/bitnami-docker-artifactory). For more information please refer to the [bitnami/artifactory](http://github.com/bitnami/bitnami-docker-artifactory) image documentation.

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

```console
helm install my-release \
--set artifactoryUsername=admin \
--set artifactoryPassword=password \
--set mariadb.auth.rootPassword=secretpassword \
bitnami/artifactory
```

The above command sets the artifactory administrator account username and password to `admin` and `password` respectively. Additionally, it sets the MariaDB `root` user password to `secretpassword`.

> NOTE: Once this chart is deployed, it is not possible to change the application's access credentials, such as usernames or passwords, using Helm. To change these application credentials after deployment, delete any persistent volumes (PVs) used by the chart and re-deploy it, or use the application's built-in administrative tools if available.
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

```console
helm install my-release -f values.yaml bitnami/artifactory
```

> **Tip**: You can use the default [values.yaml](values.yaml)
## Configuration and installation details

### [Rolling VS Immutable tags](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/)

It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.

Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.

### External database support

%%IF NEEDED%%

You may want to have artifactory connect to an external database rather than installing one inside your cluster. Typical reasons for this are to use a managed database service, or to share a common database server for all your applications. To achieve this, the chart allows you to specify credentials for an external database with the [`externalDatabase` parameter](#parameters). You should also disable the MariaDB installation with the `mariadb.enabled` option. Here is an example:

```console
mariadb.enabled=false
externalDatabase.host=myexternalhost
externalDatabase.user=myuser
externalDatabase.password=mypassword
externalDatabase.database=mydatabase
externalDatabase.port=3306
```

### TLS secrets

The chart also facilitates the creation of TLS secrets for use with the Ingress controller, with different options for certificate management. [Learn more about TLS secrets](https://docs.bitnami.com/kubernetes/apps/artifactory/administration/enable-tls/).

### %%OTHER_SECTIONS%%

## Persistence

The [Bitnami artifactory](https://github.com/bitnami/bitnami-docker-artifactory) image stores the artifactory data and configurations at the `/bitnami` path of the container. Persistent Volume Claims are used to keep the data across deployments. [Learn more about persistence in the chart documentation](https://docs.bitnami.com/kubernetes/apps/artifactory/configuration/chart-persistence/).

### Additional environment variables

In case you want to add extra environment variables (useful for advanced operations like custom init scripts), you can use the `extraEnvVars` property.

```yaml
artifactory:
extraEnvVars:
- name: LOG_LEVEL
value: error
```
Alternatively, you can use a ConfigMap or a Secret with the environment variables. To do so, use the `extraEnvVarsCM` or the `extraEnvVarsSecret` values.

### Sidecars

If additional containers are needed in the same pod as artifactory (such as additional metrics or logging exporters), they can be defined using the `sidecars` parameter. If these sidecars export extra ports, extra port definitions can be added using the `service.extraPorts` parameter. [Learn more about configuring and using sidecar containers](https://docs.bitnami.com/kubernetes/apps/artifactory/administration/configure-use-sidecars/).

### Pod affinity

This chart allows you to set your custom affinity using the `affinity` parameter. Find more information about Pod affinity in the [kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity).

As an alternative, use one of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the [bitnami/common](https://github.com/bitnami/charts/tree/master/bitnami/common#affinities) chart. To do so, set the `podAffinityPreset`, `podAntiAffinityPreset`, or `nodeAffinityPreset` parameters.

## Troubleshooting

Find more information about how to deal with common errors related to Bitnami's Helm charts in [this troubleshooting guide](https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues).
Helm chart for installing MOSIP's Artifactory.
4 changes: 2 additions & 2 deletions charts/esignet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: esignet
description: A Helm chart for MOSIP eSignet module
type: application
version: 1.4.0
version: 1.4.1
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
Expand All @@ -27,7 +27,7 @@ dependencies:
version: 12.0.2
condition: artifactory.enabled
- name: mock-identity-system
version: 0.9.2
version: 0.9.3
condition: mock-identity-system.enabled
home: https://mosip.io
keywords:
Expand Down
15 changes: 5 additions & 10 deletions charts/esignet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ service:
image:
registry: docker.io
repository: mosipid/esignet
tag: 1.4.0
tag: 1.4.1
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down Expand Up @@ -459,7 +459,7 @@ artifactory:
image:
registry: docker.io
repository: mosipid/artifactory-server
tag: 1.4.0-ES
tag: 1.4.1-ES
resources: {}

postgresql:
Expand Down Expand Up @@ -522,7 +522,7 @@ postgresInit:
DB_USER: esignetuser
DML_FLAG: '1'
GIT_REPO_URL: https://github.com/mosip/esignet
GIT_BRANCH: v1.4.0
GIT_BRANCH: v1.4.1
envVarsFrom:
SU_USER_PWD:
secretKeyRef:
Expand Down Expand Up @@ -632,7 +632,7 @@ oidcUi:
image:
registry: docker.io
repository: mosipid/oidc-ui
tag: 1.4.0
tag: 1.4.1
pullPolicy: Always
pullSecrets: []
# - myRegistryKeySecretName
Expand Down Expand Up @@ -872,12 +872,7 @@ envVars:
mosip_esignet_database_hostname: '{{ tpl .Values.postgresqlInstallationName $ }}'
mosip_esignet_database_port: '5432'

mosip_esignet_captcha_required: >-
{{ .Values.captchaEnabled | ternary "send-otp,pwd" "" }}
mosip_esignet_captcha_required_authFactors: >-
{{ .Values.captchaEnabled | ternary "{\"PWD\"}" "{}" }}
mosip_esignet_sendOtp_captchaRequired: >-
{{ .Values.captchaEnabled | ternary "true" "false" }}
mosip_esignet_captcha_required: '{{ .Values.captchaEnabled | ternary "send-otp,pwd" "" }}'
esignet_captcha_site_key: ''
esignet_captcha_secret_key: ''

Expand Down
4 changes: 2 additions & 2 deletions charts/mimoto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# storageClass: myStorageClass
global:
keycloakBaseUrl: 'https://keycloak.your.org'
esignetHostsname: esignet-pbms.openg2p.sandbox.net
esignetHostname: esignet-pbms.openg2p.sandbox.net

hostname: mimoto.openg2p.sandbox.net

Expand Down Expand Up @@ -416,7 +416,7 @@ artifactory:
image:
registry: docker.io
repository: mosipid/artifactory-server
tag: 1.4.0-ES
tag: 1.4.1-ES
resources: {}

oidcClientKeySecretName: mimoto-oidc-secret
Expand Down
2 changes: 1 addition & 1 deletion charts/mock-identity-system/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: mock-identity-system
description: A Helm chart for MOSIP Mock Identity System module
type: application
version: 0.9.2
version: 0.9.3
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
Expand Down
6 changes: 3 additions & 3 deletions charts/mock-identity-system/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ service:
image:
registry: docker.io
repository: mosipid/mock-identity-system
tag: 0.9.2
tag: 0.9.3
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down Expand Up @@ -412,7 +412,7 @@ artifactory:
image:
registry: docker.io
repository: mosipid/artifactory-server
tag: 1.4.0-ES
tag: 1.4.1-ES
resources: {}

postgresql:
Expand Down Expand Up @@ -476,7 +476,7 @@ postgresInit:
DB_USER: mockidsystemuser
DML_FLAG: '1'
GIT_REPO_URL: https://github.com/mosip/esignet-mock-services
GIT_BRANCH: v0.9.2
GIT_BRANCH: v0.9.3
envVarsFrom:
SU_USER_PWD:
secretKeyRef:
Expand Down

0 comments on commit 5a44bf3

Please sign in to comment.