Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into restrict-rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Donovan committed Feb 15, 2020
2 parents 35f6a9d + 89b1413 commit b3b5524
Show file tree
Hide file tree
Showing 233 changed files with 16,635 additions and 363 deletions.
76 changes: 62 additions & 14 deletions Gopkg.lock

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

3 changes: 1 addition & 2 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"flag"
"log"

"k8s.io/client-go/tools/clientcmd"
"knative.dev/eventing-operator/pkg/reconciler/knativeeventing"
"knative.dev/pkg/injection/sharedmain"
"knative.dev/pkg/signals"
Expand All @@ -28,7 +27,7 @@ import (
func main() {
flag.Parse()

cfg, err := clientcmd.BuildConfigFromFlags(*knativeeventing.MasterURL, *knativeeventing.Kubeconfig)
cfg, err := sharedmain.GetConfig(*knativeeventing.MasterURL, *knativeeventing.Kubeconfig)
if err != nil {
log.Fatal("Error building kubeconfig", err)
}
Expand Down
36 changes: 36 additions & 0 deletions config/300-eventing-v1alpha1-knativeeventing-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ kind: CustomResourceDefinition
metadata:
name: knativeeventings.operator.knative.dev
spec:
additionalPrinterColumns:
- JSONPath: .status.version
name: Version
type: string
- JSONPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
- JSONPath: .status.conditions[?(@.type=="Ready")].reason
name: Reason
type: string
group: operator.knative.dev
names:
kind: KnativeEventing
Expand All @@ -28,6 +38,32 @@ spec:
metadata:
type: object
spec:
description: Spec defines the desired state of KnativeEventing
properties:
registry:
description: A means to override the corresponding deployment images in the upstream.
This affects both apps/v1.Deployment and caching.internal.knative.dev/v1alpha1.Image.
type: object
properties:
default:
description: The default image reference template to use for all knative images.
Takes the form of example-registry.io/custom/path/${NAME}:custom-tag
type: string
override:
description: A map of a container name or image name to the full image location of the individual knative image.
type: object
additionalProperties:
type: string
imagePullSecrets:
description: A list of secrets to be used when pulling the knative images. The secret must be created in the
same namespace as the knative-eventing deployments, and not the namespace of this resource.
type: array
items:
type: object
properties:
name:
description: The name of the secret.
type: string
type: object
status:
properties:
Expand Down
10 changes: 10 additions & 0 deletions pkg/apis/eventing/v1alpha1/knativeeventing_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ limitations under the License.
package v1alpha1

import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"knative.dev/pkg/apis"
duckv1beta1 "knative.dev/pkg/apis/duck/v1beta1"
Expand Down Expand Up @@ -49,11 +50,20 @@ type Registry struct {
// A map of a container name or image name to the full image location of the individual knative image.
// +optional
Override map[string]string `json:"override,omitempty"`

// A list of secrets to be used when pulling the knative images. The secret must be created in the
// same namespace as the knative-eventing deployments, and not the namespace of this resource.
// +optional
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
}

// KnativeEventingSpec defines the desired state of KnativeEventing
// +k8s:openapi-gen=true
type KnativeEventingSpec struct {
// A means to override the corresponding deployment images in the upstream.
// If no registry is provided, the knative release images will be used.
// +optional
Registry Registry `json:"registry,omitempty"`
}

// KnativeEventingStatus defines the observed state of KnativeEventing
Expand Down
9 changes: 8 additions & 1 deletion pkg/apis/eventing/v1alpha1/zz_generated.deepcopy.go

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

Loading

0 comments on commit b3b5524

Please sign in to comment.