Skip to content

Commit 883bbde

Browse files
Merge pull request #90 from codefresh-io/CR-21044
feat: expose namespace and cluster resource whitelists/blacklists for restricted gitsource
2 parents f2f720e + b98912b commit 883bbde

File tree

4 files changed

+82
-15
lines changed

4 files changed

+82
-15
lines changed

charts/gitops-runtime/Chart.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: 0.1.36
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
5-
version: 0.3.0
5+
version: 0.3.1
66
home: https://github.com/codefresh-io/gitops-runtime-helm
77
icon: https://avatars1.githubusercontent.com/u/11412079?v=3
88
keywords:
@@ -14,14 +14,13 @@ maintainers:
1414
annotations:
1515
artifacthub.io/alternativeName: "codefresh-gitops-runtime"
1616
artifacthub.io/changes: |
17-
- kind: added
18-
description: Add codefresh-gitops-operator
1917
- kind: changed
2018
description: Update app-proxy
2119
- kind: changed
22-
description: Update argo-workflowschart. Fix podGC label selector
23-
- kind: fixed
24-
description: Set default auth to client on workflows to be able to see workflow logs in UI
20+
description: Update codefresh-gitops-operator.
21+
links:
22+
- name: GitHub Release
23+
url: https://github.com/codefresh-io/codefresh-gitops-operator/releases/tag/v0.1.0-alpha.4
2524
dependencies:
2625
- name: argo-cd
2726
repository: https://codefresh-io.github.io/argo-helm

charts/gitops-runtime/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Codefresh gitops runtime
2-
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![AppVersion: 0.1.36](https://img.shields.io/badge/AppVersion-0.1.36-informational?style=flat-square)
2+
![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![AppVersion: 0.1.36](https://img.shields.io/badge/AppVersion-0.1.36-informational?style=flat-square)
33

44
## Codefresh official documentation:
55
Prior to running the installation please see the official documentation at: https://codefresh.io/docs/docs/installation/gitops/hybrid-gitops-helm-installation/
@@ -15,7 +15,7 @@ We have created a helper utility to resolve this issue:
1515
The utility is packaged in a container image. Below are instructions on executing the utility using Docker:
1616

1717
```
18-
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.3.0 <local_registry>
18+
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.3.1 <local_registry>
1919
```
2020
`output_dir` - is a local directory where the utility will output files. <br>
2121
`local_registry` - is your local registry where you want to mirror the images to
@@ -88,14 +88,14 @@ sealed-secrets:
8888
| app-proxy.image-enrichment.serviceAccount.name | string | `"codefresh-image-enrichment-sa"` | Name of the service account to create or the name of the existing one to use |
8989
| app-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
9090
| app-proxy.image.repository | string | `"quay.io/codefresh/cap-app-proxy"` | |
91-
| app-proxy.image.tag | string | `"1.2472.0"` | |
91+
| app-proxy.image.tag | string | `"1.2495.1"` | |
9292
| app-proxy.imagePullSecrets | list | `[]` | |
9393
| app-proxy.initContainer.command[0] | string | `"./init.sh"` | |
9494
| app-proxy.initContainer.env | object | `{}` | |
9595
| app-proxy.initContainer.extraVolumeMounts | list | `[]` | Extra volume mounts for init container |
9696
| app-proxy.initContainer.image.pullPolicy | string | `"IfNotPresent"` | |
9797
| app-proxy.initContainer.image.repository | string | `"quay.io/codefresh/cap-app-proxy-init"` | |
98-
| app-proxy.initContainer.image.tag | string | `"1.2472.0"` | |
98+
| app-proxy.initContainer.image.tag | string | `"1.2495.1"` | |
9999
| app-proxy.initContainer.resources.limits.cpu | string | `"1"` | |
100100
| app-proxy.initContainer.resources.limits.memory | string | `"512Mi"` | |
101101
| app-proxy.initContainer.resources.requests.cpu | string | `"0.2"` | |
@@ -192,7 +192,7 @@ sealed-secrets:
192192
| gitops-operator.fullnameOverride | string | `""` | |
193193
| gitops-operator.image.pullPolicy | string | `"IfNotPresent"` | |
194194
| gitops-operator.image.repository | string | `"quay.io/codefresh/codefresh-gitops-operator"` | |
195-
| gitops-operator.image.tag | string | `"v0.1.0-alpha.3"` | |
195+
| gitops-operator.image.tag | string | `"v0.1.0-alpha.4"` | |
196196
| gitops-operator.imagePullSecrets | list | `[]` | |
197197
| gitops-operator.kube-rbac-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
198198
| gitops-operator.kube-rbac-proxy.image.repository | string | `"gcr.io/kubebuilder/kube-rbac-proxy"` | |

charts/gitops-runtime/templates/_components/gitops-operator/crds/restrictedgitsources.yaml

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,40 @@ spec:
4747
spec:
4848
description: RestrictedGitSourceSpec defines the desired state of RestrictedGitSource
4949
properties:
50+
clusterResourceBlacklist:
51+
description: ClusterResourceBlacklist contains list of blacklisted
52+
cluster level resources
53+
items:
54+
description: GroupKind specifies a Group and a Kind, but does not
55+
force a version. This is useful for identifying concepts during
56+
lookup stages without having partially valid types
57+
properties:
58+
group:
59+
type: string
60+
kind:
61+
type: string
62+
required:
63+
- group
64+
- kind
65+
type: object
66+
type: array
67+
clusterResourceWhitelist:
68+
description: ClusterResourceWhitelist contains list of whitelisted
69+
cluster level resources
70+
items:
71+
description: GroupKind specifies a Group and a Kind, but does not
72+
force a version. This is useful for identifying concepts during
73+
lookup stages without having partially valid types
74+
properties:
75+
group:
76+
type: string
77+
kind:
78+
type: string
79+
required:
80+
- group
81+
- kind
82+
type: object
83+
type: array
5084
destinations:
5185
description: Destinations contains list of destinations available
5286
for deployment
@@ -70,6 +104,40 @@ spec:
70104
type: object
71105
minItems: 1
72106
type: array
107+
namespaceResourceBlacklist:
108+
description: NamespaceResourceBlacklist contains list of blacklisted
109+
namespace level resources
110+
items:
111+
description: GroupKind specifies a Group and a Kind, but does not
112+
force a version. This is useful for identifying concepts during
113+
lookup stages without having partially valid types
114+
properties:
115+
group:
116+
type: string
117+
kind:
118+
type: string
119+
required:
120+
- group
121+
- kind
122+
type: object
123+
type: array
124+
namespaceResourceWhitelist:
125+
description: NamespaceResourceWhitelist contains list of whitelisted
126+
namespace level resources
127+
items:
128+
description: GroupKind specifies a Group and a Kind, but does not
129+
force a version. This is useful for identifying concepts during
130+
lookup stages without having partially valid types
131+
properties:
132+
group:
133+
type: string
134+
kind:
135+
type: string
136+
required:
137+
- group
138+
- kind
139+
type: object
140+
type: array
73141
source:
74142
description: Source is the application source
75143
properties:
@@ -522,4 +590,4 @@ spec:
522590
subresources:
523591
status: {}
524592
{{- end }}
525-
{{- end }}
593+
{{- end }}

charts/gitops-runtime/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,15 +359,15 @@ app-proxy:
359359
tag: 1.1.10-main
360360
image:
361361
repository: quay.io/codefresh/cap-app-proxy
362-
tag: 1.2472.0
362+
tag: 1.2495.1
363363
pullPolicy: IfNotPresent
364364
# -- Extra volume mounts for main container
365365
extraVolumeMounts: []
366366

367367
initContainer:
368368
image:
369369
repository: quay.io/codefresh/cap-app-proxy-init
370-
tag: 1.2472.0
370+
tag: 1.2495.1
371371
pullPolicy: IfNotPresent
372372
command:
373373
- ./init.sh
@@ -502,7 +502,7 @@ gitops-operator:
502502
# VAR_NANE: string-value
503503
image:
504504
repository: quay.io/codefresh/codefresh-gitops-operator
505-
tag: v0.1.0-alpha.3
505+
tag: v0.1.0-alpha.4
506506
pullPolicy: IfNotPresent
507507

508508
serviceAccount:

0 commit comments

Comments
 (0)