diff --git a/config/samples/vsphere-validator-compute.yaml b/config/samples/vsphere-validator-compute-resources.yaml similarity index 97% rename from config/samples/vsphere-validator-compute.yaml rename to config/samples/vsphere-validator-compute-resources.yaml index 5ede4f2..f77236e 100644 --- a/config/samples/vsphere-validator-compute.yaml +++ b/config/samples/vsphere-validator-compute-resources.yaml @@ -10,6 +10,8 @@ metadata: name: vspherevalidator-compute namespace: validator spec: + auth: + secretName: vsphere-creds datacenter: "Datacenter" computeResourceRules: - name: "rp-cluster2-palette-advanced-projects check resources" @@ -26,6 +28,4 @@ spec: numberOfNodes: 2 cpu: "2GHz" memory: 8Gi - diskSpace: 100Gi - auth: - secretName: vsphere-creds + diskSpace: 100Gi \ No newline at end of file diff --git a/config/samples/vsphere-validator-explicit-auth.yaml b/config/samples/vsphere-validator-explicit-auth.yaml index 37362f0..ebfbeda 100644 --- a/config/samples/vsphere-validator-explicit-auth.yaml +++ b/config/samples/vsphere-validator-explicit-auth.yaml @@ -10,13 +10,13 @@ metadata: name: vspherevalidator-explicit-auth namespace: validator spec: - datacenter: "Datacenter" auth: - cloudAccount: + account: insecure: true username: "user@vsphere.local" password: "password" - vcenterServer: "vcenter.example.com" + host: "vcenter.example.com" + datacenter: "Datacenter" tagValidationRules: - name: "Folder tag validation" clusterName: "Cluster2" diff --git a/config/samples/vsphere-validator-entity-privilege.yaml b/config/samples/vsphere-validator-privileges.yaml similarity index 79% rename from config/samples/vsphere-validator-entity-privilege.yaml rename to config/samples/vsphere-validator-privileges.yaml index 96fd7e1..dad8730 100644 --- a/config/samples/vsphere-validator-entity-privilege.yaml +++ b/config/samples/vsphere-validator-privileges.yaml @@ -10,14 +10,18 @@ metadata: name: vspherevalidator-entity-privilege namespace: validator spec: - datacenter: "Datacenter" auth: secretName: vsphere-creds - entityPrivilegeValidationRules: + datacenter: "Datacenter" + privilegeValidationRules: - name: "Deploy VM to vapp test-vapp" - username: prakash@vsphere.local entityName: "sp-prakash" - entityType: "folder" + entityType: "Folder" privileges: - "VirtualMachine.Config.AddExistingDisk" - "VirtualMachine.Config.AddNewDisk" + propagation: + enabled: true + groupPrincipals: + - VSPHERE.LOCAL\my-group + propagated: true \ No newline at end of file diff --git a/config/samples/vsphere-validator-role-privilege.yaml b/config/samples/vsphere-validator-role-privilege.yaml deleted file mode 100644 index c3a10cd..0000000 --- a/config/samples/vsphere-validator-role-privilege.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: validation.spectrocloud.labs/v1alpha1 -kind: VsphereValidator -metadata: - labels: - app.kubernetes.io/name: vspherevalidator - app.kubernetes.io/instance: vspherevalidator-sample - app.kubernetes.io/part-of: validator-plugin-vsphere - app.kubernetes.io/managed-by: kustomize - app.kubernetes.io/created-by: validator-plugin-vsphere - name: vspherevalidator-role-privilege - namespace: validator -spec: - datacenter: "Datacenter" - auth: - secretName: vsphere-creds - rolePrivilegeValidationRules: - - username: tmpadmin@vsphere.local - privileges: - - Cns.Searchable - - Datastore.Browse - - InventoryService.Tagging.CreateTag - - InventoryService.Tagging.EditTag - - Network.Assign - - Sessions.ValidateSession - - StorageProfile.View - - StorageViews.View diff --git a/config/samples/vsphere-validator-tag.yaml b/config/samples/vsphere-validator-tag.yaml index 621bace..3835612 100644 --- a/config/samples/vsphere-validator-tag.yaml +++ b/config/samples/vsphere-validator-tag.yaml @@ -10,12 +10,12 @@ metadata: name: vspherevalidator namespace: validator spec: - datacenter: "Datacenter" auth: secretName: vsphere-creds + datacenter: "Datacenter" tagValidationRules: - name: "Folder tag validation" clusterName: "Cluster2" - entityType: "folder" + entityType: "Folder" entityName: "sp-prakash" - tag: "owner" + tag: "owner" \ No newline at end of file