-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: greg pereira <grpereir@redhat.com>
- Loading branch information
1 parent
fdb130f
commit e40cc03
Showing
22 changed files
with
170 additions
and
262 deletions.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
admin.enabled=true | ||
kustomize.buildOptions=--enable-alpha-plugins | ||
users.anonymous.enabled=false |
7 changes: 7 additions & 0 deletions
7
argocd/overlays/configs/argo_cm_rbac/argocd_admins_group.yaml
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,7 @@ | ||
apiVersion: user.openshift.io/v1 | ||
kind: Group | ||
metadata: | ||
name: argocd-admins | ||
users: | ||
- IAM#avishnoi@redhat.com | ||
- IAM#grpereir@redhat.com |
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,9 @@ | ||
# Define a standard user template that has read access to argocd resources | ||
p, role:standard-user, certificates, get, *, allow | ||
p, role:standard-user, clusters, get, *, allow | ||
p, role:standard-user, repositories, get, *, allow | ||
p, role:standard-user, projects, get, *, allow | ||
p, role:standard-user, accounts, get, *, allow | ||
|
||
# Give Openshift group (argocd-admins) the argocd admin role with unrestricted argocd access | ||
g, argocd-admins, role:admin |
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 @@ | ||
role:readonly |
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,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- argo_cm/envs | ||
- argo_cm_rbac/policy.csv | ||
- argo_cm_rbac/policy.default | ||
- argo_cm_rbac/argocd_admins_group.yaml |
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,89 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: ilab | ||
namespace: openshift-gitops | ||
spec: | ||
destinations: | ||
- namespace: '*' | ||
server: '*' | ||
namespaceResourceWhitelist: | ||
- group: argoproj.io | ||
kind: Application | ||
- group: logging.openshift.io | ||
kind: ClusterLogging | ||
- group: external-secrets.io | ||
kind: ExternalSecret | ||
- group: '' | ||
kind: Binding | ||
- group: '' | ||
kind: ConfigMap | ||
- group: '' | ||
kind: Endpoints | ||
- group: '' | ||
kind: Event | ||
- group: '' | ||
kind: LimitRange | ||
- group: '' | ||
kind: PersistentVolumeClaim | ||
- group: '' | ||
kind: Pod | ||
- group: '' | ||
kind: ReplicationController | ||
- group: '' | ||
kind: ResourceQuota | ||
- group: '' | ||
kind: Secret | ||
- group: '' | ||
kind: ServiceAccount | ||
- group: '' | ||
kind: Service | ||
- group: apps | ||
kind: ControllerRevision | ||
- group: apps | ||
kind: DaemonSet | ||
- group: apps | ||
kind: Deployment | ||
- group: apps | ||
kind: ReplicaSet | ||
- group: apps | ||
kind: StatefulSet | ||
- group: apps.openshift.io | ||
kind: DeploymentConfig | ||
- group: argoproj.io | ||
kind: CronWorkflow | ||
- group: argoproj.io | ||
kind: Workflow | ||
- group: argoproj.io | ||
kind: WorkflowTemplate | ||
- group: authorization.openshift.io | ||
kind: RoleBindingRestriction | ||
- group: authorization.openshift.io | ||
kind: RoleBinding | ||
- group: authorization.openshift.io | ||
kind: Role | ||
- group: autoscaling | ||
kind: HorizontalPodAutoscaler | ||
- group: batch | ||
kind: CronJob | ||
- group: batch | ||
kind: Job | ||
- group: build.openshift.io | ||
kind: BuildConfig | ||
- group: build.openshift.io | ||
kind: Build | ||
roles: | ||
- description: Read/Write access to this project only | ||
groups: | ||
- argocd-admins | ||
name: project-admin | ||
policies: | ||
- 'p, proj:ilab:project-admin, applications, get, ilab/*, allow' | ||
- 'p, proj:ilab:project-admin, applications, create, ilab/*, allow' | ||
- 'p, proj:ilab:project-admin, applications, update, ilab/*, allow' | ||
- 'p, proj:ilab:project-admin, applications, delete, ilab/*, allow' | ||
- 'p, proj:ilab:project-admin, applications, sync, ilab/*, allow' | ||
- 'p, proj:ilab:project-admin, applications, override, ilab/*, allow' | ||
- 'p, proj:ilab:project-admin, applications, action/*, ilab/*, allow' | ||
sourceRepos: | ||
- '*' |
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 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ilab.yaml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: instructlab | ||
name: instructlab-test |
Oops, something went wrong.