Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ Session.vim
.history
# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode

charts/
/charts/
.tmp/
8 changes: 8 additions & 0 deletions cmd/operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ limitations under the License.
package main

import (
"flag"

"knative.dev/operator/pkg/reconciler/common"
"knative.dev/operator/pkg/reconciler/knativeeventing"
"knative.dev/operator/pkg/reconciler/knativeserving"
kubefilteredfactory "knative.dev/pkg/client/injection/kube/informers/factory/filtered"
Expand All @@ -25,6 +28,11 @@ import (
)

func main() {
flag.StringVar(&common.CredentialProvidersConfigPath,
"credential-providers-config", "",
"Path to the credential providers config file for "+
"Cluster Inventory API multi-cluster support")

ctx := signals.NewContext()
ctx = kubefilteredfactory.WithSelectors(ctx,
knativeserving.Selector,
Expand Down
3,459 changes: 3,459 additions & 0 deletions config/charts/knative-operator/templates/crds/knativeeventings.yaml

Large diffs are not rendered by default.

3,892 changes: 3,892 additions & 0 deletions config/charts/knative-operator/templates/crds/knativeservings.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2026 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

{{- $mc := .Values.knative_operator.knative_operator.multicluster | default dict }}
{{- if $mc.enabled }}
{{- $mountPaths := list }}
{{- range ($mc.plugins | default (list)) }}
{{- $mountPaths = append $mountPaths .mountPath }}
{{- end }}
{{- $cfg := $mc.accessProvidersConfig | default dict }}
{{- range ($cfg.providers | default (list)) }}
{{- $cmd := (.execConfig | default dict).command | default "" }}
{{- if $cmd }}
{{- $cmdDir := dir $cmd }}
{{- if not (has $cmdDir $mountPaths) }}
{{- fail (printf "multicluster validation error: provider %q command %q has parent dir %q which does not match any plugins[].mountPath (have %v); execConfig.command parent directory must equal a plugin mountPath" .name $cmd $cmdDir $mountPaths) }}
{{- end }}
{{- end }}
{{- end }}
apiVersion: v1
kind: ConfigMap
metadata:
name: credential-providers-config
namespace: "{{ .Release.Namespace }}"
labels:
app.kubernetes.io/name: knative-operator
app.kubernetes.io/version: "{{ .Chart.Version }}"
data:
config.json: {{ $mc.accessProvidersConfig | default dict | mustToJson | quote }}
{{- end }}
5,577 changes: 26 additions & 5,551 deletions config/charts/knative-operator/templates/operator.yaml

Large diffs are not rendered by default.

Loading
Loading