-
Notifications
You must be signed in to change notification settings - Fork 19
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: application set handler #241
Merged
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
fadc045
application set handler
Greyeye 6bf6b35
Merge branch 'main' into appset-support
Greyeye 18cbf67
ci fix
Greyeye 22361ab
role based access control chart
Greyeye 6fd63b2
suggestion fix
Greyeye c532174
fix echo-server appset
Greyeye 8ccec80
unit test for appset and vcstoargomap
Greyeye 9304b0b
changes for the reviews
Greyeye aed9764
read me for generator code
Greyeye e0b78d1
updated doc
Greyeye c6c46ca
unit test for GenerateListOfAffectedApps
Greyeye 8e7aac2
changes
Greyeye cf73588
Merge branch 'main' into appset-support
Greyeye 6813cdd
helm chart unit test update
Greyeye 30cbdb6
helm chart variable name change
Greyeye 70fac5a
change error output
Greyeye 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 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,6 @@ | ||
# kubechecks-rbac | ||
|
||
This chart deploys the Cluster Role and Cluster Role binding for the kubechecks running outside of existing cluster. | ||
|
||
It is not required if you're operating all within the same cluster. | ||
|
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 |
---|---|---|
@@ -1,21 +1,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ .Values.roleBindingName | default "kubechecks-remote-role-binding" }} | ||
name: {{ .Values.ClusterRoleBindingName | default "kubechecks-remote-role-binding" }} | ||
namespace: {{ .Values.namespace | default "argocd" }} | ||
subjects: | ||
{{- if .Values.eks.iamRoleArn }} | ||
- kind: User | ||
name: {{ .Values.eks.iamRoleArn }} | ||
- kind: Group | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- else if .Values.selfManaged.serviceAccountName }} | ||
- kind: ServiceAccount | ||
name: {{ .Values.selfManaged.serviceAccountName }} | ||
namespace: {{ .Values.namespace | default "argocd" }} | ||
{{- else }} | ||
{{ fail "Either eks.iamRoleArn, or selfManaged.serviceAccountName must be provided" }} | ||
{{- end }} | ||
name: {{ .Values.ClusterRoleBindingGroup | default "kubechecks-remote-group" }} | ||
roleRef: | ||
kind: Role | ||
name: {{ .Values.roleName | default "kubechecks-remote-role" }} | ||
kind: ClusterRole | ||
name: {{ .Values.ClusterRoleName | default "kubechecks-remote-role" }} | ||
apiGroup: rbac.authorization.k8s.io |
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 |
---|---|---|
@@ -1,13 +1,6 @@ | ||
roleName: "kubechecks-remote-role" | ||
roleBindingName: "kubechecks-remote-role-binding" | ||
namespace: "argocd" | ||
|
||
# for AWS EKS clusters | ||
eks: | ||
# The ARN of the IAM role to bind to the Role | ||
iamRoleArn: "" | ||
ClusterRoleName: "kubechecks-remote-role" | ||
ClusterRoleBindingName: "kubechecks-remote-role-binding" | ||
ClusterRoleBindingGroup: "kubechecks-remote-group" | ||
|
||
# for self-managed clusters | ||
selfManaged: | ||
# The name of the ServiceAccount to bind to the Role | ||
serviceAccountName: "" | ||
# namespace to create the ClusterRole and RoleBinding, this has to match the argocd is operating. | ||
namespace: "argocd" |
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
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 |
---|---|---|
|
@@ -132,8 +132,8 @@ func (argo *ArgoClient) GetApplicationSets(ctx context.Context) (*v1alpha1.Appli | |
|
||
resp, err := appClient.List(ctx, new(applicationset.ApplicationSetListQuery)) | ||
if err != nil { | ||
telemetry.SetError(span, err, "Argo List All Applications error") | ||
return nil, errors.Wrap(err, "failed to applications") | ||
telemetry.SetError(span, err, "Argo List All Application Sets error") | ||
return nil, errors.Wrap(err, "failed to application sets") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably should be "failed to list application sets" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed it to failed to list application sets. |
||
} | ||
return resp, nil | ||
} |
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
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.
these should start with a lowercase letter, for consistency
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.
good point, changed to lowercase