Skip to content

liswang89/policy-openshift-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

policy-openshift-plus

This repository is a collecton of policies for OpenShift Plus Workflow#2.

To allow policies to apply automatically, it is using GitOps to deploy policies to cluster.

Example

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: rbac-app
  namespace: openshift-gitops
spec:
  destination:
    namespace: policies
    server: https://kubernetes.default.svc
  project: default
  source:
    directory:
      recurse: true
    path: Usecase-2
    repoURL: https://github.com/mps-interop/policy-openshift-plus.git
    targetRevision: main
  syncPolicy:
    automated:
      prune: true
      selfHeal: true

The policies are applied to all managed clusters that have the local-cluster set to true. If policies need to be applies by another condition, update the PlacementRule.spec.clusterSelector.matchExpressions section in the policies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published