-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
operators-installer - private registry support
add support for pulling the operator approver job image from a private registry
- Loading branch information
Showing
16 changed files
with
186 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
charts/operators-installer/_integration-tests/kind-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
extraPortMappings: | ||
- containerPort: 5000 | ||
hostPort: 5000 | ||
protocol: TCP | ||
- containerPort: 80 | ||
hostPort: 80 | ||
protocol: TCP | ||
|
3 changes: 3 additions & 0 deletions
3
charts/operators-installer/_integration-tests/private-registry/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
apiVersion: v2 | ||
name: private-registry | ||
version: 0.0.2 |
62 changes: 62 additions & 0 deletions
62
...perators-installer/_integration-tests/private-registry/templates/Deployment_registry.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: registry | ||
namespace: registry | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: registry | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: registry | ||
spec: | ||
containers: | ||
- env: | ||
- name: REGISTRY_HTTP_ADDR | ||
value: :5000 | ||
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY | ||
value: /var/lib/registry | ||
- name: REGISTRY_AUTH | ||
value: htpasswd | ||
- name: REGISTRY_AUTH_HTPASSWD_REALM | ||
value: Registry Realm | ||
- name: REGISTRY_AUTH_HTPASSWD_PATH | ||
value: /auth/htpasswd | ||
image: registry:2 | ||
imagePullPolicy: IfNotPresent | ||
name: registry | ||
ports: | ||
- containerPort: 5000 | ||
name: http | ||
protocol: TCP | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 128Mi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /var/lib/registry | ||
name: registry | ||
- mountPath: /auth | ||
name: htpasswd | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
volumes: | ||
- name: registry | ||
persistentVolumeClaim: | ||
claimName: registry | ||
- name: htpasswd | ||
secret: | ||
defaultMode: 420 | ||
secretName: htpasswd |
18 changes: 18 additions & 0 deletions
18
charts/operators-installer/_integration-tests/private-registry/templates/Ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: registry | ||
namespace: registry | ||
spec: | ||
rules: | ||
- host: registry.localhost | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: registry | ||
port: | ||
number: 5000 | ||
|
11 changes: 11 additions & 0 deletions
11
...rators-installer/_integration-tests/private-registry/templates/PersistentVolumeClaim.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: registry | ||
namespace: registry | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 30Gi |
8 changes: 8 additions & 0 deletions
8
...ts/operators-installer/_integration-tests/private-registry/templates/Secret_htpasswd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
data: | ||
htpasswd: {{ htpasswd .Values.registryUser .Values.registryPassword | b64enc }} | ||
kind: Secret | ||
metadata: | ||
name: htpasswd | ||
namespace: registry | ||
|
17 changes: 17 additions & 0 deletions
17
charts/operators-installer/_integration-tests/private-registry/templates/Service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: registry | ||
name: registry | ||
namespace: registry | ||
spec: | ||
ports: | ||
- name: http | ||
port: 5000 | ||
protocol: TCP | ||
targetPort: 5000 | ||
selector: | ||
app: registry | ||
sessionAffinity: None | ||
type: ClusterIP |
Empty file.
3 changes: 3 additions & 0 deletions
3
charts/operators-installer/_integration-tests/private-registry/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
registryUser: | ||
registryPassword: | ||
|
4 changes: 3 additions & 1 deletion
4
...egration-tests/test-install-operator-1-automatic-intermediate-manual-upgrades-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters