Skip to content

Commit 826d4b7

Browse files
committed
Adjust OpenAPI specs
1 parent 06c8457 commit 826d4b7

17 files changed

Lines changed: 79 additions & 47 deletions

File tree

.github/workflows/build-matrix.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"harbor-project": "crownlabs-core"
1515
},
1616
{
17-
"component": "cloudimg-registry",
17+
"component": "ciregistry",
1818
"context": "./operators",
1919
"dockerfile": "./operators/build/golang-common/Dockerfile",
20-
"build-args": "COMPONENT=cloudimg-registry",
20+
"build-args": "COMPONENT=ciregistry",
2121
"harbor-project": "crownlabs-core"
2222
},
2323
{

deploy/crownlabs/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ dependencies:
6565
repository: file://../../operators/deploy/instmetrics
6666
condition: instmetrics.enabled
6767

68-
- name: cloudimg-registry
68+
- name: ciregistry
6969
version: "0.1.0"
70-
repository: file://../../operators/deploy/cloudimg-registry
71-
# condition: cloudimg-registry.enabled
70+
repository: file://../../operators/deploy/ciregistry
71+
# condition: ciregistry.enabled
7272

7373
- name: policies
7474
version: "0.1.0"

deploy/crownlabs/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ instmetrics:
155155
updatePeriod: 4s
156156
grpcPort: 9090
157157

158-
cloudimg-registry:
158+
ciregistry:
159159
replicaCount: 1
160160
configurations:
161161
volume:
162162
size: "100Gi"
163163
accessMode: "ReadWriteMany"
164164
storageClass: "rook-cephfs-primary"
165165
image:
166-
repository: crownlabs/cloudimg-registry
166+
repository: crownlabs/ciregistry
167167
pullPolicy: IfNotPresent
168168

169169
policies:

infrastructure/certificate-provisioning/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,13 @@ labels:
113113
```
114114
115115
## Synchronize digital certificates between namespaces
116+
❗❗ `Kubed is no longer available and has been superseded by ConfigSyncer`
116117

117118
In different scenarios, it may happen to have different `Ingress` resources in different namespaces which refer to the same domain (with different paths). Unfortunately, annotating all these ingresses with the `cert-manager.io/cluster-issuer` annotation soon leads to hitting the Let's Encrypt rate limits. Hence, it is necessary to introduce some mechanism to synchronize the secret generated between multiple namespaces. One of the projects currently providing a solution to this problem is [kubed](https://github.com/appscode/kubed).
118119

119120
### Install kubed
120121

121-
Kubed can be easily installed with helm [[5]](https://appscode.com/products/kubed/v0.12.0/setup/install/).
122+
Kubed can be easily installed with helm [[5]](https://web.archive.org/web/20230605163413/https://appscode.com/products/kubed/v0.12.0/setup/install/).
122123

123124
```bash
124125
helm repo add appscode https://charts.appscode.com/stable/
File renamed without changes.

operators/deploy/cloudimg-registry/Chart.yaml renamed to operators/deploy/ciregistry/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
name: cloudimg-registry
2+
name: ciregistry
33
description: The CrownLabs Cloud Image Registry
44

55
# A chart can be either an 'application' or a 'library' chart.

operators/deploy/cloudimg-registry/templates/_helpers.tpl renamed to operators/deploy/ciregistry/templates/_helpers.tpl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{/*
33
Expand the name of the chart.
44
*/}}
5-
{{- define "cloudimg-registry.name" -}}
5+
{{- define "ciregistry.name" -}}
66
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
77
{{- end }}
88

@@ -11,7 +11,7 @@ Create a default fully qualified app name.
1111
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1212
If the release name contains the chart name, it will be used as a full name.
1313
*/}}
14-
{{- define "cloudimg-registry.fullname" -}}
14+
{{- define "ciregistry.fullname" -}}
1515
{{- if .Values.fullnameOverride }}
1616
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1717
{{- else }}
@@ -27,7 +27,7 @@ If the release name contains the chart name, it will be used as a full name.
2727
{{/*
2828
The version of the application to be deployed
2929
*/}}
30-
{{- define "cloudimg-registry.version" -}}
30+
{{- define "ciregistry.version" -}}
3131
{{- if .Values.global }}
3232
{{- .Values.image.tag | default .Values.global.version | default .Chart.AppVersion }}
3333
{{- else }}
@@ -38,24 +38,24 @@ The version of the application to be deployed
3838
{{/*
3939
Create chart name and version as used by the chart label.
4040
*/}}
41-
{{- define "cloudimg-registry.chart" -}}
41+
{{- define "ciregistry.chart" -}}
4242
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
4343
{{- end }}
4444

4545
{{/*
4646
Common labels
4747
*/}}
48-
{{- define "cloudimg-registry.labels" -}}
49-
helm.sh/chart: {{ include "cloudimg-registry.chart" . }}
50-
{{ include "cloudimg-registry.selectorLabels" . }}
51-
app.kubernetes.io/version: {{ include "cloudimg-registry.version" . | quote }}
48+
{{- define "ciregistry.labels" -}}
49+
helm.sh/chart: {{ include "ciregistry.chart" . }}
50+
{{ include "ciregistry.selectorLabels" . }}
51+
app.kubernetes.io/version: {{ include "ciregistry.version" . | quote }}
5252
app.kubernetes.io/managed-by: {{ .Release.Service }}
5353
{{- end }}
5454

5555
{{/*
5656
Selector labels
5757
*/}}
58-
{{- define "cloudimg-registry.selectorLabels" -}}
59-
app.kubernetes.io/name: {{ include "cloudimg-registry.name" . }}
58+
{{- define "ciregistry.selectorLabels" -}}
59+
app.kubernetes.io/name: {{ include "ciregistry.name" . }}
6060
app.kubernetes.io/instance: {{ .Release.Name }}
6161
{{- end }}

operators/deploy/cloudimg-registry/templates/deployment.yaml renamed to operators/deploy/ciregistry/templates/deployment.yaml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: {{ include "cloudimg-registry.fullname" . }}
4+
name: {{ include "ciregistry.fullname" . }}
55
labels:
6-
{{ include "cloudimg-registry.labels" . | nindent 4 }}
6+
{{ include "ciregistry.labels" . | nindent 4 }}
77
{{- with .Values.deploymentAnnotations }}
88
annotations:
99
{{- toYaml . | nindent 4 }}
@@ -12,23 +12,32 @@ spec:
1212
replicas: {{ .Values.replicaCount }}
1313
selector:
1414
matchLabels:
15-
{{ include "cloudimg-registry.selectorLabels" . | nindent 6 }}
15+
{{ include "ciregistry.selectorLabels" . | nindent 6 }}
1616
template:
1717
metadata:
1818
{{- with .Values.podAnnotations }}
1919
annotations:
2020
{{- toYaml . | nindent 8 }}
2121
{{- end }}
2222
labels:
23-
{{- include "cloudimg-registry.selectorLabels" . | nindent 8 }}
23+
{{- include "ciregistry.selectorLabels" . | nindent 8 }}
2424
spec:
2525
{{- with .Values.imagePullSecrets }}
2626
imagePullSecrets:
2727
{{- toYaml . | nindent 8 }}
2828
{{- end }}
29+
initContainers:
30+
- name: fix-permissions
31+
image: busybox:1.36.1
32+
command: ["sh", "-c", "chown -R {{ .Values.podSecurityContext.fsGroup }}:{{ .Values.podSecurityContext.fsGroup }} {{ .Values.configurations.dataRoot }}"]
33+
resources:
34+
{{- toYaml .Values.resources | nindent 10 }}
35+
volumeMounts:
36+
- name: "{{ include "ciregistry.fullname" . }}-storage"
37+
mountPath: {{ .Values.configurations.dataRoot }}
2938
containers:
3039
- name: {{ .Chart.Name }}
31-
image: "{{ .Values.image.repository }}:{{ include "cloudimg-registry.version" . }}"
40+
image: "{{ .Values.image.repository }}:{{ include "ciregistry.version" . }}"
3241
imagePullPolicy: {{ .Values.image.pullPolicy }}
3342
args:
3443
- "--data-root={{ .Values.configurations.dataRoot }}"
@@ -47,11 +56,13 @@ spec:
4756
resources:
4857
{{- toYaml .Values.resources | nindent 12 }}
4958
volumeMounts:
50-
- name: "{{ include "cloudimg-registry.fullname" . }}-storage"
59+
- name: "{{ include "ciregistry.fullname" . }}-storage"
5160
mountPath: {{ .Values.configurations.dataRoot }}
5261
securityContext:
5362
{{- toYaml .Values.securityContext | nindent 12 }}
63+
securityContext:
64+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
5465
volumes:
55-
- name: "{{ include "cloudimg-registry.fullname" . }}-storage"
66+
- name: "{{ include "ciregistry.fullname" . }}-storage"
5667
persistentVolumeClaim:
57-
claimName: "{{ include "cloudimg-registry.fullname" . }}-pvc"
68+
claimName: "{{ include "ciregistry.fullname" . }}-pvc"

operators/deploy/cloudimg-registry/templates/pvc.yaml renamed to operators/deploy/ciregistry/templates/pvc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: v1
22
kind: PersistentVolumeClaim
33
metadata:
4-
name: "{{ include "cloudimg-registry.fullname" . }}-pvc"
4+
name: "{{ include "ciregistry.fullname" . }}-pvc"
55
labels:
6-
{{ include "cloudimg-registry.labels" . | nindent 4 }}
6+
{{ include "ciregistry.labels" . | nindent 4 }}
77
spec:
88
accessModes:
99
- {{ .Values.configurations.volume.accessMode }}

0 commit comments

Comments
 (0)