-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: account info and larger refactoring for cluster level CRDs and KCP #202
Open
nexus49
wants to merge
39
commits into
main
Choose a base branch
from
feat/account-info
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+5,302
−2,822
Open
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
bd49d82
fix: update domain references from openmfp.io to openmfp.org
nexus49 3ee8f16
refactor: Removing namespace subroutine and prepare workspace subroutine
nexus49 2bc8566
feat: further iterating
nexus49 abfc839
feat: add start-kcp task to Taskfile
nexus49 c6d1de4
feat: further test dev
nexus49 2ada6d7
feat: iterating
nexus49 4ad7b5a
feat: further test dev
nexus49 cdcd05c
feat: further test dev
nexus49 c926428
feat: further test dev
nexus49 cafdd19
feat: rename AccountLocation to AccountInfo and update related schemas
nexus49 f1af48a
feat: further iterating, adding accountinfo subroutine
nexus49 7d491e5
feat: add AccountInfo subroutine and related configurations
nexus49 7c8d5b5
fix: update domain references from openmfp.io to openmfp.org
nexus49 f8319f0
refactor: Removing namespace subroutine and prepare workspace subroutine
nexus49 36f9870
feat: further iterating
nexus49 de05b60
feat: add start-kcp task to Taskfile
nexus49 1b5c6d5
feat: further test dev
nexus49 f5d27c9
feat: iterating
nexus49 5f4ba36
feat: further test dev
nexus49 d3ae20d
feat: further test dev
nexus49 fecfcee
feat: further test dev
nexus49 0901f4b
feat: rename AccountLocation to AccountInfo and update related schemas
nexus49 94fde77
feat: further iterating, adding accountinfo subroutine
nexus49 42d2831
feat: add AccountInfo subroutine and related configurations
nexus49 4eed860
feat: update dependencies in go.mod and go.sum
nexus49 51b00f2
Merge remote-tracking branch 'origin/feat/account-info' into feat/acc…
nexus49 355ea82
feat: update dependencies in go.mod and go.sum
nexus49 59f3e4a
feat: remove setup-envtest task and update dependencies in Taskfile.yml
nexus49 8d639aa
feat: reduce default timeout values in account controller and server
nexus49 ebe4f5e
Update internal/controller/account_controller_test.go
nexus49 933eaee
Update internal/controller/account_controller_test.go
nexus49 290f38d
feat: update AccountInfo subroutine to use CAData instead of CAFile
nexus49 24285af
feat: further iterating, adding accountinfo subroutine
nexus49 d9b22e8
Merge remote-tracking branch 'origin/feat/account-info' into feat/acc…
nexus49 afd3e84
refactor: pr feedback
nexus49 c5a62d1
refactor: pr feedback
nexus49 c04a71d
refactor: pr feedback
nexus49 cb71cf0
refactor: pr feedback
nexus49 c26848b
ci: adjusting pipeline trigger for tagging
nexus49 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
name: ci | ||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
pipe: | ||
|
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 was deleted.
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
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,79 @@ | ||
/* | ||
Copyright 2024. | ||
|
||
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 v1alpha1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// AccountInfoSpec defines the desired state of Account | ||
type AccountInfoSpec struct { | ||
FGA FGAInfo `json:"fga"` | ||
Account AccountLocation `json:"account"` | ||
ParentAccount *AccountLocation `json:"parentAccount,omitempty"` | ||
Organization AccountLocation `json:"organization"` | ||
ClusterInfo ClusterInfo `json:"clusterInfo"` | ||
} | ||
|
||
type ClusterInfo struct { | ||
CA string `json:"ca"` | ||
} | ||
|
||
type AccountLocation struct { | ||
Name string `json:"name"` | ||
ClusterId string `json:"clusterId"` | ||
Path string `json:"path"` | ||
URL string `json:"url"` | ||
Type AccountType `json:"type"` | ||
} | ||
|
||
type FGAInfo struct { | ||
Store StoreInfo `json:"store"` | ||
} | ||
|
||
type StoreInfo struct { | ||
Id string `json:"id"` | ||
} | ||
|
||
// AccountInfoStatus defines the observed state of AccountInfo | ||
type AccountInfoStatus struct { | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
// +kubebuilder:resource:path=accountinfos | ||
// +kubebuilder:subresource:status | ||
// +kubebuilder:resource:scope=Cluster | ||
// AccountInfo is the Schema for the accountinfo API | ||
type AccountInfo struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec AccountInfoSpec `json:"spec,omitempty"` | ||
Status AccountInfoStatus `json:"status,omitempty"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
// AccountInfoList contains a list of AccountInfos | ||
type AccountInfoList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []AccountInfo `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&AccountInfo{}, &AccountInfoList{}) | ||
} |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some descriptive comments would be helpful to be able to distinguish as a consumer of that resource between the specifics of these fields - also maybe including some information on what is published depending on what account type we have at hand