1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-15 12:17:56 +00:00

update nirmata/kyverno to kyverno/kyverno

This commit is contained in:
Shuting Zhao 2020-10-07 11:12:31 -07:00
parent ccdcb6ae89
commit cdc5190c56
179 changed files with 524 additions and 518 deletions

View file

@ -9,7 +9,7 @@ builds:
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
ldflags: ldflags:
- -s -w -X github.com/nirmata/kyverno/pkg/version.BuildVersion={{.Version}} -X github.com/nirmata/kyverno/pkg/version.BuildHash={{ .FullCommit }} -X github.com/nirmata/kyverno/pkg/version.BuildTime={{ .Date }} - -s -w -X github.com/kyverno/kyverno/pkg/version.BuildVersion={{.Version}} -X github.com/kyverno/kyverno/pkg/version.BuildHash={{ .FullCommit }} -X github.com/kyverno/kyverno/pkg/version.BuildTime={{ .Date }}
goos: goos:
- linux - linux
- darwin - darwin

View file

@ -10,7 +10,7 @@ spec:
matchLabels: matchLabels:
os: linux os: linux
arch: amd64 arch: amd64
{{addURIAndSha "https://github.com/nirmata/kyverno/releases/download/{{ .TagName }}/kyverno-cli_{{ .TagName }}_linux_x86_64.tar.gz" .TagName | indent 6 }} {{addURIAndSha "https://github.com/kyverno/kyverno/releases/download/{{ .TagName }}/kyverno-cli_{{ .TagName }}_linux_x86_64.tar.gz" .TagName | indent 6 }}
files: files:
- from: kyverno - from: kyverno
to: . to: .
@ -21,7 +21,7 @@ spec:
matchLabels: matchLabels:
os: darwin os: darwin
arch: amd64 arch: amd64
{{addURIAndSha "https://github.com/nirmata/kyverno/releases/download/{{ .TagName }}/kyverno-cli_{{ .TagName }}_darwin_x86_64.tar.gz" .TagName | indent 6 }} {{addURIAndSha "https://github.com/kyverno/kyverno/releases/download/{{ .TagName }}/kyverno-cli_{{ .TagName }}_darwin_x86_64.tar.gz" .TagName | indent 6 }}
files: files:
- from: kyverno - from: kyverno
to: . to: .
@ -32,7 +32,7 @@ spec:
matchLabels: matchLabels:
os: windows os: windows
arch: amd64 arch: amd64
{{addURIAndSha "https://github.com/nirmata/kyverno/releases/download/{{ .TagName }}/kyverno-cli_{{ .TagName }}_windows_x86_64.zip" .TagName | indent 6 }} {{addURIAndSha "https://github.com/kyverno/kyverno/releases/download/{{ .TagName }}/kyverno-cli_{{ .TagName }}_windows_x86_64.zip" .TagName | indent 6 }}
files: files:
- from: kyverno.exe - from: kyverno.exe
to: . to: .

View file

@ -176,7 +176,7 @@ kustomize-crd:
# Generate install_debug.yaml that for developer testing # Generate install_debug.yaml that for developer testing
kustomize build ./definitions/debug > ./definitions/install_debug.yaml kustomize build ./definitions/debug > ./definitions/install_debug.yaml
# guidance https://github.com/nirmata/kyverno/wiki/Generate-a-Release # guidance https://github.com/kyverno/kyverno/wiki/Generate-a-Release
release: release:
kustomize build ./definitions > ./definitions/install.yaml kustomize build ./definitions > ./definitions/install.yaml
kustomize build ./definitions > ./definitions/release/install.yaml kustomize build ./definitions > ./definitions/release/install.yaml

View file

@ -28,7 +28,7 @@ Install Kyverno:
kubectl create -f https://raw.githubusercontent.com/nirmata/kyverno/master/definitions/release/install.yaml kubectl create -f https://raw.githubusercontent.com/nirmata/kyverno/master/definitions/release/install.yaml
``` ```
You can also install Kyverno using a [Helm chart](https://github.com/nirmata/kyverno/blob/master/documentation/installation.md#install-kyverno-using-helm). You can also install Kyverno using a [Helm chart](https://github.com/kyverno/kyverno/blob/master/documentation/installation.md#install-kyverno-using-helm).
Add the policy below. It contains a single validation rule that requires that all pods have Add the policy below. It contains a single validation rule that requires that all pods have
a `app.kubernetes.io/name` label. Kyverno supports different rule types to validate, a `app.kubernetes.io/name` label. Kyverno supports different rule types to validate,
@ -96,10 +96,10 @@ Clean up by deleting all cluster policies:
kubectl delete cpol --all kubectl delete cpol --all
``` ```
As a next step, browse the [sample policies](https://github.com/nirmata/kyverno/blob/master/samples/README.md) As a next step, browse the [sample policies](https://github.com/kyverno/kyverno/blob/master/samples/README.md)
and learn about [writing policies](https://github.com/nirmata/kyverno/blob/master/documentation/writing-policies.md). and learn about [writing policies](https://github.com/kyverno/kyverno/blob/master/documentation/writing-policies.md).
You can test policies using the [Kyverno cli](https://github.com/nirmata/kyverno/blob/master/documentation/kyverno-cli.md). You can test policies using the [Kyverno cli](https://github.com/kyverno/kyverno/blob/master/documentation/kyverno-cli.md).
See [docs](https://github.com/nirmata/kyverno/#documentation) for complete details. See [docs](https://github.com/kyverno/kyverno/#documentation) for complete details.
## Documentation ## Documentation
@ -118,11 +118,11 @@ See [docs](https://github.com/nirmata/kyverno/#documentation) for complete detai
- [Policy Violations](documentation/policy-violations.md) - [Policy Violations](documentation/policy-violations.md)
- [Kyverno CLI](documentation/kyverno-cli.md) - [Kyverno CLI](documentation/kyverno-cli.md)
- [Sample Policies](/samples/README.md) - [Sample Policies](/samples/README.md)
- [API Documentation](https://htmlpreview.github.io/?https://github.com/nirmata/kyverno/blob/master/documentation/index.html) - [API Documentation](https://htmlpreview.github.io/?https://github.com/kyverno/kyverno/blob/master/documentation/index.html)
## License ## License
[Apache License 2.0](https://github.com/nirmata/kyverno/blob/master/LICENSE) [Apache License 2.0](https://github.com/kyverno/kyverno/blob/master/LICENSE)
## Community ## Community
@ -132,7 +132,7 @@ To attend our next monthly community meeting join the [Kyverno group](https://gr
### Getting Help ### Getting Help
- For feature requests and bugs, file an [issue](https://github.com/nirmata/kyverno/issues). - For feature requests and bugs, file an [issue](https://github.com/kyverno/kyverno/issues).
- For discussions or questions, join the **#kyverno** channel on the [Kubernetes Slack](https://kubernetes.slack.com/) or the [mailing list](https://groups.google.com/g/kyverno). - For discussions or questions, join the **#kyverno** channel on the [Kubernetes Slack](https://kubernetes.slack.com/) or the [mailing list](https://groups.google.com/g/kyverno).
### Contributing ### Contributing
@ -141,8 +141,8 @@ Thanks for your interest in contributing!
- Please review and agree to abide with the [Code of Conduct](/CODE_OF_CONDUCT.md) before contributing. - Please review and agree to abide with the [Code of Conduct](/CODE_OF_CONDUCT.md) before contributing.
- We encourage all contributions and encourage you to read our [contribution guidelines](./CONTRIBUTING.md). - We encourage all contributions and encourage you to read our [contribution guidelines](./CONTRIBUTING.md).
- See the [Wiki](https://github.com/nirmata/kyverno/wiki) for developer documentation. - See the [Wiki](https://github.com/kyverno/kyverno/wiki) for developer documentation.
- Browse through the [open issues](https://github.com/nirmata/kyverno/issues) - Browse through the [open issues](https://github.com/kyverno/kyverno/issues)
## Presentations and Articles ## Presentations and Articles
@ -175,5 +175,5 @@ Tools like [Kustomize](https://github.com/kubernetes-sigs/kustomize) can be used
## Roadmap ## Roadmap
See [Milestones](https://github.com/nirmata/kyverno/milestones) and [Issues](https://github.com/nirmata/kyverno/issues). See [Milestones](https://github.com/kyverno/kyverno/milestones) and [Issues](https://github.com/kyverno/kyverno/issues).

View file

@ -2,7 +2,7 @@ apiVersion: v1
name: kyverno name: kyverno
version: 1.1.12 version: 1.1.12
appVersion: v1.1.12 appVersion: v1.1.12
icon: https://github.com/nirmata/kyverno/blob/master/documentation/images/Kyverno_Horizontal.png icon: https://github.com/kyverno/kyverno/blob/master/documentation/images/Kyverno_Horizontal.png
description: Kubernetes Native Policy Management description: Kubernetes Native Policy Management
keywords: keywords:
- kubernetes - kubernetes

View file

@ -57,7 +57,7 @@ Parameter | Description | Default
`affinity` | node/pod affinities | `nil` `affinity` | node/pod affinities | `nil`
`createSelfSignedCert` | generate a self signed cert and certificate authority. Kyverno defaults to using kube-controller-manager CA-signed certificate or existing cert secret if false. | `false` `createSelfSignedCert` | generate a self signed cert and certificate authority. Kyverno defaults to using kube-controller-manager CA-signed certificate or existing cert secret if false. | `false`
`config.existingConfig` | existing Kubernetes configmap to use for the resource filters configuration | `nil` `config.existingConfig` | existing Kubernetes configmap to use for the resource filters configuration | `nil`
`config.resourceFilters` | list of filter of resource types to be skipped by kyverno policy engine. See [documentation](https://github.com/nirmata/kyverno/blob/master/documentation/installation.md#filter-kubernetes-resources-that-admission-webhook-should-not-process) for details | `["[Event,*,*]","[*,kube-system,*]","[*,kube-public,*]","[*,kube-node-lease,*]","[Node,*,*]","[APIService,*,*]","[TokenReview,*,*]","[SubjectAccessReview,*,*]","[*,kyverno,*]"]` `config.resourceFilters` | list of filter of resource types to be skipped by kyverno policy engine. See [documentation](https://github.com/kyverno/kyverno/blob/master/documentation/installation.md#filter-kubernetes-resources-that-admission-webhook-should-not-process) for details | `["[Event,*,*]","[*,kube-system,*]","[*,kube-public,*]","[*,kube-node-lease,*]","[Node,*,*]","[APIService,*,*]","[TokenReview,*,*]","[SubjectAccessReview,*,*]","[*,kyverno,*]"]`
`extraArgs` | list of extra arguments to give the binary | `[]` `extraArgs` | list of extra arguments to give the binary | `[]`
`fullnameOverride` | override the expanded name of the chart | `nil` `fullnameOverride` | override the expanded name of the chart | `nil`
`generatecontrollerExtraResources` | extra resource type Kyverno is allowed to generate | `[]` `generatecontrollerExtraResources` | extra resource type Kyverno is allowed to generate | `[]`
@ -107,6 +107,6 @@ $ helm install --namespace kyverno kyverno ./charts/kyverno -f values.yaml
## TLS Configuration ## TLS Configuration
If `createSelfSignedCert` is `true`, Helm will take care of the steps of creating an external self-signed certificate describe in option 2 of the [installation documentation](https://github.com/nirmata/kyverno/blob/master/documentation/installation.md#option-2-use-your-own-ca-signed-certificate) If `createSelfSignedCert` is `true`, Helm will take care of the steps of creating an external self-signed certificate describe in option 2 of the [installation documentation](https://github.com/kyverno/kyverno/blob/master/documentation/installation.md#option-2-use-your-own-ca-signed-certificate)
If `createSelfSignedCert` is `false`, Kyverno will generate a pair using the kube-controller-manager., or you can provide your own TLS CA and signed-key pair and create the secret yourself as described in the documentation. If `createSelfSignedCert` is `false`, Kyverno will generate a pair using the kube-controller-manager., or you can provide your own TLS CA and signed-key pair and create the secret yourself as described in the documentation.

View file

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/nirmata/kyverno/pkg/kyverno" "github.com/kyverno/kyverno/pkg/kyverno"
) )
func main() { func main() {

View file

@ -10,10 +10,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/nirmata/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/config"
client "github.com/nirmata/kyverno/pkg/dclient" client "github.com/kyverno/kyverno/pkg/dclient"
"github.com/nirmata/kyverno/pkg/signal" "github.com/kyverno/kyverno/pkg/signal"
"github.com/nirmata/kyverno/pkg/utils" "github.com/kyverno/kyverno/pkg/utils"
"k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/errors"
rest "k8s.io/client-go/rest" rest "k8s.io/client-go/rest"
clientcmd "k8s.io/client-go/tools/clientcmd" clientcmd "k8s.io/client-go/tools/clientcmd"
@ -60,7 +60,7 @@ func main() {
} }
// Exit for unsupported version of kubernetes cluster // Exit for unsupported version of kubernetes cluster
// https://github.com/nirmata/kyverno/issues/700 // https://github.com/kyverno/kyverno/issues/700
// - supported from v1.12.7+ // - supported from v1.12.7+
if !utils.HigherThanKubernetesVersion(client, log.Log, 1, 12, 7) { if !utils.HigherThanKubernetesVersion(client, log.Log, 1, 12, 7) {
os.Exit(1) os.Exit(1)

View file

@ -9,27 +9,27 @@ import (
"os" "os"
"time" "time"
"github.com/nirmata/kyverno/pkg/openapi" "github.com/kyverno/kyverno/pkg/openapi"
"github.com/nirmata/kyverno/pkg/policycache" "github.com/kyverno/kyverno/pkg/policycache"
"github.com/nirmata/kyverno/pkg/checker" "github.com/kyverno/kyverno/pkg/checker"
kyvernoclient "github.com/nirmata/kyverno/pkg/client/clientset/versioned" kyvernoclient "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
kyvernoinformer "github.com/nirmata/kyverno/pkg/client/informers/externalversions" kyvernoinformer "github.com/kyverno/kyverno/pkg/client/informers/externalversions"
"github.com/nirmata/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/config"
dclient "github.com/nirmata/kyverno/pkg/dclient" dclient "github.com/kyverno/kyverno/pkg/dclient"
event "github.com/nirmata/kyverno/pkg/event" event "github.com/kyverno/kyverno/pkg/event"
"github.com/nirmata/kyverno/pkg/generate" "github.com/kyverno/kyverno/pkg/generate"
generatecleanup "github.com/nirmata/kyverno/pkg/generate/cleanup" generatecleanup "github.com/kyverno/kyverno/pkg/generate/cleanup"
"github.com/nirmata/kyverno/pkg/policy" "github.com/kyverno/kyverno/pkg/policy"
"github.com/nirmata/kyverno/pkg/policystatus" "github.com/kyverno/kyverno/pkg/policystatus"
"github.com/nirmata/kyverno/pkg/policyviolation" "github.com/kyverno/kyverno/pkg/policyviolation"
"github.com/nirmata/kyverno/pkg/resourcecache" "github.com/kyverno/kyverno/pkg/resourcecache"
"github.com/nirmata/kyverno/pkg/signal" "github.com/kyverno/kyverno/pkg/signal"
"github.com/nirmata/kyverno/pkg/utils" "github.com/kyverno/kyverno/pkg/utils"
"github.com/nirmata/kyverno/pkg/version" "github.com/kyverno/kyverno/pkg/version"
"github.com/nirmata/kyverno/pkg/webhookconfig" "github.com/kyverno/kyverno/pkg/webhookconfig"
"github.com/nirmata/kyverno/pkg/webhooks" "github.com/kyverno/kyverno/pkg/webhooks"
webhookgenerate "github.com/nirmata/kyverno/pkg/webhooks/generate" webhookgenerate "github.com/kyverno/kyverno/pkg/webhooks/generate"
kubeinformers "k8s.io/client-go/informers" kubeinformers "k8s.io/client-go/informers"
"k8s.io/klog" "k8s.io/klog"
"k8s.io/klog/klogr" "k8s.io/klog/klogr"
@ -71,7 +71,7 @@ func main() {
os.Exit(1) os.Exit(1)
} }
// Generate CSR with CN as FQDN due to https://github.com/nirmata/kyverno/issues/542 // Generate CSR with CN as FQDN due to https://github.com/kyverno/kyverno/issues/542
flag.BoolVar(&fqdncn, "fqdn-as-cn", false, "use FQDN as Common Name in CSR") flag.BoolVar(&fqdncn, "fqdn-as-cn", false, "use FQDN as Common Name in CSR")
flag.Parse() flag.Parse()

View file

@ -36,7 +36,7 @@ Kyverno can request a CA signed certificate-key pair from `kube-controller-manag
```sh ```sh
## Install Kyverno ## Install Kyverno
kubectl create -f https://github.com/nirmata/kyverno/raw/master/definitions/install.yaml kubectl create -f https://github.com/kyverno/kyverno/raw/master/definitions/install.yaml
``` ```
This method requires that the kube-controller-manager is configured to act as a certificate signer. To verify that this option is enabled for your cluster, check the command-line args for the kube-controller-manager. If `--cluster-signing-cert-file` and `--cluster-signing-key-file` are passed to the controller manager with paths to your CA's key-pair, then you can proceed to install Kyverno using this method. This method requires that the kube-controller-manager is configured to act as a certificate signer. To verify that this option is enabled for your cluster, check the command-line args for the kube-controller-manager. If `--cluster-signing-cert-file` and `--cluster-signing-key-file` are passed to the controller manager with paths to your CA's key-pair, then you can proceed to install Kyverno using this method.
@ -148,7 +148,7 @@ Kyverno uses secrets created above to setup TLS communication with the kube-apis
You can now install kyverno by downloading and updating the [install.yaml], or using the command below (assumes that the namespace is **kyverno**): You can now install kyverno by downloading and updating the [install.yaml], or using the command below (assumes that the namespace is **kyverno**):
```sh ```sh
kubectl create -f https://github.com/nirmata/kyverno/raw/master/definitions/install.yaml kubectl create -f https://github.com/kyverno/kyverno/raw/master/definitions/install.yaml
``` ```
@ -317,7 +317,7 @@ To modify the `ConfigMap`, either directly edit the `ConfigMap` `init-config` in
# Installing outside of the cluster (debug mode) # Installing outside of the cluster (debug mode)
To build Kyverno in a development environment see: https://github.com/nirmata/kyverno/wiki/Building To build Kyverno in a development environment see: https://github.com/kyverno/kyverno/wiki/Building
To run controller in this mode you should prepare a TLS key/certificate pair for debug webhook, then start controller with kubeconfig and the server address. To run controller in this mode you should prepare a TLS key/certificate pair for debug webhook, then start controller with kubeconfig and the server address.
@ -330,4 +330,4 @@ To run controller in this mode you should prepare a TLS key/certificate pair for
--- ---
<small>*Read Next >> [Writing Policies](/documentation/writing-policies.md)*</small> <small>*Read Next >> [Writing Policies](/documentation/writing-policies.md)*</small>
[install.yaml]: https://github.com/nirmata/kyverno/raw/master/definitions/install.yaml [install.yaml]: https://github.com/kyverno/kyverno/raw/master/definitions/install.yaml

View file

@ -320,7 +320,7 @@ The anchor processing behavior for mutate conditions is as follows:
## Additional Details ## Additional Details
Additional details on mutation overlay behaviors are available on the wiki: [Mutation Overlay](https://github.com/nirmata/kyverno/wiki/Mutation-Overlay) Additional details on mutation overlay behaviors are available on the wiki: [Mutation Overlay](https://github.com/kyverno/kyverno/wiki/Mutation-Overlay)
--- ---
<small>*Read Next >> [Generate Resources](/documentation/writing-policies-generate.md)*</small> <small>*Read Next >> [Generate Resources](/documentation/writing-policies-generate.md)*</small>

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/nirmata/kyverno module github.com/kyverno/kyverno
go 1.13 go 1.13

View file

@ -5,7 +5,7 @@ import (
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"github.com/nirmata/kyverno/pkg/api/kyverno" "github.com/kyverno/kyverno/pkg/api/kyverno"
) )
// SchemeGroupVersion is group version used to register these objects // SchemeGroupVersion is group version used to register these objects

View file

@ -5,7 +5,7 @@ import (
"reflect" "reflect"
"github.com/go-logr/logr" "github.com/go-logr/logr"
client "github.com/nirmata/kyverno/pkg/dclient" client "github.com/kyverno/kyverno/pkg/dclient"
authorizationv1 "k8s.io/api/authorization/v1" authorizationv1 "k8s.io/api/authorization/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -5,9 +5,9 @@ package auth
// "time" // "time"
// "github.com/golang/glog" // "github.com/golang/glog"
// "github.com/nirmata/kyverno/pkg/config" // "github.com/kyverno/kyverno/pkg/config"
// dclient "github.com/nirmata/kyverno/pkg/dclient" // dclient "github.com/kyverno/kyverno/pkg/dclient"
// "github.com/nirmata/kyverno/pkg/signal" // "github.com/kyverno/kyverno/pkg/signal"
// ) // )
// func Test_Auth_pass(t *testing.T) { // func Test_Auth_pass(t *testing.T) {

View file

@ -6,9 +6,9 @@ import (
"time" "time"
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyvernolister "github.com/nirmata/kyverno/pkg/client/listers/kyverno/v1" kyvernolister "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1"
dclient "github.com/nirmata/kyverno/pkg/dclient" dclient "github.com/kyverno/kyverno/pkg/dclient"
"github.com/nirmata/kyverno/pkg/event" "github.com/kyverno/kyverno/pkg/event"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
) )

View file

@ -5,9 +5,9 @@ import (
"strconv" "strconv"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/config"
dclient "github.com/nirmata/kyverno/pkg/dclient" dclient "github.com/kyverno/kyverno/pkg/dclient"
"github.com/nirmata/kyverno/pkg/event" "github.com/kyverno/kyverno/pkg/event"
) )
var deployName string = config.KubePolicyDeploymentName var deployName string = config.KubePolicyDeploymentName

View file

@ -21,7 +21,7 @@ package versioned
import ( import (
"fmt" "fmt"
kyvernov1 "github.com/nirmata/kyverno/pkg/client/clientset/versioned/typed/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/client/clientset/versioned/typed/kyverno/v1"
discovery "k8s.io/client-go/discovery" discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest" rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol" flowcontrol "k8s.io/client-go/util/flowcontrol"

View file

@ -19,9 +19,9 @@ limitations under the License.
package fake package fake
import ( import (
clientset "github.com/nirmata/kyverno/pkg/client/clientset/versioned" clientset "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
kyvernov1 "github.com/nirmata/kyverno/pkg/client/clientset/versioned/typed/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/client/clientset/versioned/typed/kyverno/v1"
fakekyvernov1 "github.com/nirmata/kyverno/pkg/client/clientset/versioned/typed/kyverno/v1/fake" fakekyvernov1 "github.com/kyverno/kyverno/pkg/client/clientset/versioned/typed/kyverno/v1/fake"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch" "k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/discovery" "k8s.io/client-go/discovery"

View file

@ -19,7 +19,7 @@ limitations under the License.
package fake package fake
import ( import (
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -19,7 +19,7 @@ limitations under the License.
package scheme package scheme
import ( import (
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -21,8 +21,8 @@ package v1
import ( import (
"time" "time"
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
scheme "github.com/nirmata/kyverno/pkg/client/clientset/versioned/scheme" scheme "github.com/kyverno/kyverno/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -21,8 +21,8 @@ package v1
import ( import (
"time" "time"
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
scheme "github.com/nirmata/kyverno/pkg/client/clientset/versioned/scheme" scheme "github.com/kyverno/kyverno/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -19,7 +19,7 @@ limitations under the License.
package fake package fake
import ( import (
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -19,7 +19,7 @@ limitations under the License.
package fake package fake
import ( import (
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -19,7 +19,7 @@ limitations under the License.
package fake package fake
import ( import (
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -19,7 +19,7 @@ limitations under the License.
package fake package fake
import ( import (
v1 "github.com/nirmata/kyverno/pkg/client/clientset/versioned/typed/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/client/clientset/versioned/typed/kyverno/v1"
rest "k8s.io/client-go/rest" rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing" testing "k8s.io/client-go/testing"
) )

View file

@ -19,7 +19,7 @@ limitations under the License.
package fake package fake
import ( import (
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -19,7 +19,7 @@ limitations under the License.
package fake package fake
import ( import (
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels" labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -21,8 +21,8 @@ package v1
import ( import (
"time" "time"
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
scheme "github.com/nirmata/kyverno/pkg/client/clientset/versioned/scheme" scheme "github.com/kyverno/kyverno/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -19,8 +19,8 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/client/clientset/versioned/scheme" "github.com/kyverno/kyverno/pkg/client/clientset/versioned/scheme"
rest "k8s.io/client-go/rest" rest "k8s.io/client-go/rest"
) )

View file

@ -21,8 +21,8 @@ package v1
import ( import (
"time" "time"
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
scheme "github.com/nirmata/kyverno/pkg/client/clientset/versioned/scheme" scheme "github.com/kyverno/kyverno/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -21,8 +21,8 @@ package v1
import ( import (
"time" "time"
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
scheme "github.com/nirmata/kyverno/pkg/client/clientset/versioned/scheme" scheme "github.com/kyverno/kyverno/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -23,9 +23,9 @@ import (
sync "sync" sync "sync"
time "time" time "time"
versioned "github.com/nirmata/kyverno/pkg/client/clientset/versioned" versioned "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
internalinterfaces "github.com/nirmata/kyverno/pkg/client/informers/externalversions/internalinterfaces" internalinterfaces "github.com/kyverno/kyverno/pkg/client/informers/externalversions/internalinterfaces"
kyverno "github.com/nirmata/kyverno/pkg/client/informers/externalversions/kyverno" kyverno "github.com/kyverno/kyverno/pkg/client/informers/externalversions/kyverno"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -21,7 +21,7 @@ package externalversions
import ( import (
"fmt" "fmt"
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"
cache "k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"
) )

View file

@ -21,7 +21,7 @@ package internalinterfaces
import ( import (
time "time" time "time"
versioned "github.com/nirmata/kyverno/pkg/client/clientset/versioned" versioned "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
cache "k8s.io/client-go/tools/cache" cache "k8s.io/client-go/tools/cache"

View file

@ -19,8 +19,8 @@ limitations under the License.
package kyverno package kyverno
import ( import (
internalinterfaces "github.com/nirmata/kyverno/pkg/client/informers/externalversions/internalinterfaces" internalinterfaces "github.com/kyverno/kyverno/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/nirmata/kyverno/pkg/client/informers/externalversions/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/client/informers/externalversions/kyverno/v1"
) )
// Interface provides access to each of this group's versions. // Interface provides access to each of this group's versions.

View file

@ -21,10 +21,10 @@ package v1
import ( import (
time "time" time "time"
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
versioned "github.com/nirmata/kyverno/pkg/client/clientset/versioned" versioned "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
internalinterfaces "github.com/nirmata/kyverno/pkg/client/informers/externalversions/internalinterfaces" internalinterfaces "github.com/kyverno/kyverno/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/nirmata/kyverno/pkg/client/listers/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -21,10 +21,10 @@ package v1
import ( import (
time "time" time "time"
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
versioned "github.com/nirmata/kyverno/pkg/client/clientset/versioned" versioned "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
internalinterfaces "github.com/nirmata/kyverno/pkg/client/informers/externalversions/internalinterfaces" internalinterfaces "github.com/kyverno/kyverno/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/nirmata/kyverno/pkg/client/listers/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -21,10 +21,10 @@ package v1
import ( import (
time "time" time "time"
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
versioned "github.com/nirmata/kyverno/pkg/client/clientset/versioned" versioned "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
internalinterfaces "github.com/nirmata/kyverno/pkg/client/informers/externalversions/internalinterfaces" internalinterfaces "github.com/kyverno/kyverno/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/nirmata/kyverno/pkg/client/listers/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -19,7 +19,7 @@ limitations under the License.
package v1 package v1
import ( import (
internalinterfaces "github.com/nirmata/kyverno/pkg/client/informers/externalversions/internalinterfaces" internalinterfaces "github.com/kyverno/kyverno/pkg/client/informers/externalversions/internalinterfaces"
) )
// Interface provides access to all the informers in this group version. // Interface provides access to all the informers in this group version.

View file

@ -21,10 +21,10 @@ package v1
import ( import (
time "time" time "time"
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
versioned "github.com/nirmata/kyverno/pkg/client/clientset/versioned" versioned "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
internalinterfaces "github.com/nirmata/kyverno/pkg/client/informers/externalversions/internalinterfaces" internalinterfaces "github.com/kyverno/kyverno/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/nirmata/kyverno/pkg/client/listers/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -21,10 +21,10 @@ package v1
import ( import (
time "time" time "time"
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
versioned "github.com/nirmata/kyverno/pkg/client/clientset/versioned" versioned "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
internalinterfaces "github.com/nirmata/kyverno/pkg/client/informers/externalversions/internalinterfaces" internalinterfaces "github.com/kyverno/kyverno/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/nirmata/kyverno/pkg/client/listers/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View file

@ -19,7 +19,7 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"

View file

@ -19,7 +19,7 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"

View file

@ -21,7 +21,7 @@ package v1
import ( import (
"fmt" "fmt"
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
) )

View file

@ -19,7 +19,7 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"

View file

@ -19,7 +19,7 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"

View file

@ -19,7 +19,7 @@ limitations under the License.
package v1 package v1
import ( import (
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"

View file

@ -6,8 +6,8 @@ import (
"net/url" "net/url"
"time" "time"
"github.com/nirmata/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/config"
tls "github.com/nirmata/kyverno/pkg/tls" tls "github.com/kyverno/kyverno/pkg/tls"
certificates "k8s.io/api/certificates/v1beta1" certificates "k8s.io/api/certificates/v1beta1"
v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@ -59,7 +59,7 @@ func (c *Client) generateTLSPemPair(props tls.TlsCertificateProps, fqdncn bool)
tlsCert, err := c.fetchCertificateFromRequest(certRequest, 10) tlsCert, err := c.fetchCertificateFromRequest(certRequest, 10)
if err != nil { if err != nil {
return nil, fmt.Errorf("Failed to configure a certificate for the Kyverno controller. A CA certificate is required to allow the Kubernetes API Server to communicate with Kyverno. You can either provide a certificate or configure your cluster to allow certificate signing. Please refer to https://github.com/nirmata/kyverno/installation.md.: %v", err) return nil, fmt.Errorf("Failed to configure a certificate for the Kyverno controller. A CA certificate is required to allow the Kubernetes API Server to communicate with Kyverno. You can either provide a certificate or configure your cluster to allow certificate signing. Please refer to https://github.com/kyverno/kyverno/installation.md.: %v", err)
} }
return &tls.TlsPemPair{ return &tls.TlsPemPair{

View file

@ -7,7 +7,7 @@ import (
"github.com/go-logr/logr" "github.com/go-logr/logr"
openapi_v2 "github.com/googleapis/gnostic/OpenAPIv2" openapi_v2 "github.com/googleapis/gnostic/OpenAPIv2"
"github.com/nirmata/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/config"
apps "k8s.io/api/apps/v1" apps "k8s.io/api/apps/v1"
certificates "k8s.io/api/certificates/v1beta1" certificates "k8s.io/api/certificates/v1beta1"
v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"

View file

@ -3,7 +3,7 @@ package client
import ( import (
"testing" "testing"
"github.com/nirmata/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/config"
meta "k8s.io/apimachinery/pkg/apis/meta/v1" meta "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"

View file

@ -5,8 +5,8 @@ import (
"strconv" "strconv"
"github.com/go-logr/logr" "github.com/go-logr/logr"
commonAnchors "github.com/nirmata/kyverno/pkg/engine/anchor/common" commonAnchors "github.com/kyverno/kyverno/pkg/engine/anchor/common"
"github.com/nirmata/kyverno/pkg/engine/common" "github.com/kyverno/kyverno/pkg/engine/common"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -1,7 +1,7 @@
package common package common
import ( import (
"github.com/nirmata/kyverno/pkg/engine/anchor/common" "github.com/kyverno/kyverno/pkg/engine/anchor/common"
) )
// AnchorKey - contains map of anchors // AnchorKey - contains map of anchors

View file

@ -9,7 +9,7 @@ import (
jsonpatch "github.com/evanphx/json-patch" jsonpatch "github.com/evanphx/json-patch"
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -4,7 +4,7 @@ import (
"reflect" "reflect"
"testing" "testing"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
authenticationv1 "k8s.io/api/authentication/v1" authenticationv1 "k8s.io/api/authentication/v1"
) )

View file

@ -5,12 +5,12 @@ import (
"fmt" "fmt"
"regexp" "regexp"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"github.com/nirmata/kyverno/pkg/engine/mutate" "github.com/kyverno/kyverno/pkg/engine/mutate"
"github.com/nirmata/kyverno/pkg/engine/response" "github.com/kyverno/kyverno/pkg/engine/response"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
"github.com/nirmata/kyverno/pkg/engine/variables" "github.com/kyverno/kyverno/pkg/engine/variables"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -5,11 +5,11 @@ import (
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"github.com/nirmata/kyverno/pkg/engine/response" "github.com/kyverno/kyverno/pkg/engine/response"
"github.com/nirmata/kyverno/pkg/engine/variables" "github.com/kyverno/kyverno/pkg/engine/variables"
"github.com/nirmata/kyverno/pkg/resourcecache" "github.com/kyverno/kyverno/pkg/resourcecache"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -2,11 +2,11 @@ package mutate
import ( import (
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"github.com/nirmata/kyverno/pkg/engine/response" "github.com/kyverno/kyverno/pkg/engine/response"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
"github.com/nirmata/kyverno/pkg/engine/variables" "github.com/kyverno/kyverno/pkg/engine/variables"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
) )

View file

@ -15,9 +15,9 @@ import (
jsonpatch "github.com/evanphx/json-patch" jsonpatch "github.com/evanphx/json-patch"
"github.com/go-logr/logr" "github.com/go-logr/logr"
commonAnchors "github.com/nirmata/kyverno/pkg/engine/anchor/common" commonAnchors "github.com/kyverno/kyverno/pkg/engine/anchor/common"
"github.com/nirmata/kyverno/pkg/engine/response" "github.com/kyverno/kyverno/pkg/engine/response"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
) )
// ProcessOverlay processes mutation overlay on the resource // ProcessOverlay processes mutation overlay on the resource

View file

@ -6,8 +6,8 @@ import (
"strconv" "strconv"
"github.com/go-logr/logr" "github.com/go-logr/logr"
commonAnchors "github.com/nirmata/kyverno/pkg/engine/anchor/common" commonAnchors "github.com/kyverno/kyverno/pkg/engine/anchor/common"
"github.com/nirmata/kyverno/pkg/engine/validate" "github.com/kyverno/kyverno/pkg/engine/validate"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -6,7 +6,7 @@ import (
"testing" "testing"
jsonpatch "github.com/evanphx/json-patch" jsonpatch "github.com/evanphx/json-patch"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
"gotest.tools/assert" "gotest.tools/assert"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -9,9 +9,9 @@ import (
jsonpatch "github.com/evanphx/json-patch" jsonpatch "github.com/evanphx/json-patch"
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/response" "github.com/kyverno/kyverno/pkg/engine/response"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
patchjson6902 "sigs.k8s.io/kustomize/api/filters/patchjson6902" patchjson6902 "sigs.k8s.io/kustomize/api/filters/patchjson6902"
filtersutil "sigs.k8s.io/kustomize/kyaml/filtersutil" filtersutil "sigs.k8s.io/kustomize/kyaml/filtersutil"

View file

@ -4,7 +4,7 @@ import (
"testing" "testing"
"github.com/ghodss/yaml" "github.com/ghodss/yaml"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
assert "github.com/stretchr/testify/assert" assert "github.com/stretchr/testify/assert"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"

View file

@ -7,9 +7,9 @@ import (
"time" "time"
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/response" "github.com/kyverno/kyverno/pkg/engine/response"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
) )

View file

@ -11,7 +11,7 @@ import (
evanjsonpatch "github.com/evanphx/json-patch" evanjsonpatch "github.com/evanphx/json-patch"
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
) )

View file

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
v1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
assertnew "github.com/stretchr/testify/assert" assertnew "github.com/stretchr/testify/assert"
"gotest.tools/assert" "gotest.tools/assert"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

View file

@ -7,8 +7,8 @@ import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
types "github.com/nirmata/kyverno/pkg/api/kyverno/v1" types "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
) )
const endpointsDocument string = `{ const endpointsDocument string = `{

View file

@ -9,8 +9,8 @@ import (
"time" "time"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/engine/response" "github.com/kyverno/kyverno/pkg/engine/response"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/kustomize/api/filters/patchstrategicmerge" "sigs.k8s.io/kustomize/api/filters/patchstrategicmerge"
filtersutil "sigs.k8s.io/kustomize/kyaml/filtersutil" filtersutil "sigs.k8s.io/kustomize/kyaml/filtersutil"

View file

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
kyvernov1 "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyvernov1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
assertnew "github.com/stretchr/testify/assert" assertnew "github.com/stretchr/testify/assert"
"gotest.tools/assert" "gotest.tools/assert"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

View file

@ -1,8 +1,8 @@
package mutate package mutate
import ( import (
anchor "github.com/kyverno/kyverno/pkg/engine/anchor/common"
"github.com/minio/minio/pkg/wildcard" "github.com/minio/minio/pkg/wildcard"
anchor "github.com/nirmata/kyverno/pkg/engine/anchor/common"
yaml "sigs.k8s.io/kustomize/kyaml/yaml" yaml "sigs.k8s.io/kustomize/kyaml/yaml"
) )

View file

@ -3,7 +3,7 @@ package mutate
import ( import (
"bytes" "bytes"
commonAnchors "github.com/nirmata/kyverno/pkg/engine/anchor/common" commonAnchors "github.com/kyverno/kyverno/pkg/engine/anchor/common"
) )
type buffer struct { type buffer struct {

View file

@ -4,10 +4,10 @@ import (
"time" "time"
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/mutate" "github.com/kyverno/kyverno/pkg/engine/mutate"
"github.com/nirmata/kyverno/pkg/engine/response" "github.com/kyverno/kyverno/pkg/engine/response"
"github.com/nirmata/kyverno/pkg/engine/variables" "github.com/kyverno/kyverno/pkg/engine/variables"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -5,9 +5,9 @@ import (
"reflect" "reflect"
"testing" "testing"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
"gotest.tools/assert" "gotest.tools/assert"
) )

View file

@ -1,10 +1,10 @@
package engine package engine
import ( import (
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
client "github.com/nirmata/kyverno/pkg/dclient" client "github.com/kyverno/kyverno/pkg/dclient"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"github.com/nirmata/kyverno/pkg/resourcecache" "github.com/kyverno/kyverno/pkg/resourcecache"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
) )

View file

@ -9,19 +9,19 @@ import (
"time" "time"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/utils" "github.com/kyverno/kyverno/pkg/utils"
authenticationv1 "k8s.io/api/authentication/v1" authenticationv1 "k8s.io/api/authentication/v1"
rbacv1 "k8s.io/api/rbac/v1" rbacv1 "k8s.io/api/rbac/v1"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/minio/minio/pkg/wildcard" "github.com/minio/minio/pkg/wildcard"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"github.com/nirmata/kyverno/pkg/resourcecache" "github.com/kyverno/kyverno/pkg/resourcecache"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
) )
@ -176,7 +176,7 @@ func matchSubjects(ruleSubjects []rbacv1.Subject, userInfo authenticationv1.User
userGroups := append(userInfo.Groups, userInfo.Username) userGroups := append(userInfo.Groups, userInfo.Username)
// TODO: see issue https://github.com/nirmata/kyverno/issues/861 // TODO: see issue https://github.com/kyverno/kyverno/issues/861
for _, e := range dynamicConfig { for _, e := range dynamicConfig {
ruleSubjects = append(ruleSubjects, ruleSubjects = append(ruleSubjects,
rbacv1.Subject{Kind: "Group", Name: e}, rbacv1.Subject{Kind: "Group", Name: e},

View file

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
jsonpatch "github.com/evanphx/json-patch" jsonpatch "github.com/evanphx/json-patch"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
commonAnchor "github.com/nirmata/kyverno/pkg/engine/anchor/common" commonAnchor "github.com/kyverno/kyverno/pkg/engine/anchor/common"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )

View file

@ -8,8 +8,8 @@ import (
"strings" "strings"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/kyverno/kyverno/pkg/engine/operator"
"github.com/minio/minio/pkg/wildcard" "github.com/minio/minio/pkg/wildcard"
"github.com/nirmata/kyverno/pkg/engine/operator"
apiresource "k8s.io/apimachinery/pkg/api/resource" apiresource "k8s.io/apimachinery/pkg/api/resource"
) )

View file

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
"github.com/nirmata/kyverno/pkg/engine/operator" "github.com/kyverno/kyverno/pkg/engine/operator"
"gotest.tools/assert" "gotest.tools/assert"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -2,7 +2,8 @@ package validate
import ( import (
"container/list" "container/list"
commonAnchors "github.com/nirmata/kyverno/pkg/engine/anchor/common"
commonAnchors "github.com/kyverno/kyverno/pkg/engine/anchor/common"
) )
// Checks if pattern has anchors // Checks if pattern has anchors

View file

@ -9,10 +9,10 @@ import (
"strings" "strings"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/engine/anchor" "github.com/kyverno/kyverno/pkg/engine/anchor"
commonAnchors "github.com/nirmata/kyverno/pkg/engine/anchor/common" commonAnchors "github.com/kyverno/kyverno/pkg/engine/anchor/common"
"github.com/nirmata/kyverno/pkg/engine/common" "github.com/kyverno/kyverno/pkg/engine/common"
"github.com/nirmata/kyverno/pkg/engine/operator" "github.com/kyverno/kyverno/pkg/engine/operator"
) )
// ValidateResourceWithPattern is a start of element-by-element validation process // ValidateResourceWithPattern is a start of element-by-element validation process

View file

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
"github.com/nirmata/kyverno/pkg/engine/common" "github.com/kyverno/kyverno/pkg/engine/common"
"gotest.tools/assert" "gotest.tools/assert"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -6,13 +6,13 @@ import (
"time" "time"
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"github.com/nirmata/kyverno/pkg/engine/response" "github.com/kyverno/kyverno/pkg/engine/response"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
"github.com/nirmata/kyverno/pkg/engine/validate" "github.com/kyverno/kyverno/pkg/engine/validate"
"github.com/nirmata/kyverno/pkg/engine/variables" "github.com/kyverno/kyverno/pkg/engine/variables"
"github.com/nirmata/kyverno/pkg/resourcecache" "github.com/kyverno/kyverno/pkg/resourcecache"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -6,10 +6,10 @@ import (
"k8s.io/api/admission/v1beta1" "k8s.io/api/admission/v1beta1"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"github.com/nirmata/kyverno/pkg/engine/utils" "github.com/kyverno/kyverno/pkg/engine/utils"
utils2 "github.com/nirmata/kyverno/pkg/utils" utils2 "github.com/kyverno/kyverno/pkg/utils"
"gotest.tools/assert" "gotest.tools/assert"
) )

View file

@ -2,9 +2,9 @@ package variables
import ( import (
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"github.com/nirmata/kyverno/pkg/engine/variables/operator" "github.com/kyverno/kyverno/pkg/engine/variables/operator"
) )
//Evaluate evaluates the condition //Evaluate evaluates the condition

View file

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
) )
//NewEqualHandler returns handler to manage Equal operations //NewEqualHandler returns handler to manage Equal operations

View file

@ -6,7 +6,7 @@ import (
"reflect" "reflect"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
) )
//NewInHandler returns handler to manage In operations //NewInHandler returns handler to manage In operations

View file

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
) )
//NewNotEqualHandler returns handler to manage NotEqual operations //NewNotEqualHandler returns handler to manage NotEqual operations

View file

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
) )
//NewNotInHandler returns handler to manage NotIn operations //NewNotInHandler returns handler to manage NotIn operations

View file

@ -2,8 +2,8 @@ package operator
import ( import (
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
) )
//OperatorHandler provides interface to manage types //OperatorHandler provides interface to manage types

View file

@ -5,11 +5,11 @@ import (
"reflect" "reflect"
"testing" "testing"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
authenticationv1 "k8s.io/api/authentication/v1" authenticationv1 "k8s.io/api/authentication/v1"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
) )
func Test_variablesub1(t *testing.T) { func Test_variablesub1(t *testing.T) {

View file

@ -7,7 +7,7 @@ import (
"strings" "strings"
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
) )
const ( const (

View file

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"testing" "testing"
"github.com/nirmata/kyverno/pkg/engine/context" "github.com/kyverno/kyverno/pkg/engine/context"
"gotest.tools/assert" "gotest.tools/assert"
"sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/log"
) )

View file

@ -3,11 +3,11 @@ package event
import ( import (
"github.com/go-logr/logr" "github.com/go-logr/logr"
"github.com/nirmata/kyverno/pkg/client/clientset/versioned/scheme" "github.com/kyverno/kyverno/pkg/client/clientset/versioned/scheme"
kyvernoinformer "github.com/nirmata/kyverno/pkg/client/informers/externalversions/kyverno/v1" kyvernoinformer "github.com/kyverno/kyverno/pkg/client/informers/externalversions/kyverno/v1"
kyvernolister "github.com/nirmata/kyverno/pkg/client/listers/kyverno/v1" kyvernolister "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1"
"github.com/nirmata/kyverno/pkg/constant" "github.com/kyverno/kyverno/pkg/constant"
client "github.com/nirmata/kyverno/pkg/dclient" client "github.com/kyverno/kyverno/pkg/dclient"
v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime"

View file

@ -2,8 +2,8 @@ package cleanup
import ( import (
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
dclient "github.com/nirmata/kyverno/pkg/dclient" dclient "github.com/kyverno/kyverno/pkg/dclient"
apierrors "k8s.io/apimachinery/pkg/api/errors" apierrors "k8s.io/apimachinery/pkg/api/errors"
) )

View file

@ -4,13 +4,13 @@ import (
"time" "time"
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
kyvernoclient "github.com/nirmata/kyverno/pkg/client/clientset/versioned" kyvernoclient "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
kyvernoinformer "github.com/nirmata/kyverno/pkg/client/informers/externalversions/kyverno/v1" kyvernoinformer "github.com/kyverno/kyverno/pkg/client/informers/externalversions/kyverno/v1"
kyvernolister "github.com/nirmata/kyverno/pkg/client/listers/kyverno/v1" kyvernolister "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1"
"github.com/nirmata/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/config"
"github.com/nirmata/kyverno/pkg/constant" "github.com/kyverno/kyverno/pkg/constant"
dclient "github.com/nirmata/kyverno/pkg/dclient" dclient "github.com/kyverno/kyverno/pkg/dclient"
"k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
utilruntime "k8s.io/apimachinery/pkg/util/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime"

View file

@ -1,8 +1,8 @@
package cleanup package cleanup
import ( import (
kyvernoclient "github.com/nirmata/kyverno/pkg/client/clientset/versioned" kyvernoclient "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
"github.com/nirmata/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/config"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )

View file

@ -1,17 +1,19 @@
package generate package generate
import ( import (
"time"
"github.com/go-logr/logr" "github.com/go-logr/logr"
kyverno "github.com/nirmata/kyverno/pkg/api/kyverno/v1" kyverno "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
kyvernoclient "github.com/nirmata/kyverno/pkg/client/clientset/versioned" kyvernoclient "github.com/kyverno/kyverno/pkg/client/clientset/versioned"
kyvernoinformer "github.com/nirmata/kyverno/pkg/client/informers/externalversions/kyverno/v1" kyvernoinformer "github.com/kyverno/kyverno/pkg/client/informers/externalversions/kyverno/v1"
kyvernolister "github.com/nirmata/kyverno/pkg/client/listers/kyverno/v1" kyvernolister "github.com/kyverno/kyverno/pkg/client/listers/kyverno/v1"
"github.com/nirmata/kyverno/pkg/config" "github.com/kyverno/kyverno/pkg/config"
"github.com/nirmata/kyverno/pkg/constant" "github.com/kyverno/kyverno/pkg/constant"
dclient "github.com/nirmata/kyverno/pkg/dclient" dclient "github.com/kyverno/kyverno/pkg/dclient"
"github.com/nirmata/kyverno/pkg/event" "github.com/kyverno/kyverno/pkg/event"
"github.com/nirmata/kyverno/pkg/policystatus" "github.com/kyverno/kyverno/pkg/policystatus"
"github.com/nirmata/kyverno/pkg/resourcecache" "github.com/kyverno/kyverno/pkg/resourcecache"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
utilruntime "k8s.io/apimachinery/pkg/util/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait" "k8s.io/apimachinery/pkg/util/wait"
@ -19,7 +21,6 @@ import (
"k8s.io/client-go/informers" "k8s.io/client-go/informers"
"k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/cache"
"k8s.io/client-go/util/workqueue" "k8s.io/client-go/util/workqueue"
"time"
) )
const ( const (

Some files were not shown because too many files have changed in this diff Show more