Skip to content

Commit

Permalink
Fix: no new line at eof (#109)
Browse files Browse the repository at this point in the history
* fix no new line at eof

Signed-off-by: xuezhaojun <[email protected]>

* Add linelint in github workflow

Signed-off-by: xuezhaojun <[email protected]>

* fix issues found by lint

Signed-off-by: xuezhaojun <[email protected]>
  • Loading branch information
xuezhaojun authored May 9, 2022
1 parent 54d83f3 commit de3722e
Show file tree
Hide file tree
Showing 20 changed files with 32 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-postsubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ jobs:
quay.io/open-cluster-management/cluster-proxy:latest-arm64 --arch arm64
- name: push
run: |
docker manifest push quay.io/open-cluster-management/cluster-proxy:latest
docker manifest push quay.io/open-cluster-management/cluster-proxy:latest
11 changes: 9 additions & 2 deletions .github/workflows/go-presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ jobs:
go-version: ${{ env.GO_VERSION }}
- name: build
run: make build

lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Linelint
uses: fernandrone/[email protected]
unit:
name: unit
runs-on: ubuntu-latest
Expand Down Expand Up @@ -68,7 +75,7 @@ jobs:
go-version: ${{ env.GO_VERSION }}
- name: integration
run: make test-integration

e2e:
name: e2e
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ jobs:
} catch(error) {
console.error(error);
core.setFailed(error);
}
}
6 changes: 6 additions & 0 deletions .linelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rules:
end-of-file:
enable: true
ignore:
- FQA.md
- hack/boilerplate.go.txt
2 changes: 1 addition & 1 deletion charts/cluster-proxy/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ rules:
resources:
- leases
verbs:
- "*"
- "*"
2 changes: 1 addition & 1 deletion charts/cluster-proxy/templates/manager-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ spec:
- /manager
args:
- --leader-elect=true
- --signer-secret-namespace={{ .Release.Namespace }}
- --signer-secret-namespace={{ .Release.Namespace }}
2 changes: 1 addition & 1 deletion charts/cluster-proxy/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ rules:
- get
- create
- update
- patch
- patch
2 changes: 1 addition & 1 deletion charts/cluster-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ proxyAgentImage: quay.io/open-cluster-management/cluster-proxy:v0.2.0
proxyServer:
entrypointLoadBalancer: false
entrypointAddress: ""
port: 8091
port: 8091
2 changes: 1 addition & 1 deletion hack/crd/addon/clustermanagementaddon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ status:
kind: ""
plural: ""
conditions: []
storedVersions: []
storedVersions: []
2 changes: 1 addition & 1 deletion hack/crd/addon/managedclusteraddon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,4 @@ status:
kind: ""
plural: ""
conditions: []
storedVersions: []
storedVersions: []
2 changes: 1 addition & 1 deletion hack/samples/managedcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: ManagedCluster
metadata:
name: local
spec:
hubAcceptsClient: false
hubAcceptsClient: false
1 change: 0 additions & 1 deletion hack/samples/managedproxyconfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ spec:
loadBalancerService: {}
proxyAgent:
image: "yue9944882/proxy-agent-amd64:v0.0.22"
proxyServerHost:
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ spec:
imagePullSecrets:
{{- range .Values.proxyAgentImagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ rules:
resources:
- leases
verbs:
- '*'
- '*'
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: cluster-proxy
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
namespace: {{ .Release.Namespace }}
name: cluster-proxy-ca
data:
"ca.crt": {{ .Values.base64EncodedCAData }}
"ca.crt": {{ .Values.base64EncodedCAData }}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
name: {{ .Values.clusterName }}
spec:
type: ExternalName
externalName: kubernetes.default.{{ .Values.serviceDomain }}
externalName: kubernetes.default.{{ .Values.serviceDomain }}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
name: {{ .Release.Namespace }}
annotations:
helm.sh/resource-policy: keep
{{ end }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
namespace: {{ .Release.Namespace }}
name: cluster-proxy
name: cluster-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ serviceEntryPointPort: 8091

base64EncodedCAData: Zm9vCg==

serviceDomain: ""
serviceDomain: ""

0 comments on commit de3722e

Please sign in to comment.