Skip to content

Commit

Permalink
chore: Update allowedSources fields
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Sep 16, 2024
1 parent d1c7fad commit c875375
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 27 deletions.
8 changes: 5 additions & 3 deletions api/v2/checluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ type CheClusterDevEnvironments struct {
// here will not trigger workspace failures.
// +optional
IgnoredUnrecoverableEvents []string `json:"ignoredUnrecoverableEvents,omitempty"`
// AllowedSource defines the allowed sources on which workspaces can be started.
// AllowedSources defines the allowed sources on which workspaces can be started.
// +optional
AllowedSource AllowedSources `json:"allowedSource,omitempty"`
AllowedSources *AllowedSources `json:"allowedSources,omitempty"`
}

// Che components configuration.
Expand Down Expand Up @@ -830,7 +830,9 @@ type KubeRbacProxy struct {

type AllowedSources struct {
// The list of approved URLs for starting Cloud Development Environments (CDEs). CDEs can only be
// initiated from these URLs.
// initiated from these URLs. Wildcards `*` are supported in URLs, allowing flexible matching for
// specific URL patterns. For instance, `https://example.com/*` would allow CDEs to be initiated
// from any path within 'example.com'.
// +optional
Urls []string `json:"urls,omitempty"`
}
Expand Down
6 changes: 5 additions & 1 deletion api/v2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ metadata:
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/eclipse-che/che-operator
support: Eclipse Foundation
name: eclipse-che.v7.92.0-884.next
name: eclipse-che.v7.92.0-885.next
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -1035,7 +1035,7 @@ spec:
minKubeVersion: 1.19.0
provider:
name: Eclipse Foundation
version: 7.92.0-884.next
version: 7.92.0-885.next
webhookdefinitions:
- admissionReviewVersions:
- v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5190,14 +5190,16 @@ spec:
pvcStrategy: per-user
description: Development environment default configuration options.
properties:
allowedSource:
description: AllowedSource defines the allowed sources on which
allowedSources:
description: AllowedSources defines the allowed sources on which
workspaces can be started.
properties:
urls:
description: |-
The list of approved URLs for starting Cloud Development Environments (CDEs). CDEs can only be
initiated from these URLs.
initiated from these URLs. Wildcards `*` are supported in URLs, allowing flexible matching for
specific URL patterns. For instance, `https://example.com/*` would allow CDEs to be initiated
from any path within 'example.com'.
items:
type: string
type: array
Expand Down
8 changes: 5 additions & 3 deletions config/crd/bases/org.eclipse.che_checlusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5148,14 +5148,16 @@ spec:
pvcStrategy: per-user
description: Development environment default configuration options.
properties:
allowedSource:
description: AllowedSource defines the allowed sources on which
allowedSources:
description: AllowedSources defines the allowed sources on which
workspaces can be started.
properties:
urls:
description: |-
The list of approved URLs for starting Cloud Development Environments (CDEs). CDEs can only be
initiated from these URLs.
initiated from these URLs. Wildcards `*` are supported in URLs, allowing flexible matching for
specific URL patterns. For instance, `https://example.com/*` would allow CDEs to be initiated
from any path within 'example.com'.
items:
type: string
type: array
Expand Down
8 changes: 5 additions & 3 deletions deploy/deployment/kubernetes/combined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5169,14 +5169,16 @@ spec:
pvcStrategy: per-user
description: Development environment default configuration options.
properties:
allowedSource:
description: AllowedSource defines the allowed sources on which
allowedSources:
description: AllowedSources defines the allowed sources on which
workspaces can be started.
properties:
urls:
description: |-
The list of approved URLs for starting Cloud Development Environments (CDEs). CDEs can only be
initiated from these URLs.
initiated from these URLs. Wildcards `*` are supported in URLs, allowing flexible matching for
specific URL patterns. For instance, `https://example.com/*` would allow CDEs to be initiated
from any path within 'example.com'.
items:
type: string
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5164,14 +5164,16 @@ spec:
pvcStrategy: per-user
description: Development environment default configuration options.
properties:
allowedSource:
description: AllowedSource defines the allowed sources on which
allowedSources:
description: AllowedSources defines the allowed sources on which
workspaces can be started.
properties:
urls:
description: |-
The list of approved URLs for starting Cloud Development Environments (CDEs). CDEs can only be
initiated from these URLs.
initiated from these URLs. Wildcards `*` are supported in URLs, allowing flexible matching for
specific URL patterns. For instance, `https://example.com/*` would allow CDEs to be initiated
from any path within 'example.com'.
items:
type: string
type: array
Expand Down
8 changes: 5 additions & 3 deletions deploy/deployment/openshift/combined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5169,14 +5169,16 @@ spec:
pvcStrategy: per-user
description: Development environment default configuration options.
properties:
allowedSource:
description: AllowedSource defines the allowed sources on which
allowedSources:
description: AllowedSources defines the allowed sources on which
workspaces can be started.
properties:
urls:
description: |-
The list of approved URLs for starting Cloud Development Environments (CDEs). CDEs can only be
initiated from these URLs.
initiated from these URLs. Wildcards `*` are supported in URLs, allowing flexible matching for
specific URL patterns. For instance, `https://example.com/*` would allow CDEs to be initiated
from any path within 'example.com'.
items:
type: string
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5164,14 +5164,16 @@ spec:
pvcStrategy: per-user
description: Development environment default configuration options.
properties:
allowedSource:
description: AllowedSource defines the allowed sources on which
allowedSources:
description: AllowedSources defines the allowed sources on which
workspaces can be started.
properties:
urls:
description: |-
The list of approved URLs for starting Cloud Development Environments (CDEs). CDEs can only be
initiated from these URLs.
initiated from these URLs. Wildcards `*` are supported in URLs, allowing flexible matching for
specific URL patterns. For instance, `https://example.com/*` would allow CDEs to be initiated
from any path within 'example.com'.
items:
type: string
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5164,14 +5164,16 @@ spec:
pvcStrategy: per-user
description: Development environment default configuration options.
properties:
allowedSource:
description: AllowedSource defines the allowed sources on which
allowedSources:
description: AllowedSources defines the allowed sources on which
workspaces can be started.
properties:
urls:
description: |-
The list of approved URLs for starting Cloud Development Environments (CDEs). CDEs can only be
initiated from these URLs.
initiated from these URLs. Wildcards `*` are supported in URLs, allowing flexible matching for
specific URL patterns. For instance, `https://example.com/*` would allow CDEs to be initiated
from any path within 'example.com'.
items:
type: string
type: array
Expand Down

0 comments on commit c875375

Please sign in to comment.