-
Notifications
You must be signed in to change notification settings - Fork 940
Add NamespaceManagement reconciliation #1687
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
Open
Rizwana777
wants to merge
20
commits into
argoproj-labs:master
Choose a base branch
from
Rizwana777:issue-6179
base: master
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.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
413d0ff
Fix merge conflicts
Rizwana777 9be7cbc
Fix merge conflicts 2
Rizwana777 ccfa2ac
Fix failing of tests
Rizwana777 4f58a0b
Fix failing of namespace_managemen test
Rizwana777 f062e34
Fix namespaceMangement e2e tests
Rizwana777 fae3e90
Remove namespaceManagement e2e tests
Rizwana777 e1f59e2
Fix merge conflics in bundle and deploy files
Rizwana777 4db91a7
Fix and update logic and tests of namespaceManagement
Rizwana777 5d915ef
Fix test errors by adding k8sClient in ReconcileArgoCD object
Rizwana777 2b906b5
Fix conflicts
Rizwana777 432da3b
Fix merge conflicts
Rizwana777 1d94f82
Fix merge conflicts
Rizwana777 3606ada
Fix failing of namespace_managemen test
Rizwana777 9cca41c
Fix merge conflicts
Rizwana777 00e5669
Remove namespaceManagement e2e tests
Rizwana777 80c19c6
Fix merge conflicts
Rizwana777 186fd2c
Fix merge conflicts
Rizwana777 0d9aa2a
Fix merge conflicts
Rizwana777 87e38e6
Fix merge conflicts 3
Rizwana777 c60e760
Add additional unit tests and fix namespace pattern logic
Rizwana777 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 contains hidden or 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
*.dylib | ||
/bin | ||
testbin/* | ||
*.bak | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,60 @@ | ||
/* | ||
Copyright 2021. | ||
|
||
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. | ||
|
||
// NamespaceManagementSpec defines the desired state of NamespaceManagement | ||
type NamespaceManagementSpec struct { | ||
ManagedBy string `json:"managedBy"` | ||
} | ||
|
||
// NamespaceManagementStatus defines the observed state of NamespaceManagement | ||
type NamespaceManagementStatus struct { | ||
// Conditions is an array of the NamespaceManagement's status conditions | ||
Conditions []metav1.Condition `json:"conditions,omitempty"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
// +kubebuilder:subresource:status | ||
|
||
// NamespaceManagement is the Schema for the namespacemanagements API | ||
type NamespaceManagement struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec NamespaceManagementSpec `json:"spec,omitempty"` | ||
Status NamespaceManagementStatus `json:"status,omitempty"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
// NamespaceManagementList contains a list of NamespaceManagement | ||
type NamespaceManagementList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []NamespaceManagement `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&NamespaceManagement{}, &NamespaceManagementList{}) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...cd-operator-namespacemanagement-editor-role_rbac.authorization.k8s.io_v1_clusterrole.yaml
This file contains hidden or 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,24 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
name: argocd-operator-namespacemanagement-editor-role | ||
rules: | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- namespacemanagements | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- namespacemanagements/status | ||
verbs: | ||
- get |
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.
Uh oh!
There was an error while loading. Please reload this page.