Skip to content

Commit

Permalink
Remove PSP dependencies
Browse files Browse the repository at this point in the history
Co-authored-by: Diogo <[email protected]>
  • Loading branch information
rohitsakala and diogoasouza committed Jul 17, 2024
1 parent 2416a84 commit 9989248
Show file tree
Hide file tree
Showing 65 changed files with 93 additions and 2,936 deletions.
1 change: 0 additions & 1 deletion docs/data-sources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ The following attributes are exported:
* `cluster_template_id` - (Computed) Cluster template ID (string)
* `cluster_template_questions` - (Computed) Cluster template questions (list)
* `cluster_template_revision_id` - (Computed) Cluster template revision ID (string)
* `default_pod_security_policy_template_id` - (Optional/Computed) [Default pod security policy template id](https://rancher.com/docs/rancher/v2.x/en/cluster-provisioning/rke-clusters/options/#pod-security-policy-support) (string)
* `enable_network_policy` - (Computed) Enable project network isolation. Default `false` (bool)
* `enable_cluster_istio` - (Computed) Enable built-in cluster istio. Default `false` (bool)
* `fleet_workspace_name` - (Computed) Fleet workspace name (string)
Expand Down
1 change: 0 additions & 1 deletion docs/data-sources/cluster_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ The following attributes are exported:
* `agent_env_vars` - (Computed) Optional Agent Env Vars for Rancher agent (list)
* `rke_config` - (Computed) The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1)
* `cloud_credential_secret_name` - (Computed) Cluster V2 cloud credential secret name (string)
* `default_pod_security_policy_template_name` - (Computed) Cluster V2 default pod security policy template name (string)
* `default_pod_security_admission_configuration_template_name` - (Computed) Cluster V2 default pod security admission configuration template name (string)
* `default_cluster_role_for_project_members` - (Computed) Cluster V2 default cluster role for project members (string)
* `enable_network_policy` - (Computed) Enable k8s network policy at Cluster V2 (bool)
53 changes: 0 additions & 53 deletions docs/data-sources/pod_security_policy_template.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/data-sources/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ resource "kubernetes_namespace" "my_namespace" {

* `id` - (Computed) Cluster-wide unique ID of the Rancher 2 project (string)
* `container_resource_limit` - (Computed) Default containers resource limits on project (List maxitem:1)
* `pod_security_policy_template_id` - (Computed) Default Pod Security Policy ID for the project (string)
* `resource_quota` - (Computed) Resource quota for project. Rancher v2.1.x or higher (list maxitems:1)
* `uuid` - (Computed) UUID of the project as stored by Rancher 2 (string)
* `description` - (Computed) The project's description (string)
Expand Down
2 changes: 0 additions & 2 deletions docs/resources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ The following arguments are supported:
* `cluster_template_id` - (Optional) Cluster template ID. For Rancher v2.3.x and above (string)
* `cluster_template_questions` - (Optional/Computed) Cluster template questions. For Rancher v2.3.x and above (list)
* `cluster_template_revision_id` - (Optional) Cluster template revision ID. For Rancher v2.3.x and above (string)
* `default_pod_security_policy_template_id` - (Optional/Computed) [Default pod security policy template id](https://rancher.com/docs/rancher/v2.x/en/cluster-provisioning/rke-clusters/options/#pod-security-policy-support) (string)
* `default_pod_security_admission_configuration_template_name` - (Optional/Computed) The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above (string)
* `desired_agent_image` - (Optional/Computed) Desired agent image. For Rancher v2.3.x and above (string)
* `desired_auth_image` - (Optional/Computed) Desired auth image. For Rancher v2.3.x and above (string)
Expand Down Expand Up @@ -1261,7 +1260,6 @@ The following attributes are exported:
* `extra_binds` - (Optional) Extra binds for kube API service (list)
* `extra_env` - (Optional) Extra environment for kube API service (list)
* `image` - (Optional/Computed) Docker image for kube API service (string)
* `pod_security_policy` - (Optional) Pod Security Policy option for kube API service. Default `false` (bool)
* `secrets_encryption_config` - (Optional) [Encrypt k8s secret data configration](https://rancher.com/docs/rke/latest/en/config-options/secrets-encryption/). (list maxitem: 1)
* `service_cluster_ip_range` - (Optional/Computed) Service Cluster IP Range option for kube API service (string)
* `service_node_port_range` - (Optional/Computed) Service Node Port Range option for kube API service (string)
Expand Down
1 change: 0 additions & 1 deletion docs/resources/cluster_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ resource "rancher2_cluster_template" "foo" {

* `cluster_auth_endpoint` - (Optional/Computed) Local cluster auth endpoint (list maxitems: 1)
* `default_cluster_role_for_project_members` - (Optional/Computed) Default cluster role for project members (string)
* `default_pod_security_policy_template_id` - (Optional/Computed) Default pod security policy template ID (string)
* `desired_agent_image` - (Optional/Computed) Desired agent image (string)
* `desired_auth_image` - (Optional/Computed) Desired auth image (string)
* `docker_root_dir` - (Optional/Computed) Desired auth image (string)
Expand Down
1 change: 0 additions & 1 deletion docs/resources/cluster_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,6 @@ The following arguments are supported:
* `rke_config` - (Optional/computed, list, max length: 1) The RKE configuration for the cluster.
* `local_auth_endpoint` - (Optional, list, max length: 1) Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters).
* `cloud_credential_secret_name` - (Optional, string) Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level.
* `default_pod_security_policy_template_name` - (Optional, string) Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies).
* `default_pod_security_admission_configuration_template_name` - (Optional, string) The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above.
* `default_cluster_role_for_project_members` - (Optional, string) Default cluster role for project members.
* `enable_network_policy` - (Optional, bool, default: false) Enable k8s network policy on the cluster.
Expand Down
235 changes: 0 additions & 235 deletions docs/resources/pod_security_policy_template.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/resources/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ The following arguments are supported:
* `cluster_id` - (Required) The cluster id where create project (string)
* `container_resource_limit` - (Optional) Default containers resource limits on project (List maxitem:1)
* `description` - (Optional) A project description (string)
* `pod_security_policy_template_id` - (Optional) Default Pod Security Policy ID for the project (string)
* `resource_quota` - (Optional) Resource quota for project. Rancher v2.1.x or higher (list maxitems:1)
* `wait_for_cluster` - (Optional) Wait for cluster becomes active. Default `false` (bool)
* `annotations` - (Optional/Computed) Annotations for Node Pool object (map)
Expand Down
4 changes: 0 additions & 4 deletions rancher2/0_provider_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ provider "rancher2" {
` + testAccRancher2NodeTemplateOpennebulaConfig + `
` + testAccRancher2NodeTemplateOpenstack + `
` + testAccRancher2NodeTemplateVsphere + `
` + testAccCheckRancher2PodSecurityPolicyTemplate + `
` + testAccRancher2ProjectRoleTemplateBinding + `
` + testAccRancher2Project + `
` + testAccRancher2Registry + `
Expand Down Expand Up @@ -170,7 +169,6 @@ provider "rancher2" {
` + testAccRancher2NodeTemplateOpennebulaConfig + `
` + testAccRancher2NodeTemplateOpenstack + `
` + testAccRancher2NodeTemplateVsphere + `
` + testAccCheckRancher2PodSecurityPolicyTemplate + `
` + testAccRancher2ProjectRoleTemplateBinding + `
` + testAccRancher2Project + `
` + testAccRancher2Registry + `
Expand Down Expand Up @@ -216,7 +214,6 @@ provider "rancher2" {
` + testAccRancher2NodeTemplateOpennebulaConfig + `
` + testAccRancher2NodeTemplateOpenstack + `
` + testAccRancher2NodeTemplateVsphere + `
` + testAccCheckRancher2PodSecurityPolicyTemplate + `
` + testAccRancher2ProjectRoleTemplateBinding + `
` + testAccRancher2Project + `
` + testAccRancher2Registry + `
Expand Down Expand Up @@ -266,7 +263,6 @@ provider "rancher2" {
` + testAccRancher2NodeTemplateOpennebulaConfig + `
` + testAccRancher2NodeTemplateOpenstack + `
` + testAccRancher2NodeTemplateVsphere + `
` + testAccCheckRancher2PodSecurityPolicyTemplate + `
` + testAccRancher2ProjectRoleTemplateBinding + `
` + testAccRancher2Project + `
` + testAccRancher2Registry + `
Expand Down
5 changes: 0 additions & 5 deletions rancher2/data_source_rancher2_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,6 @@ func dataSourceRancher2Cluster() *schema.Resource {
Computed: true,
Description: "Cluster template revision ID",
},
"default_pod_security_policy_template_id": {
Type: schema.TypeString,
Computed: true,
Description: "Default pod security policy template ID",
},
"default_pod_security_admission_configuration_template_name": {
Type: schema.TypeString,
Optional: true,
Expand Down
Loading

0 comments on commit 9989248

Please sign in to comment.