summaryrefslogtreecommitdiffstats
path: root/kubernetes/so/templates/_certificates.tpl
blob: 8bd25d27a17794541be4bb91a3ae56af9d28b13a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{{- define "so.certificate.container_importer" -}}
- name: {{ include "common.name" . }}-certs-importer
  image: "{{ include "common.repository" . }}/{{ .Values.global.soBaseImage }}"
  imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
  command:
  - "/bin/sh"
  args:
  - "-c"
  - "update-ca-certificates --fresh && \
    cp -r {{ .Values.global.certificates.path }}/* /certificates"
  volumeMounts:
  - name: {{ include "common.name" . }}-certificates
    mountPath: /certificates
  - name: {{ include "common.name" . }}-onap-certificates
    mountPath: {{ .Values.global.certificates.share_path }}
{{- end -}}

{{- define "so.certificate.volume-mounts" -}}
- name: {{ include "common.name" . }}-certificates
  mountPath: {{ .Values.global.certificates.path }}
- name: {{ include "common.name" . }}-onap-certificates
  mountPath: {{ .Values.global.certificates.share_path }}
{{- end -}}

{{- define "so.certificate.volumes" -}}
- name: {{ include "common.name" . }}-certificates
  emptyDir:
    medium: Memory
- name: {{ include "common.name" . }}-onap-certificates
  secret:
    secretName: {{ include "common.secret.getSecretNameFast" (dict "global" . "uid" "so-onap-certs") }}
{{- end -}}
">mode.style" aria-hidden="true" [id]="mode.name"></i> {{mode.name}} </span> </label> </div> </div> <div class="single-line"> <label class="label-name">Dictionary Library Instance</label> <div class="label-input"> <select class="form-control" id="exampleFormControlSelect1"> <option>Select Library Instance</option> <option>Library Instance 1</option> <option>Library Instance 2</option> <option>Library Instance 3</option> <option>Library Instance 4</option> <option>Library Instance 5</option> </select> </div> </div> </div> <div class="card creat-card"> <div class="single-line-model"> <label class="label-name">Name <span>*</span></label> <div class="label-input"> <input type="input" [readOnly]="!packageNameAndVersionEnables" [(ngModel)]="metaDataTab.name" placeholder="Package name"> </div> <!--<div class="model-note-container error-message"> Package name already exists with this version. Please enter a different name or enter different version number. </div>--> </div> <div class="single-line-model"> <label class="label-name">Version <span>*</span></label> <div class="label-input"> <input type="input" [readOnly]="!packageNameAndVersionEnables" [(ngModel)]="metaDataTab.version" (input)="validatePackageNameAndVersion()" placeholder="Example: 1.0.0"> </div> <div class="model-note-container error-message">{{errorMessage}}</div> </div> <div class="single-line-model"> <label class="label-name">Description</label> <div class="label-input"> <input type="input" [(ngModel)]="metaDataTab.description" placeholder="Descripe the package"> </div> </div> <div class="single-line-model"> <label class="label-name">Tags</label> <div class="label-input"> <input type="input" (keyup.enter)="addTag($event)" [(ngModel)]="metaDataTab.tags" placeholder="Ex., vDNS-CDS"> </div> <div class="model-note-container tag-notes">Use ENTER to add tag</div> <div class="model-note-container tages-container"> <span *ngFor="let tag of tags" class="single-tage">{{tag}} <i (click)="removeTag(tag)" class="fa fa-times-circle"></i> </span> </div> </div> </div> <div id="container"> <div id="target"> <div class="card creat-card"> <div class="single-line customKeyTitle"> <h5 class="label-name w-100 "> Custom key </h5> <span>To add New Custom Key, fill the first key then <b>Press ENTER</b></span> </div> <div *ngFor="let map of customKeysMap | keyvalue; let i=index" class="single-custom-key"> <div class="single-line-custom-key"> <label class="label-name"><span>{{i + 1}}.</span> Name</label> <div class="label-input"> <input value="{{map.key}}" name="key" type="input" placeholder="Enter name"> </div> </div> <div class="single-line-custom-key"> <label class="label-name">Value</label> <div class="label-input"> <input value="{{map.value}}" name="value" type="input" placeholder="Enter value"> </div> </div> <div class="single-line-custom-key-delete"> <button (click)="removeKey($event,map.key)" class="custom-key-delete"><i aria-hidden="true" class="icon-delete-sm"></i></button> </div> </div> <div class="single-custom-key"> <div class="single-line-custom-key"> <label class="label-name"><span>{{customKeysMap.size + 1}}.</span> Name</label> <div class="label-input"> <input (keyup.enter)="addCustomKey()" name="key" type="input" class="mapKey" placeholder="Enter name"> </div> </div> <div class="single-line-custom-key"> <label class="label-name">Value</label> <div class="label-input"> <input (keyup.enter)="addCustomKey()" class="mapValue" name="value" type="input" placeholder="Enter value"> </div> </div> <!-- <div class="single-line-custom-key-delete"><button (click)="removeKey($event)" class="custom-key-delete"><i aria-hidden="true" class="icon-delete-sm"></i></button></div> --> </div> </div> </div> </div>