This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from matskiv/upgrade-fuse
Upgrade Fuse to 7.6
- Loading branch information
Showing
4,493 changed files
with
765 additions
and
600,243 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,4 @@ | ||
// Package v1beta1 contains API Schema definitions for the syndesis v1beta1 API group | ||
// +k8s:deepcopy-gen=package,register | ||
// +groupName=syndesis.io | ||
package v1beta1 |
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,37 @@ | ||
/* | ||
* Copyright (C) 2020 Red Hat, Inc. | ||
* | ||
* 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 | ||
* | ||
* http://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. | ||
*/ | ||
|
||
// NOTE: Boilerplate only. Ignore this file. | ||
|
||
// Package v1beta1 contains API Schema definitions for the syndesis v1beta1 API group | ||
// +k8s:deepcopy-gen=package,register | ||
// +groupName=syndesis.io | ||
package v1beta1 | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/runtime/schema" | ||
"sigs.k8s.io/controller-runtime/pkg/runtime/scheme" | ||
) | ||
|
||
var ( | ||
// SchemeGroupVersion is group version used to register these objects | ||
SchemeGroupVersion = schema.GroupVersion{Group: "syndesis.io", Version: "v1beta1"} | ||
|
||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme | ||
SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} | ||
|
||
SchemaGroupVersionKind = schema.GroupVersionKind{Group: "syndesis.io", Version: "v1beta1", Kind: "Syndesis"} | ||
) |
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,289 @@ | ||
/* | ||
* Copyright (C) 2020 Red Hat, Inc. | ||
* | ||
* 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 | ||
* | ||
* http://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. | ||
*/ | ||
|
||
package v1beta1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! | ||
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. | ||
|
||
// SyndesisSpec defines the desired state of Syndesis | ||
// +k8s:openapi-gen=true | ||
type SyndesisSpec struct { | ||
// Schedule backup | ||
// +optional | ||
Backup BackupConfig `json:"backup,omitempty"` | ||
|
||
// The external hostname to access Syndesis | ||
RouteHostname string `json:"routeHostname,omitempty"` | ||
|
||
// Enable SampleDB and demo data for Syndesis | ||
DemoData bool `json:"demoData,omitempty"` | ||
|
||
// Components is used to configure all the core components of Syndesis | ||
Components ComponentsSpec `json:"components,omitempty"` | ||
|
||
// Optional add on features that can be enabled. | ||
Addons AddonsSpec `json:"addons,omitempty"` | ||
|
||
// Something | ||
ForceMigration bool `json:"forceMigration"` | ||
|
||
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster | ||
// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file | ||
// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html | ||
} | ||
|
||
// SyndesisStatus defines the observed state of Syndesis | ||
// +k8s:openapi-gen=true | ||
type SyndesisStatus struct { | ||
Phase SyndesisPhase `json:"phase,omitempty"` | ||
UpgradeAttempts int `json:"upgradeAttempts,omitempty"` | ||
LastUpgradeFailure *metav1.Time `json:"lastUpgradeFailure,omitempty"` | ||
ForceUpgrade bool `json:"forceUpgrade,omitempty"` | ||
Reason SyndesisStatusReason `json:"reason,omitempty"` | ||
Description string `json:"description,omitempty"` | ||
Version string `json:"version,omitempty"` | ||
TargetVersion string `json:"targetVersion,omitempty"` | ||
Backup BackupStatus `json:"backup,omitempty"` | ||
|
||
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster | ||
// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file | ||
// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html | ||
} | ||
|
||
// ============================================================================= | ||
|
||
// +k8s:openapi-gen=true | ||
type ComponentsSpec struct { | ||
Oauth OauthConfiguration `json:"oauth,omitempty"` | ||
Server ServerConfiguration `json:"server,omitempty"` | ||
Meta MetaConfiguration `json:"meta,omitempty"` | ||
Database DatabaseConfiguration `json:"database,omitempty"` | ||
Prometheus PrometheusConfiguration `json:"prometheus,omitempty"` | ||
Grafana GrafanaConfiguration `json:"grafana,omitempty"` | ||
Upgrade UpgradeConfiguration `json:"upgrade,omitempty"` | ||
} | ||
|
||
// +kubebuilder:validation:Enum=hourly;daily;midnight;weekly;monthly;yearly;every 3m | ||
type BackupSchedule string | ||
|
||
type BackupConfig struct { | ||
// Set schedule for backup cronjob | ||
// +optional | ||
Schedule BackupSchedule `json:"schedule,omitempty"` | ||
} | ||
|
||
type BackupStatus struct { | ||
// When is the next backup planned | ||
Next string `json:"next,omitempty"` | ||
// When was the previous backup executed | ||
Previous string `json:"previous,omitempty"` | ||
} | ||
|
||
type OauthConfiguration struct { | ||
// Enable or disable SAR checks all together | ||
DisableSarCheck bool `json:"disableSarCheck,omitempty"` | ||
|
||
// The user needs to have permissions to at least get a list of pods in the given project in order to be granted access to the Syndesis installation | ||
SarNamespace string `json:"sarNamespace,omitempty"` | ||
} | ||
|
||
type DatabaseConfiguration struct { | ||
// Username for PostgreSQL user that will be used for accessing the database | ||
User string `json:"user,omitempty"` | ||
|
||
// Name of the PostgreSQL database accessed | ||
Name string `json:"name,omitempty"` | ||
|
||
// Host and port of the PostgreSQL database to access | ||
URL string `json:"url,omitempty"` | ||
|
||
// If specified, use an external database instead of the installed by syndesis | ||
ExternalDbURL string `json:"externalDbURL,omitempty"` | ||
|
||
// Resource provision requirements of the database | ||
Resources ResourcesWithPersistentVolume `json:"resources,omitempty"` | ||
} | ||
|
||
type PrometheusConfiguration struct { | ||
Rules string `json:"rules,omitempty"` | ||
Resources ResourcesWithVolume `json:"resources,omitempty"` | ||
} | ||
|
||
type GrafanaConfiguration struct { | ||
Resources Resources `json:"resources,omitempty"` | ||
} | ||
|
||
type ServerConfiguration struct { | ||
Resources Resources `json:"resources,omitempty"` | ||
Features ServerFeatures `json:"features,omitempty"` | ||
} | ||
|
||
type MetaConfiguration struct { | ||
Resources ResourcesWithVolume `json:"resources,omitempty"` | ||
} | ||
|
||
type UpgradeConfiguration struct { | ||
Resources VolumeOnlyResources `json:"resources,omitempty"` | ||
} | ||
|
||
type Resources struct { | ||
Memory string `json:"memory,omitempty"` | ||
} | ||
|
||
// +kubebuilder:validation:Enum=ReadWriteOnce;ReadOnlyMany;ReadWriteMany | ||
type VolumeAccessMode string | ||
|
||
// Possible VAM can be found here https://docs.openshift.com/container-platform/4.2/storage/understanding-persistent-storage.html | ||
const ( | ||
ReadWriteOnce VolumeAccessMode = "ReadWriteOnce" | ||
ReadOnlyMany VolumeAccessMode = "ReadOnlyMany" | ||
// ReadWriteMany VolumeAccessMode = "ReadWriteMany" | ||
) | ||
|
||
type ResourcesWithPersistentVolume struct { | ||
Memory string `json:"memory,omitempty"` | ||
VolumeCapacity string `json:"volumeCapacity,omitempty"` | ||
VolumeName string `json:"volumeName,omitempty"` | ||
VolumeAccessMode VolumeAccessMode `json:"volumeAccessMode,omitempty"` | ||
VolumeStorageClass string `json:"volumeStorageClass,omitempty"` | ||
VolumeLabels map[string]string `json:"volumeLabels,omitempty"` | ||
} | ||
|
||
type ServerFeatures struct { | ||
// Maximum number of integrations single user can create | ||
IntegrationLimit int `json:"integrationLimit,omitempty"` | ||
|
||
// Interval for checking the state of the integrations | ||
IntegrationStateCheckInterval int `json:"integrationStateCheckInterval,omitempty"` | ||
|
||
// Whether we deploy integrations | ||
DeployIntegrations bool `json:"deployIntegrations,omitempty"` | ||
|
||
// Set repositories for maven | ||
MavenRepositories map[string]string `json:"mavenRepositories,omitempty"` | ||
|
||
// 3scale management URL | ||
ManagementUrlFor3scale string `json:"managementUrlFor3scale,omitempty"` | ||
} | ||
|
||
type AddonsSpec struct { | ||
Jaeger JaegerConfiguration `json:"jaeger,omitempty"` | ||
Ops AddonSpec `json:"ops,omitempty"` | ||
Todo AddonSpec `json:"todo,omitempty"` | ||
Knative AddonSpec `json:"knative,omitempty"` | ||
DV DvConfiguration `json:"dv,omitempty"` | ||
CamelK AddonSpec `json:"camelk,omitempty"` | ||
PublicApi PublicApiConfiguration `json:"publicApi,omitempty"` | ||
} | ||
|
||
type JaegerConfiguration struct { | ||
Enabled bool `json:"enabled,omitempty"` | ||
ClientOnly bool `json:"clientOnly,omitempty"` | ||
OperatorOnly bool `json:"operatorOnly,omitempty"` | ||
QueryUri string `json:"queryUri,omitempty"` | ||
CollectorUri string `json:"collectorUri,omitempty"` | ||
SamplerType string `json:"samplerType,omitempty"` | ||
SamplerParam string `json:"samplerParam,omitempty"` | ||
} | ||
|
||
type AddonSpec struct { | ||
Enabled bool `json:"enabled,omitempty"` | ||
} | ||
|
||
type DvConfiguration struct { | ||
Enabled bool `json:"enabled,omitempty"` | ||
Resources Resources `json:"resources,omitempty"` | ||
} | ||
|
||
type PublicApiConfiguration struct { | ||
Enabled bool `json:"enabled,omitempty"` | ||
// Set RouteHostname to the hostname of the exposed syndesis Public API. | ||
RouteHostname string `json:"routeHostname,omitempty"` | ||
// if set to true, then any authenticated user can access the API. otherwise the user | ||
// needs access to get pods against the SarNamespace | ||
DisableSarCheck bool `json:"disable-sar-check,omitempty"` | ||
} | ||
|
||
type SyndesisPhase string | ||
|
||
type ResourcesWithVolume struct { | ||
Memory string `json:"memory,omitempty"` | ||
VolumeCapacity string `json:"volumeCapacity,omitempty"` | ||
} | ||
|
||
type VolumeOnlyResources struct { | ||
VolumeCapacity string `json:"volumeCapacity,omitempty"` | ||
} | ||
|
||
const ( | ||
SyndesisPhaseMissing SyndesisPhase = "" | ||
SyndesisPhaseInstalling SyndesisPhase = "Installing" | ||
SyndesisPhaseStarting SyndesisPhase = "Starting" | ||
SyndesisPhaseStartupFailed SyndesisPhase = "StartupFailed" | ||
SyndesisPhaseInstalled SyndesisPhase = "Installed" | ||
SyndesisPhaseNotInstalled SyndesisPhase = "NotInstalled" | ||
SyndesisPhaseUpgrading SyndesisPhase = "Upgrading" | ||
SyndesisPhasePostUpgradeRun SyndesisPhase = "PostUpgradeRun" | ||
SyndesisPhasePostUpgradeRunSucceed SyndesisPhase = "PostUpgradeRunSucceed" | ||
SyndesisPhaseUpgradeFailureBackoff SyndesisPhase = "UpgradeFailureBackoff" | ||
SyndesisPhaseUpgradeFailed SyndesisPhase = "UpgradeFailed" | ||
) | ||
|
||
type SyndesisStatusReason string | ||
|
||
const ( | ||
SyndesisStatusReasonMissing SyndesisStatusReason = "" | ||
SyndesisStatusReasonDuplicate SyndesisStatusReason = "Duplicate" | ||
SyndesisStatusReasonDeploymentNotReady SyndesisStatusReason = "DeploymentNotReady" | ||
SyndesisStatusReasonUpgradeFailed SyndesisStatusReason = "UpgradeFailed" | ||
SyndesisStatusReasonTooManyUpgradeAttempts SyndesisStatusReason = "TooManyUpgradeAttempts" | ||
SyndesisStatusReasonPostUpgradeRun SyndesisStatusReason = "PostUpgradeRun" | ||
SyndesisStatusReasonMigrated SyndesisStatusReason = "Migrated" | ||
) | ||
|
||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
|
||
// Syndesis is the Schema for the syndeses API | ||
// +k8s:openapi-gen=true | ||
// +kubebuilder:subresource:status | ||
// +kubebuilder:object:root=true | ||
// +kubebuilder:storageversion | ||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
type Syndesis struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec SyndesisSpec `json:"spec,omitempty"` | ||
Status SyndesisStatus `json:"status,omitempty"` | ||
} | ||
|
||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
// +kubebuilder:object:root=true | ||
// SyndesisList contains a list of Syndesis | ||
type SyndesisList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []Syndesis `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&Syndesis{}, &SyndesisList{}) | ||
} |
Oops, something went wrong.