-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide different OpenShift and non-OpenShift watches yaml files
part of: kiali/kiali#6790
- Loading branch information
1 parent
4543a69
commit 3afe888
Showing
4 changed files
with
45 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# The operator will watch resources of this kind and install OSSMC when one is found. | ||
# This CRD needs to be templated because we do not want it installed on non-OpenShift clusters. | ||
# However, the crds/ directory is not templated by Helm. See the Helm documentation on this here: | ||
# https://helm.sh/docs/chart_best_practices/custom_resource_definitions/#method-1-let-helm-do-it-for-you | ||
# Therefore, this CRD declaration is in templates/. The operator helm chart does not create resources | ||
# of this kind, so this should be OK. Just realize if you uninstall the operator, this CRD will also | ||
# be uninstalled (and thus any existing OSSMC CR will also be purged). | ||
|
||
{{- if .Capabilities.APIVersions.Has "route.openshift.io/v1" }} | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: ossmconsoles.kiali.io | ||
spec: | ||
group: kiali.io | ||
names: | ||
kind: OSSMConsole | ||
listKind: OSSMConsoleList | ||
plural: ossmconsoles | ||
singular: ossmconsole | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
schema: | ||
openAPIV3Schema: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
... | ||
{{- end }} |