Skip to content

Commit

Permalink
fix: remove image data in context for now
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly committed Oct 10, 2023
1 parent 88cbfdf commit 3de82ad
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 371 deletions.
44 changes: 0 additions & 44 deletions config/crds/json.kyverno.io_policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,50 +44,6 @@ spec:
description: ContextEntry adds variables and data sources
to a rule Context.
properties:
imageRegistry:
description: ImageRegistry defines requests to an OCI/Docker
V2 registry to fetch image details.
properties:
imageRegistryCredentials:
description: ImageRegistryCredentials provides credentials
that will be used for authentication with registry.
properties:
allowInsecureRegistry:
description: AllowInsecureRegistry allows insecure
access to a registry.
type: boolean
providers:
description: 'Providers specifies a list of OCI
Registry names, whose authentication providers
are provided. It can be of one of these values:
AWS, ACR, GCP, GHCR.'
items:
description: ImageRegistryCredentialsProvider
provides the list of credential providers
required.
enum:
- default
- amazon
- azure
- google
- github
type: string
type: array
secrets:
description: Secrets specifies a list of secrets
that are provided for credentials. Secrets must
live in the Kyverno namespace.
items:
type: string
type: array
type: object
reference:
description: 'Reference is image reference to a container
image in the registry. Example: ghcr.io/kyverno/kyverno:latest'
type: string
required:
- reference
type: object
name:
description: Name is the variable name.
type: string
Expand Down
95 changes: 0 additions & 95 deletions docs/user/apis/md/kyverno-json.v1alpha1.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,104 +112,9 @@ auto_generated: true
<p>Variable defines an arbitrary JMESPath context variable that can be defined inline.</p>
</td>
</tr>
<tr><td><code>imageRegistry</code> <B>[Required]</B><br/>
<a href="#json-kyverno-io-v1alpha1-ImageRegistry"><code>ImageRegistry</code></a>
</td>
<td>
<p>ImageRegistry defines requests to an OCI/Docker V2 registry to fetch image details.</p>
</td>
</tr>
</tbody>
</table>

## `ImageRegistry` {#json-kyverno-io-v1alpha1-ImageRegistry}


**Appears in:**

- [ContextEntry](#json-kyverno-io-v1alpha1-ContextEntry)


<p>ImageRegistry defines requests to an OCI/Docker V2 registry to fetch image details.</p>


<table class="table">
<thead><tr><th width="30%">Field</th><th>Description</th></tr></thead>
<tbody>


<tr><td><code>reference</code> <B>[Required]</B><br/>
<code>string</code>
</td>
<td>
<p>Reference is image reference to a container image in the registry.
Example: ghcr.io/kyverno/kyverno:latest</p>
</td>
</tr>
<tr><td><code>imageRegistryCredentials</code> <B>[Required]</B><br/>
<a href="#json-kyverno-io-v1alpha1-ImageRegistryCredentials"><code>ImageRegistryCredentials</code></a>
</td>
<td>
<p>ImageRegistryCredentials provides credentials that will be used for authentication with registry.</p>
</td>
</tr>
</tbody>
</table>

## `ImageRegistryCredentials` {#json-kyverno-io-v1alpha1-ImageRegistryCredentials}


**Appears in:**

- [ImageRegistry](#json-kyverno-io-v1alpha1-ImageRegistry)



<table class="table">
<thead><tr><th width="30%">Field</th><th>Description</th></tr></thead>
<tbody>


<tr><td><code>allowInsecureRegistry</code> <B>[Required]</B><br/>
<code>bool</code>
</td>
<td>
<p>AllowInsecureRegistry allows insecure access to a registry.</p>
</td>
</tr>
<tr><td><code>providers</code> <B>[Required]</B><br/>
<a href="#json-kyverno-io-v1alpha1-ImageRegistryCredentialsProvider"><code>[]ImageRegistryCredentialsProvider</code></a>
</td>
<td>
<p>Providers specifies a list of OCI Registry names, whose authentication providers are provided.
It can be of one of these values: AWS, ACR, GCP, GHCR.</p>
</td>
</tr>
<tr><td><code>secrets</code> <B>[Required]</B><br/>
<code>[]string</code>
</td>
<td>
<p>Secrets specifies a list of secrets that are provided for credentials.
Secrets must live in the Kyverno namespace.</p>
</td>
</tr>
</tbody>
</table>

## `ImageRegistryCredentialsProvider` {#json-kyverno-io-v1alpha1-ImageRegistryCredentialsProvider}

(Alias of `string`)

**Appears in:**

- [ImageRegistryCredentials](#json-kyverno-io-v1alpha1-ImageRegistryCredentials)


<p>ImageRegistryCredentialsProvider provides the list of credential providers required.</p>




## `Match` {#json-kyverno-io-v1alpha1-Match}


Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/v1alpha1/context_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ type ContextEntry struct {
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
Variable Any `json:"variable,omitempty"`

// ImageRegistry defines requests to an OCI/Docker V2 registry to fetch image details.
ImageRegistry *ImageRegistry `json:"imageRegistry,omitempty"`
}
11 changes: 0 additions & 11 deletions pkg/apis/v1alpha1/image_registry.go

This file was deleted.

14 changes: 0 additions & 14 deletions pkg/apis/v1alpha1/image_registry_credentials.go

This file was deleted.

13 changes: 0 additions & 13 deletions pkg/apis/v1alpha1/image_registry_credentials_provider.go

This file was deleted.

52 changes: 0 additions & 52 deletions pkg/apis/v1alpha1/zz_generated.deepcopy.go

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

44 changes: 0 additions & 44 deletions pkg/data/crds/json.kyverno.io_policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,50 +44,6 @@ spec:
description: ContextEntry adds variables and data sources
to a rule Context.
properties:
imageRegistry:
description: ImageRegistry defines requests to an OCI/Docker
V2 registry to fetch image details.
properties:
imageRegistryCredentials:
description: ImageRegistryCredentials provides credentials
that will be used for authentication with registry.
properties:
allowInsecureRegistry:
description: AllowInsecureRegistry allows insecure
access to a registry.
type: boolean
providers:
description: 'Providers specifies a list of OCI
Registry names, whose authentication providers
are provided. It can be of one of these values:
AWS, ACR, GCP, GHCR.'
items:
description: ImageRegistryCredentialsProvider
provides the list of credential providers
required.
enum:
- default
- amazon
- azure
- google
- github
type: string
type: array
secrets:
description: Secrets specifies a list of secrets
that are provided for credentials. Secrets must
live in the Kyverno namespace.
items:
type: string
type: array
type: object
reference:
description: 'Reference is image reference to a container
image in the registry. Example: ghcr.io/kyverno/kyverno:latest'
type: string
required:
- reference
type: object
name:
description: Name is the variable name.
type: string
Expand Down
Loading

0 comments on commit 3de82ad

Please sign in to comment.