Skip to content

Commit

Permalink
Merge pull request #1124 from jzielny/main
Browse files Browse the repository at this point in the history
Updated secret permissions to 416
  • Loading branch information
openshift-merge-robot authored Mar 9, 2022
2 parents 1e81ea1 + 85bd636 commit 5138baf
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func buildCVOVolumeServerCert(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.ClusterVersionOperatorServerCertSecret("").Name
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func buildKASVolumeLocalhostKubeconfig(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.KASLocalhostKubeconfigSecret("").Name
}

Expand Down Expand Up @@ -412,7 +412,7 @@ func buildKASVolumeRootCA(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.RootCASecret("").Name
}

Expand All @@ -439,7 +439,7 @@ func buildKASVolumeServerCert(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.KASServerCertSecret("").Name
}

Expand All @@ -465,7 +465,7 @@ func buildKASVolumeKonnectivityClientCert(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.KonnectivityClientSecret("").Name
}

Expand All @@ -478,7 +478,7 @@ func buildKASVolumeAggregatorCert(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.KASAggregatorCertSecret("").Name
}

Expand Down Expand Up @@ -518,7 +518,7 @@ func buildKASVolumeServiceAccountKey(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.ServiceAccountSigningKeySecret("").Name
}

Expand All @@ -532,7 +532,7 @@ func buildKASVolumeKubeletClientCert(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.KASKubeletClientCertSecret("").Name
}

Expand All @@ -545,7 +545,7 @@ func buildKASVolumeEtcdClientCert(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.EtcdClientSecret("").Name
}

Expand All @@ -571,7 +571,7 @@ func buildKASVolumeAuthTokenWebhookConfig(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.KASAuthenticationTokenWebhookConfigSecret("").Name
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func buildKCMVolumeServerCert(v *corev1.Volume) {
if v.Secret == nil {
v.Secret = &corev1.SecretVolumeSource{}
}
v.Secret.DefaultMode = pointer.Int32Ptr(420)
v.Secret.DefaultMode = pointer.Int32Ptr(416)
v.Secret.SecretName = manifests.KCMServerCertSecret("").Name
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@ func reconcileCAPICluster(cluster *capiv1.Cluster, hcluster *hyperv1.HostedClust
}

func reconcileCAPIManagerDeployment(deployment *appsv1.Deployment, hc *hyperv1.HostedCluster, sa *corev1.ServiceAccount, capiManagerImage string, setDefaultSecurityContext bool) error {
defaultMode := int32(420)
defaultMode := int32(416)
capiManagerLabels := map[string]string{
"name": "cluster-api",
"app": "cluster-api",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (p AWS) CAPIProviderDeploymentSpec(hcluster *hyperv1.HostedCluster, hcp *hy
if override, ok := hcluster.Annotations[hyperv1.ClusterAPIProviderAWSImage]; ok {
providerImage = override
}
defaultMode := int32(420)
defaultMode := int32(416)
deploymentSpec := &appsv1.DeploymentSpec{
Template: corev1.PodTemplateSpec{
Spec: corev1.PodSpec{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (p Kubevirt) CAPIProviderDeploymentSpec(hcluster *hyperv1.HostedCluster, _
if override, ok := hcluster.Annotations[hyperv1.ClusterAPIKubeVirtProviderImage]; ok {
providerImage = override
}
defaultMode := int32(420)
defaultMode := int32(416)
return &appsv1.DeploymentSpec{
Replicas: k8sutilspointer.Int32Ptr(1),
Template: corev1.PodTemplateSpec{
Expand Down

0 comments on commit 5138baf

Please sign in to comment.