Skip to content

Commit

Permalink
ci(gh): remove doc issue template (#105)
Browse files Browse the repository at this point in the history
* ci(gh): remove doc issue template

* fix: fix oauth2-proxy container run error
  • Loading branch information
whg517 authored Oct 9, 2024
1 parent 7a91aca commit c4d5dec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
blank_issues_enabled: false
contact_links:
- name: 💡 Kubedoop Documentation
url: https://zncdata.dev/docs/
about: All about the kubedoop project
21 changes: 2 additions & 19 deletions internal/common/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

hdfsv1alpha1 "github.com/zncdatadev/hdfs-operator/api/v1alpha1"
authv1alpha1 "github.com/zncdatadev/operator-go/pkg/apis/authentication/v1alpha1"
"github.com/zncdatadev/operator-go/pkg/util"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down Expand Up @@ -205,25 +204,9 @@ func (o *OidcContainerBuilder) ContainerEnv() []corev1.EnvVar {
}

func (o *OidcContainerBuilder) Command() []string {
script := `
set -ex
ARCH=$(uname -m)
ARCH="${ARCH/x86_64/amd64}"
ARCH="${ARCH/aarch64/arm64}"
mkdir /kubedoop/oauth2-proxy
cd /kubedoop/oauth2-proxy
curl -sSfL \
https://github.com/oauth2-proxy/oauth2-proxy/releases/download/v7.6.0/oauth2-proxy-v7.6.0.linux-${ARCH}.tar.gz \
| tar xzf - --strip-components=1
/kubedoop/oauth2-proxy/oauth2-proxy \
--upstream=${UPSTREAM}
`
return []string{
"bash",
"sh",
"-c",
util.IndentTab4Spaces(script),
"/kubedoop/oauth2-proxy/oauth2-proxy --upstream=${UPSTREAM}",
}
}

0 comments on commit c4d5dec

Please sign in to comment.