This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: template/catalog/connector/connectorbinding reconciling
Signed-off-by: thxCode <[email protected]>
- Loading branch information
Showing
92 changed files
with
4,990 additions
and
2,959 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package v1 | ||
|
||
import ( | ||
meta "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"k8s.io/apimachinery/pkg/runtime" | ||
|
||
walruscore "github.com/seal-io/walrus/pkg/apis/walruscore/v1" | ||
) | ||
|
||
// ConnectorConfig is the subresource of the Connector resource for extract configuration. | ||
// | ||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object | ||
// +k8s:apireg-gen:resource:scope="Namespaced",categories=["walrus"] | ||
type ConnectorConfig struct { | ||
meta.TypeMeta `json:",inline"` | ||
meta.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Status ConnectorConfigStatus `json:"status"` | ||
} | ||
|
||
var _ runtime.Object = (*ConnectorConfig)(nil) | ||
|
||
// ConnectorConfigStatus defines the observed state of ConnectorConfig. | ||
type ConnectorConfigStatus struct { | ||
// ApplicableEnvironmentType is the environment type that the connector is applicable to. | ||
ApplicableEnvironmentType walruscore.EnvironmentType `json:"applicableEnvironmentType"` | ||
|
||
// Category is the category of the connector. | ||
Category walruscore.ConnectorCategory `json:"category"` | ||
|
||
// Type is the type of the connector. | ||
Type string `json:"type"` | ||
|
||
// Version is the version of the configuration. | ||
Version string `json:"version"` | ||
|
||
// Data is the configuration of the connector. | ||
Data map[string][]byte `json:"data"` | ||
|
||
// ConditionSummary is the summary of the conditions. | ||
walruscore.ConditionSummary `json:",inline"` | ||
} |
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
Oops, something went wrong.